LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-09-2003, 07:49 PM   #1
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Rep: Reputation: 15
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 :-)
 
Old 03-09-2003, 07:57 PM   #2
Neo22589
LQ Newbie
 
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
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

Last edited by Neo22589; 03-09-2003 at 07:59 PM.
 
Old 03-09-2003, 07:58 PM   #3
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
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.
 
Old 03-09-2003, 08:13 PM   #4
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
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 :-)
 
Old 03-09-2003, 08:18 PM   #5
Neo22589
LQ Newbie
 
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
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
 
Old 03-09-2003, 08:28 PM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Show us the output of "fdisk -l"
 
Old 03-09-2003, 09:52 PM   #7
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
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 :-)
 
Old 03-09-2003, 10:09 PM   #8
Neo22589
LQ Newbie
 
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
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
 
Old 03-09-2003, 10:33 PM   #9
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
i got the mail you sent me, neo. thanks so much.

i'll try it out
 
Old 03-09-2003, 10:35 PM   #10
Neo22589
LQ Newbie
 
Registered: Mar 2003
Posts: 28

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

-Neo
 
Old 03-09-2003, 10:53 PM   #11
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
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!
 
Old 03-09-2003, 10:59 PM   #12
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
neo, it's done. i have successfully mounted the ntfs partition with the rpm you sent me. gracias!
 
Old 03-09-2003, 11:04 PM   #13
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
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.
 
Old 03-09-2003, 11:07 PM   #14
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
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?
 
Old 03-09-2003, 11:53 PM   #15
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
This will do the trick,
Code:
/dev/hda1    /mnt/win    vfat    auto,users,rw,umask=000    0   0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 10:59 AM
mounting a fat32 partition startingnow Red Hat 2 05-26-2004 10:10 AM
Problems mounting a fat32 partition under linux (slack 9.1) cyberone Linux - Software 3 01-18-2004 06:57 AM
Mounting FAT32 partition? timmyk0 Linux - Newbie 4 09-19-2003 08:22 PM
mounting fat32 winXP partition in linux for mp3s centr0 Linux - General 2 03-08-2003 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration