[CentOS] Can't mount FAT32 partition
Phil Schaffner
P.R.Schaffner at IEEE.org
Mon Aug 29 15:55:39 UTC 2005
On Mon, 2005-08-29 at 22:57 +0900, Dave Gutteridge wrote:
> I am trying to mount a FAT32 partition in CentOS.
> I'm following the instructions on this page:
> http://www.linuxforum.com/linux_tutorials/14/1.php
>
> This is the line I put into /etc/fstab
> /dev/hda /mnt/windows vfat
> users,owner,rw,umask=000 0 0
>
> And this is the error I get:
> [root at localhost mnt]# mount -a
> mount: wrong fs type, bad option, bad superblock on /dev/hda,
> or too many mounted file systems
>
> What is the cause of this error?
>
> For reference, this is the output of fsisk:
> [root at localhost mnt]# fdisk -l
>
> Disk /dev/hda: 30.0 GB, 30020272128 bytes
> 255 heads, 63 sectors/track, 3649 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 3649 29310561 c W95 FAT32 (LBA)
Dave,
Try:
/dev/hda1 /mnt/windows vfat rw,noauto,user,uid=512,gid=1002 1 2
Adjust uid and gid for the user you want to have full access
(see /etc/passwd entry), or omit for read-all write-root. [Be
sure /mnt/windows exists.]
> Disk /dev/hdb: 30.7 GB, 30738677760 bytes
> 255 heads, 63 sectors/track, 3737 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hdb1 * 1 3644 29270398+ 83 Linux
> /dev/hdb2 3645 3737 747022+ f W95 Ext'd (LBA)
OT, but looks like /dev/hdb2 has no extended partitions. It's a pretty
small percentage of the disk, so may be a don't-care. Could make it
swap as you don't seem to have any. If you want:
# fdisk /dev/hdb
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 1 to 82 (Linux swap)
Command (m for help): w
# mkswap /dev/hdb2
Put the following in /etc/fstab:
/dev/hdb2 swap swap defaults 0 0
# free
# swapon -a
# free
Phil
More information about the CentOS
mailing list