LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Can't mount my fat32 drive (https://www.linuxquestions.org/questions/linux-hardware-18/cant-mount-my-fat32-drive-58294/)

bennyp 05-05-2003 07:53 PM

Can't mount my fat32 drive
 
I have 40 gigs of pure media on /dev/hda itching to be unleashed upon my room if only it could!!!

Mount:
Code:

/dev/hdb2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hdb1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdb5 on /mnt/win type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/cdrom on /mnt/cdrom type iso9660 (ro,nosuid,nodev,user=bennyp)

FDisk -l
Code:

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

  Device Boot    Start      End    Blocks  Id  System
/dev/hda2  *        1      4982  40017883+  c  Win95 FAT32 (LBA)

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

  Device Boot    Start      End    Blocks  Id  System
/dev/hdb1  *        1        13    104391  83  Linux
/dev/hdb2            14      3202  25615642+  83  Linux
/dev/hdb3          3203      3222    160650  82  Linux swap
/dev/hdb4          3223      3739  4152802+  f  Win95 Ext'd (LBA)
/dev/hdb5          3223      3739  4152771  83  Linux

/etc/fstab/
Code:

LABEL=/                /                      ext3    defaults        1 1
LABEL=/boot            /boot                  ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/mnt/win          /mnt/win                ext3    defaults        1 2
none                    /proc                  proc    defaults        0 0
none                    /dev/shm                tmpfs  defaults        0 0
/dev/hda                /media                  vfat    noauto,users,rw,umask=0000 0 0
/dev/hdb3              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

so what's the prognosis, docs??

angelrod 05-05-2003 08:03 PM

have you tried?:

mount /media

(this should work because it is on your fstab)

or make a dir, for example /mnt/media and type:

mount -t vfat /dev/hda /mnt/media

bennyp 05-05-2003 08:18 PM

[root@localhost bennyp]# mount /media
mount: wrong fs type, bad option, bad superblock on /dev/hda,
or too many mounted file systems
[root@localhost bennyp]#

michaelk 05-05-2003 08:22 PM

Change references from /dev/hda to /dev/hda2.

If you want it to mount on boot delete noauto option.

There is a ton of posts on this site on how to mount a FAT32 partition.

chem1 05-05-2003 08:22 PM

Do this
1) on command line type parted
check which /dev parted i giving you info about : /dev/hda or /devhdb
2) on parted prompt type print
tell us what the print out is. I solved this problem in 3 days. You should be able to do it in 1 minute if you can give me the above printout

Hope that helps...

macewan 05-05-2003 08:26 PM

su
mkdir /mnt/fred
mount -t auto /dev/hda /mnt/fred

rufius 05-05-2003 09:31 PM

Did you enable Fat32 support in your kernel? That may be a problem.

bennyp 05-05-2003 10:22 PM

thatnks alot guys, especially to michaelk!!!
i know there have been [b]enough[.b] posts on the subject but none of em solved my (pretty boneheaded) problem
thanks!!

zenci 05-19-2003 12:54 AM

is it hard to enable vfat support?
(redhat9)

martylinux 11-17-2003 10:00 PM

17-Nov-2003, 11:08 PM

This might be very late, but for those who come across this later.
Mostly, I'm putting this here so that it will show up in a search
engine.

1. Add the following as the last line in your /etc/fstab file:
/dev/hdb1 /mnt/fat32 vfat auto,user,rw,umask=000 0 0

2. Then execute the command line:
mount -a

This will allow any user read/write access to your fat32 hard drive.

My setup was:
PC - Running RedHat 9.0.93
hdb - 60GB IDE
hdb1 - The only partition
A primary partition
Formatted as fat32 in Windows

Note: I've also used a 120GB Hard Drive in the same way.



All times are GMT -5. The time now is 12:24 AM.