LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2004, 03:35 PM   #1
StarSage
Member
 
Registered: May 2004
Location: Rochester, New York
Distribution: Kubuntu 9.10
Posts: 45

Rep: Reputation: 16
Unhappy 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.
 
Old 12-12-2004, 03:49 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
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.
 
Old 12-12-2004, 03:58 PM   #3
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
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"
 
Old 12-12-2004, 08:19 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
  


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
Extra Hard Drive FAT32 cant be read AndrewZorn Linux - Newbie 15 04-04-2005 07:15 AM
fat32 hard drive cant read as user bennythepitbull Slackware 3 10-30-2003 12:25 PM
Can't Right to my FAT32 Drive only read! Stevetgn Linux - Newbie 2 08-28-2003 04:03 PM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM

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

All times are GMT -5. The time now is 12:52 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
Open Source Consulting | Domain Registration