Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 05-13-2006, 02:02 AM   #1
LQ Newbie
Registered: May 2006
Posts: 3

Rep: Reputation: 0
fat32 mounting help. unable to mount. correct command line needed

i have been trying to mount a 7gb partition which has been formated with fat32 file system for shared use with windows and linux. i am a newbie and not realy sure what i am doing. i have tried
mount -t vfat /dev/hda5 /mnt/shared

this is what error came up.

FAT:bogus number of reserved sectors

mount:wrong fs type, bad option, bad superblock on /dev/hda5,
missing codepage or other error

could someone please tell me if i have the correct command line
or what i need to change in order for it to work thanks.
Old 05-13-2006, 06:33 AM   #2
LQ Veteran
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,266

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Let me see if I can guide you through this.

There are two things you need to do.

1. You have to make a directory entry in the file structure where you want to mount the new partition. This is done with the 'mkdir' command.

a. Open a command prompt, like konsole. (The name may vary, since linux gives you lots of choices here.)

b. If you want to mount this disk in the / (root), say at directory /mnt, you will need to switch to root, use the 'su' command ( switch user ) When you type su and press the enter key, the system will prompt you for root password. Type it in and press enter. Now do a 'cd' command to /mnt.

c.Use the mkdir command to create a directory ( folder ) for your mount point. Example : mkdir myfat32stuff ( call it what ever you like ).

2. If you want to mount this directory every time you boot, ( most people do ) then you need to edit your /etc/fstab file and enter a line there. You need to edit this file as root. Any basic editor your system has will work.

Here is a sample of the two fat32 partitions on my system, I put in my fstab file.

/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
Once you have saved the edited fstab file, you can issue a mount command. In my case it would look like 'mount /mnt/win_c' and press enter. The system looks in a couple of places, and reads the entries you made, and mounts the directory. Success is indicated my no messages at all. If you get messages, something is wrong.

If you copy one of the lines I posted, you will need to change the '/dev/hda5' to correspond to the partition you are trying to mount. The '/mnt/win_c' is my mount point. Make yours match the directory you create.

Hope this helps.


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
Command Line e-mail client w/Authentication Needed!! rootking Linux - Software 8 12-04-2005 07:00 PM
Unable to mount FAT32 partition automatically alaskazimm Linux - General 4 08-24-2005 07:19 PM
command line help needed mykrob Linux - Software 5 10-08-2004 12:10 AM
What is the correct command line sytax to install an rpm on mandrake 10? Stevetgn Linux - Newbie 3 07-14-2004 09:48 AM
Unable to mount Fat32 partition as readwrite cgoerner Linux - Newbie 3 05-04-2004 06:11 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration