LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2002, 12:15 PM   #1
derek.eder
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
Cannot mount Windows FAT32 partition


My apologies for the most classic of classic newbie problems, but I really am clueless.

I want to mount a FAT32 partition (created under Win XP) into Linux (RH 8). Bill Gates got one IDE hard drive (hda) with 2 NTFS and 1 FAT 32 partition. Linus has the other hardrive all to himself:

[derek@localhost etc]$ cat fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
LABEL=/data /data ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
/dev/hdb7 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0
/dev/hda3 /mnt/hda3 vfat sw 0 0

As you can see, I added an entry to /etc/fstab and also created a local mount directory. But ....

[root@localhost etc]# mount /dev/hda3
mount: wrong fs type, bad option, bad superblock on /dev/hda3,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)

What could be the problem?
- The fs is correct ?
- The options are good ?
- I don't know what a superblock is - but the drive works under XP
- Too many mounted file systems? How many is too many?

Thank you,

Derek
 
Old 12-11-2002, 12:25 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Could you enlighten me what the sw stand for? I couldn't find reference to it. My fstab entry looks like this:
Code:
/dev/hda1 /mnt/win_c vfat users 0 0
and it works fine. The 'users' option allows any user to mount or umount it, regardless of which user mounted it in the first place.

HTH
 
Old 12-11-2002, 02:36 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
i read through that whole thing till i got to the sw
at the bottom. i wish i had checked the answer first.
the sw means for mount to try to mount the drive,
but tell you you can't because of a bad option, or
in other words, its not an option. you meant rw.
 
Old 12-12-2002, 07:48 AM   #4
derek.eder
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Original Poster
Rep: Reputation: 0
Regardless of the fstab entries or switches, the mount command should still mount the filesystem.

On boot, I see an error emanating from the processing of fstab. In addition to the non-specific mount error (e.g., "mount: wrong fs type, bad option, bad superblock on /dev/hda3, or too many mounted file systems ..."), it says: "cannot read boot partition" (if memory serves me correctly).

I attempted to mount the other (NTFS) partitions on the Bill Gates hard disk (created under Windows XP), but Linux reports that the kernel is not compiled with NTFS support.

So, I am back to square one - why in the world can't my RH 8 Linux see a FAT32 partition on another hard disk?

Thanks,

Derek
 
Old 12-12-2002, 10:23 AM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Try using Linux's fdisk to see if it can even see it...
fdisk -l /dev/hda
Post the output?
 
Old 12-12-2002, 10:42 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
to be sure, you're saying this doesn't work

mkdir /poop
mount -t vfat /dev/hda3 /poop
mount -t vfat /dev/hda1 /poop
mount -t vfat /dev/hda2 /poop

if you do have 2 ntfs partitions and 1 fat32,
on the primary master, this will not be able
to mount the ntfs drives and only the fat32
will end up mounted.
 
Old 12-12-2002, 10:46 AM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Eh?

If you have an ntfs partition, you can't mount it with -t vfat anyway! And you certainly shouldn't be mounting filesystems over eachother - that's just plain daft.
 
Old 12-12-2002, 11:06 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
i just did that incase his fat32 partition wasn't the one
he thought. I don't want it to mount unless its his fat32.
if he gets an error message for all 3, then we'd see.
i expected at most only one of those commands to work.
this is for testing, not for use.
i often accidently mount a partition on top of another one.
sometimes i accidenlty type mount dev/hda8 / mnt/hda8.
i just have to umount /dev/hda8 and do it over.
 
Old 12-12-2002, 12:37 PM   #9
derek.eder
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Original Poster
Rep: Reputation: 0
Aha! I expected that the 3 windows partitions I created would have been called hda1, hda2, and hda3 .... but noooooo!


Thank you all! fdisk reveals the state of the drive and hda6 mounts just fine.


# fdisk -l /dev/hda

Disk /dev/hda: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/hda2 2551 9728 57657285 f Win95 Ext'd (LBA)
/dev/hda5 2551 5100 20482843+ 7 HPFS/NTFS
/dev/hda6 5101 7650 20482843+ b Win95 FAT32
 
Old 12-12-2002, 02:46 PM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
logical drives in an extended partition start at 5 and go up.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to format to FAT32, and how to mount my FAT32 partition. bonniehandi Linux - Newbie 16 03-05-2006 08:54 PM
How can I mount a FAT32 Partition PulsarSL Linux - Newbie 10 08-28-2005 05:43 PM
Fedora core 3 mount windows FAT32 partition device busy starney Fedora 4 11-30-2004 10:08 PM
Can't mount FAT32 partition EcceVery Debian 5 09-13-2004 06:53 AM
after mount fat32 windows partition in fedora2 zhuqifei Linux - Software 3 05-30-2004 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration