LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help me read FAT32 drive (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-read-fat32-drive-265640/)

StarSage 12-12-2004 03:35 PM

Help me read FAT32 drive
 
Could someone help me format my fstab file so that I can access the files on my secondary drive?

I'm currently running 3 hard drives on my Athlon-based system. My main drive hda1 (NTFS) is host to Windows XP until I can get my media transferred to My secondary drive hdh1 (FAT32)

here's a copy of my fstab


LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/hdf /media/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0


I've also made attempts to mount my NTFS drive.. but alas I've had no success
I installed an NTFS rpm file but it doesn't seem to have made a difference.

marghorp 12-12-2004 03:49 PM

Try to mount them using the command mount, before altering the fstab file. In /proc there is a file called fylesystems, which contains the filesystems, that your computer supports. See if there is a line called VFAT and NTFS, which will tell you if your computer(kernel) supports those filesystems. If so, use the fdisk command:

fdisk -l /dev/hda

to list the partitions on your primary harddisk, or hdb for your second harddisk. Once you identify the partitions, mount them using the mount command:

mount -t fvat /dev/hda2 /mnt/harddisk2

HEre you can see, that by -t you defined the type of filesystem you are mounting, with /dev/hda2 you defined that it is the second partition on your primary harddisk, and with /mnt/harddisk2 you said, you want it mounted at the /mnt/harddisk2 directory(mountpoint). Be sure to create the directory(mountpoint) before mounting the filesystem there, or it will fail. Hope this helps. You can always try to recompile the kernel, to get NTFS support, or install the rpm driver.

SlackerLX 12-12-2004 03:58 PM

So which drive do you want to mount
if it is for hdh1 then
#su
password
#mkdir /mnt/"your directory"
#mount -t vfat /dev/hdh1 /mnt/"your directory"
:Pengy:

bigrigdriver 12-12-2004 08:19 PM

Something seems to have slipped through the cracks here. You still haven't been told how to edit the fstab. Make an entry like this:

/dev/hda1 /mnt/windows vfat user 0 0

That's all I have in my fstab, and I can mount, read, and write the windows partition.

/dev/hda1 is the first partition of /dev/hda (where windows resides)

/mnt/windows is the mount point (a folder in /mnt). Creat your own, and name it whatever you want. Use the same name in fstab.

Edit the above to suit the requirements of your system.


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