Click to See Complete Forum and Search --> : viewing Fat32


L.I. Surfer
12-27-2001, 07:30 PM
So i recently installed 7.2(red hat), and i see that in /mnt there is no windows partition for my to listen to my mp3's in linux( big bummer). I looked in /dev and nothing, so i checked /etc/fstab, and tried something, but to no avail. How would one get use of there fat32 from linux? I used to have it under mandrake 8.

Ryan

AdaHacker
12-27-2001, 08:10 PM
What you really need to know is the device that corresponds to your Windows partition. If it's the first partition on your master hard disk (if you have more than one), then it's /dev/hda1.
Once you have the device name, you just need to add a line to your /etc/fstab like this:
/dev/hda1 /win-c vfat defaults 1 0
First column is the device, second is the mount point (I use /win-c, you could use /mnt or whatever you like), third is the filesystem (vfat is FAT32). Don't worry about the other options, what I have above should be fine. (I forget right now exactly what they do and don't feel like looking it up.)

slapNUT
12-27-2001, 08:13 PM
Try this as root:
/sbin/fdisk -l /dev/hda
This will show you the partitions on hda. This is assuming you have IDE hard drive if its is SCSI then do the same with sda. So lets say Windows is hda1. If you like to call Windows drive c then I suggest making a directory /mnt/c. Now you can mount Windows like this:
mount -t vfat /dev/hda1 /mnt/c
Thats all there is to it and you can put it in /etc/fstab
/dev/hda1 /win/c vfat defaults 0 0

L.I. Surfer
12-27-2001, 11:07 PM
i've written to the fstab, but i still cannot even mount it through just using 'mount /dev/hda1" it looks to the fstab and can't see it. How can i get it to appear under /mnt???

bdl
12-27-2001, 11:22 PM
Post your fstab.

The Whizzard
12-27-2001, 11:29 PM
OK, you want your windows drive to be mounted under /mnt?

Assuming you want to call the mount point '/mnt/windows', type the following commands:

mkdir /mnt/windows
mount -t vfat /dev/hda1 /mnt/windows

Then edit your /etc/fstab to include the following:

/dev/hda1 /win/windows vfat defaults 0 0

Whatever you decide to name the mount point, make sure it is the same in your /etc/fstab.

manual_overide
12-28-2001, 04:26 AM
Originally posted by The Whizzard:
<STRONG>OK, you want your windows drive to be mounted under /mnt?

Assuming you want to call the mount point '/mnt/windows', type the following commands:

mkdir /mnt/windows
mount -t vfat /dev/hda1 /mnt/windows

Then edit your /etc/fstab to include the following:

/dev/hda1 /win/windows vfat defaults 0 0

Whatever you decide to name the mount point, make sure it is the same in your /etc/fstab.</STRONG>


Yes. `cept /win/windows != /mnt/windows

:D ;) :o

slapNUT
12-28-2001, 04:40 PM
Yes. `cept /win/windows != /mnt/windows


Yikes I did the same thing!
/mnt/c != /win/c

The Whizzard
12-28-2001, 08:08 PM
Originally posted by slapNUT:
<STRONG> Yes. `cept /win/windows != /mnt/windows


Yikes I did the same thing!
/mnt/c != /win/c</STRONG>

You fruitcake!!! Or maybe I'm the fruitcake? I copied/pasted/edited from you. Guess I should have took a better look at it. At least someone caught it and pointed out the mistake. That's what I get for posting in the middle of the night, half awake. I've noticed more mistakes make by me the past few days. Guess it's time to take a break or something.

L.I. Surfer
12-29-2001, 12:45 PM
ok, got it working, thank you very much people. I won't forget how to do it now. One question, what does the "-t" parameter do with the mount command?

bdl
12-29-2001, 01:24 PM
Originally posted by L.I. Surfer:
<STRONG>ok, got it working, thank you very much people. I won't forget how to do it now. One question, what does the "-t" parameter do with the mount command?</STRONG>

Denotes the 'type' of filesystem.

mount -t vfat /dev/hda1 /mnt/windows