Personal computing discussed

Moderators: renee, SecretSquirrel, notfred

 
jugaaru
Gerbil
Topic Author
Posts: 23
Joined: Fri Oct 18, 2002 10:07 am
Location: New Delhi, India
Contact:

accessing fat32 partition from linux

Thu Jul 17, 2003 11:01 pm

How to i access fat partition from Red Hat Linux 9
any spl app for that?
Jugaaru
 
BigMadDrongo
Gerbil Elite
Posts: 909
Joined: Mon Apr 29, 2002 12:57 pm
Location: London, UK
Contact:

Fri Jul 18, 2003 6:41 am

It's very easy, assuming you already know how the mount command works (if not, take a look at the man page). "mount /dev/hd?? /mnt/hello" should work (I think - you might have to specify the filesystem, I can't remember the syntax for that), where /dev/hd?? is the device for that partition (e.g. /dev/hda0 being the first primary partition on the primary master IDE drive), and /mnt/hello is a directory you've created in /mnt (although anywhere will do).
 
sean1121
Gerbil
Posts: 59
Joined: Tue Apr 16, 2002 5:18 pm
Location: Dallas

Fri Jul 18, 2003 7:03 am

Drongo had it right, to specify the filesystem type you use the -t option,

mount -t ext2 /dev/hda0 /mnt/hello

Of course change hda0 to whatever drive and partition your wanting to mount.
 
thegleek
Darth Gerbil
Posts: 7458
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Fri Jul 18, 2003 9:32 am

i dont think mounting a fat32 drive with the ext2 file system is going to
work...

if your flavour supports it, use mount_msdos

if u need help with the syntax, just use man mount_msdos
 
Canuckle
Gerbil XP
Posts: 387
Joined: Sun Jul 13, 2003 6:20 pm

Re: accessing fat32 partition from linux

Fri Jul 18, 2003 10:18 am

jugaaru wrote:
How to i access fat partition from Red Hat Linux 9
any spl app for that?


First you need to know what Linux calls the fat partition - type:

fdisk /dev/hda

Change "hda" depending on if you are accessing an IDE drive that is a slave or on the 2nd IDE controller, or if you are running SCSI it's sd[SCSI ID number]...

At the prompt type "p" and press enter - this lists your partition table for the entire drive. Find the one marked with FAT, could be vfat, fat16 or fat32. Note the partition, and type "q" to quit fdisk.

Now make a directory to mount that partition to:

mkdir /mnt/[whatever you want to call it]

Finally:

mount -t vfat /dev/hda[partition number] /mnt/[whatever you called it]

If that was successful, you should be able to move into:
cd /mnt/[whatever you called it]

and ls should show the files in the fat partition.

NOTE: use vfat rather then fat16 or 32 because it handles both file systems.
 
Despite
Gerbil XP
Posts: 496
Joined: Thu Dec 27, 2001 7:00 pm
Location: Oklahoma
Contact:

Fri Jul 18, 2003 10:26 am

sean1121 was just giving an example. anyway, jugaaru probably means fat32, in which case it would be "mount -t vfat /dev/hda2 /mnt/hello"
 
AMM
Gerbil Jedi
Posts: 1996
Joined: Tue Jun 10, 2003 9:12 am
Location: London
Contact:

Fri Jul 18, 2003 10:45 am

Mounting an NTFS drive is considerably more difficult as I discovered a few days ago. It requires a kernel patch. But I succeded, and there was much rejoicing.
To understand recursion, you must first understand recursion.
 
thegleek
Darth Gerbil
Posts: 7458
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI
Contact:

Fri Jul 18, 2003 1:04 pm

AntiMagicMan wrote:
Mounting an NTFS drive is considerably more difficult as I discovered a few days ago. It requires a kernel patch. But I succeded, and there was much rejoicing.


even after kernel patching, and successful mounting of a NTFS drive, isn't
still only readable and not writable without causing data damage to the
NTFS drive in question?

and whats the difference between using the mount_msdos command
-vs- using the mount -t vfat command?
 
Canuckle
Gerbil XP
Posts: 387
Joined: Sun Jul 13, 2003 6:20 pm

Fri Jul 18, 2003 5:46 pm

thegleek wrote:
even after kernel patching, and successful mounting of a NTFS drive, isn't
still only readable and not writable without causing data damage to the
NTFS drive in question?


Last I heard, same here - NTFS wasn't worth considering because read permissions were only available as write was still in experimental stage and not suggested to be used.

thegleek wrote:
and whats the difference between using the mount_msdos command
-vs- using the mount -t vfat command?


Unless it's distro specific, mount_msdos isn't a recognized command. The -t flag is used when you are specifying the filesystem.
 
jugaaru
Gerbil
Topic Author
Posts: 23
Joined: Fri Oct 18, 2002 10:07 am
Location: New Delhi, India
Contact:

it worked fine

Mon Jul 21, 2003 3:00 am

thanks everyone, specially Canuckle
Jugaaru
 
muyuubyou
Grand Gerbil Poohbah
Posts: 3222
Joined: Wed Aug 28, 2002 6:19 am
Location: London, UK or Tokyo/Yokohama, Japan or Madrid, Spain

Mon Jul 21, 2003 3:27 am

If it's FAT32 try:

mount -t vfat /dev/hdb5/ /dir/of/choice/

Substitute /dev/hdb5/ for the appropriate device (hdb5 would be a partition in a slave drive)

I have several partitions mounted in linux.

Msg here if you can't get it to work.

Edit: I see Canuckle put it quite clear - so sorry if I've been redundant - I didn't see this post before.
no sig
 
Crayon Shin Chan
Minister of Gerbil Affairs
Posts: 2313
Joined: Fri Sep 06, 2002 11:14 am
Location: Malaysia
Contact:

Wed Jul 23, 2003 10:30 am

Mounting an NTFS drive is considerably more difficult as I discovered a few days ago. It requires a kernel patch. But I succeded, and there was much rejoicing.

Wasn't NTFS support built into the 2.4 kernels before?
Mothership: FX-8350, 12GB DDR3, M5A99X EVO, MSI GTX 1070 Sea Hawk, Crucial MX500 500GB
Supply ship: Sargas@2.8GHz, 12GB DDR3, M4A88TD-V EVO/USB3
Corsair: Thinkpad X230
 
OllieTech
Gerbil
Posts: 51
Joined: Sun Jul 13, 2003 6:48 pm
Location: Dover, DE, USA
Contact:

Wed Jul 23, 2003 5:24 pm

Yes, read only support was added to 2.4. Write support is still too experimental to use as far as I am aware.

Who is online

Users browsing this forum: No registered users and 4 guests
GZIP: On