-   Linux - Newbie (
-   -   Mounting a Fat32 Partition (

Qebex 09-10-2002 11:11 AM

Mounting a Fat32 Partition

I have check thru the threads, but I still couldn't figure out, how to mount a Fat32 partition in Redhat 7.3. I have updated to the latest kernel.

my fat32 parition is at dev/hda5

so, at the console i typed

mount -t vfat/dev/hda5/mnt/

the command run without any respond from the console, I check thru the /mnt folder, but I dun see my partition there? am I suppose to do reboot? how do I make RH to auto mount my Fat32 partition when booting up?

Is there a simple utility or application in GNOME or KDE that can do this for me? I tried this kwikdisk utility but it doesn't show the Fat32 partition.

If you can, pls explain the command in details and guide me thru. thanks!!!

hanzerik 09-10-2002 11:23 AM

it's mount -t vfat /dev/hda5 /mnt notice the space between hda5 and /mnt

Here is what i would do:
As root,
mkdir /win
mount -t vfat /dev/hda5 /win

If you want the windows partition to be mounted when the system boots, edit /etc/fstab and add something like this:
/dev/hda5 /win vfat defaults 0 0

/dev/hda5 #Windows partition you want to mount
/win #Mount point to mount it to
vfat #Filesystem type
defaults #options: rw, suid, dev, exec, auto, nouser, and async
0 #This field is used by the dump utility 0= no dump
0 #Used by fsck to determine the order in which to conduct file system integrity checks during reboot 0= No check

Here is a good site for info on fstab

Qebex 09-10-2002 11:27 AM

in winxp, i label my fat32 partition as Storage, do I mount as mnt/storage?

Faecal 09-10-2002 11:34 AM

The drive label has absolutely nothing to do with where you mount a drive, except if you're making them the same for your own organisational benefit.

Personally, I mount my fat32 partitions as /mnt/hd<whatever>, and then create symlinks like /data/ and /c/

Qebex 09-10-2002 11:41 AM

i typed

mount -t vfat /dev/hda5 /mnt/fat32

the console reply that:

mount: mount point /mnt/fat32 does not exist

Qebex 09-10-2002 11:43 AM

is there anything wrong with my command? what symlink you're talking about...

acid_kewpie 09-10-2002 11:47 AM

yes, there is something wrong. as the error message very very clearly states the place where you are trying to mount it does not exist, create the directory before mounting it to there.

Qebex 09-10-2002 11:50 AM

thanks hanzerik! you been a great help!

any good books to recommend for me to learn the linux commands...i find it quite hard to remember.

mkdir is in linux
md <dir name> is in dos

I get really confuse sometimes...

Qebex 09-10-2002 11:56 AM

sorry, I didn't know I must create dir in linux, coz in dos, dir will be auto created for you. Now I know :p thanks guys.:newbie:

Faecal 09-10-2002 05:19 PM

Concentrate on remembering commands rather than switches etc - any time you forget a detail, you can just use man or info.

ls - like dos 'dir'. ls -l for more detail.
cd - cd
pwd - print working directory - tells you what directory you're currently in.

File operations
cp - copy
mv - move (also use this for renaming in many cases)
rm - del (rm -rf to delete a directory that contains files)
rmdir - delete a directory

Text file viewing
more - like dos 'more'
less - like more but better (scroll with e,y,w and z)
cat - like dos 'type'

Archive tools
tar (use tar -zxf to expand .tar.gz or .tgz files, and tar -xf to expand plain .tar files) - short for "tape archive", although that's not what it's mostly used for these days.
rpm (rpm -i <file> as root to install a package)

'su -' - temporarily enter super-user mode.
wget' <url> - download a file.

All times are GMT -5. The time now is 01:43 PM.