View Full Version : How to automount shared Fat32 partition
MNlinux
2006-09-06, 11:13 AM CDT
Hi, I'm using fedora core 5, want to automount the partition so I can share mp3's between windows and fedora. How would I go about doing that? Any help would be greatly appreciated! TIA :p
commonplace
2006-09-06, 11:27 AM CDT
Open /etc/fstab in your favourite text editor (as root), and add this line to the bottom:
/dev/hda1 /mnt/mntname vfat users,defaults,umask=000 0 0
Substitute your actual device name (/dev/hda1 in my example) and mount point (/mnt/mntname in my example) for you specific case. That should do it. You can reboot to have it reload your fstab entries, or just do "mount -a" (no quotation marks, of course) from a terminal window (as root).
MNlinux
2006-09-06, 03:26 PM CDT
[mntent]: warning: no final newline at the end of /etc/fstab
mount: mount point /mnt/hda2 does not exist
Output of fdisk-1 :
evice Boot Start End Blocks Id System
/dev/hda1 * 1 20325 10243768+ c W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.
/dev/hda2 20326 45104 12488144 f W95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
/dev/hda3 45106 45300 98280 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/hda4 45301 89325 22188600 8e Linux LVM
Partition 4 does not end on cylinder boundary.
/dev/hda5 20326 40650 10243768+ b W95 FAT32
/dev/hda6 40657 42139 746991 82 Linux swap / Solaris
/dev/hda7 42139 43621 746991 82 Linux swap / Solaris
/dev/hda8 43622 45104 746991 82 Linux swap / Solaris
Anymore ideas?
Open /etc/fstab in your favourite text editor (as root), and add this line to the bottom:
Substitute your actual device name (/dev/hda1 in my example) and mount point (/mnt/mntname in my example) for you specific case. That should do it. You can reboot to have it reload your fstab entries, or just do "mount -a" (no quotation marks, of course) from a terminal window (as root).
commonplace
2006-09-06, 05:09 PM CDT
It's trying to mount to a place that doesn't yet exist, so just create /mnt/hda2. As root:
mkdir /mnt/hda2
Also, in your /etc/fstab, make sure you leave a blank line (carriage return) at the end. From the error/warning, it appears yours doesn't have one.
MNlinux
2006-09-07, 11:43 AM CDT
This is what I get when I try to mount the other two FAT32 partitions:
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
missing codepage or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so
It's trying to mount to a place that doesn't yet exist, so just create /mnt/hda2. As root:
mkdir /mnt/hda2
Also, in your /etc/fstab, make sure you leave a blank line (carriage return) at the end. From the error/warning, it appears yours doesn't have one.
MNlinux
2006-09-07, 11:45 AM CDT
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hda1 /mnt/winxp vfat users,defaults,umask=000 0 0
/dev/hda2 /mnt/hda2 vfat users,defaults,umask=000 0 0
/dev/hda7 swap swap defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda8 swap swap defaults 0 0
This is what I get when I try to mount the other two FAT32 partitions:
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
missing codepage or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so
MNlinux
2006-09-08, 07:55 AM CDT
I figured it out, I mounted /dev/hda5 and it worked! Thanks for all the help guys!
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.