LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting FAT32 partition in Linux (https://www.linuxquestions.org/questions/linux-general-1/mounting-fat32-partition-in-linux-49023/)

correro 03-09-2003 07:49 PM

Mounting FAT32 partition in Linux
 
I installed a W2K - Linux (RH8) dual-boot system, and I tried to mount a Windows FAT32 partition in Linux with the following command:

mount -t vfat /dev/hda2 /mnt/win

It didn't work. Then I tried

mount -t msdos /dev/hda2 /mnt/win

Still didn't work.

What is the correct command to mount this partition?

Also, is it possible to mount an NTFS partition?

Thanks :-)

Neo22589 03-09-2003 07:57 PM

hey well try this command...not sure if it will work but give it a whirl..

mount /dev/(the hdd you want to mount here) /mnt/(the folder you want to mount it to) -t vfat -r

that might work..

well about the ntfs thing yes you can do it you need a certain rpm file though...if you would like i could e-mail it to you..and to install it and load it you do this...first get the file into linux...then just double clikc it...then it will install then go into a terminal and type this first:

/sbin/modprobe ntfs

then type this after that

dmesg | grep NTFS

that should work and the line in the middle is the button above the enter key to get that push shift then the key above enter if you didn't alrdy know that...well just drop me your -email if you want me to send it to you...i think i still have it.

o yah once you install and load the file you then type this in your terminal

mount /dev/(the hdd you mount) /mnt/(folder you mount it to) -t ntfs -r

-RPG

Aussie 03-09-2003 07:58 PM

When you say it didn't work, did you get an error message? We need to see them before we can offer advice on what the problem is.
To mount ntfs in redhat you'll need to recompile your kernel or follow the instructions here.

correro 03-09-2003 08:13 PM

i tried mount -t vfat -r /dev/hda2 /mnt/win, but still get the same error message:

wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)

Neo, it'd be great if you can send me the NTFS thing. I really need it. Thanks a lot :-)

Neo22589 03-09-2003 08:18 PM

hey correo you have that command reversered...

it is

mount /dev/hda2 /mnt/win -t vfat -r

ok just tell me your e-mail and i will be happy to send it to you.

-Neo

Aussie 03-09-2003 08:28 PM

Show us the output of "fdisk -l"

correro 03-09-2003 09:52 PM

neo, my email is betac@365rainbow.com

you mean where i place the options -t vfat -r would make a difference?

aussie, let me switch back to RH8 and get the output of "fdisk -l". look, i'm constantly switching between W2K and RH :-)

Neo22589 03-09-2003 10:09 PM

ok correo i sent the file the subject is "Here is your NTFS file"

yah just simply type this in a terminal..

mount /dev/hda2 /mnt/win -t vfat -r

that should work for fat32 not sure though, it worked for me for ntfs.

-neo

correro 03-09-2003 10:33 PM

i got the mail you sent me, neo. thanks so much.

i'll try it out

Neo22589 03-09-2003 10:35 PM

hey no prob man anytime..if you have any other questions just drop me any e-mail at rpgamer22589@sbcglobal.net

-Neo

correro 03-09-2003 10:53 PM

aussie, your suggestion of running "fdisk -l" definitely helped resolving my problem.

I ran it and get accurate info on my disks. when i ran "mount..." again, bingo!

correro 03-09-2003 10:59 PM

neo, it's done. i have successfully mounted the ntfs partition with the rpm you sent me. gracias!

correro 03-09-2003 11:04 PM

Hey guys, I wonder if Nautilus can provide a directory tree, just like the one Midnight Command and Windows Explorer do.

The Side Pane in Nautilus is really pointless to me.

From my limited experience, I have not found where I can customize Nautilus so that it shows a directory tree.

correro 03-09-2003 11:07 PM

What line should I add to fstab so that certain filesystems can be mounted automatically at startup?

Say, I can mount /dev/hda1 /mnt/win -t vfat manually. What is the corresponding line to be added to fstab?

Aussie 03-09-2003 11:53 PM

This will do the trick,
Code:

/dev/hda1    /mnt/win    vfat    auto,users,rw,umask=000    0  0


All times are GMT -5. The time now is 01:35 PM.