LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-21-2006, 09:57 AM   #1
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
Mounting problem VFAT FS


Hey Gang,

I'm having a problem mounting a partition. It's a fat32 partition, 50GB. I have a dualboot setup with XP SP2 and Suse 10.0. I'm trying to setup a partition that can be used by both OSes (they both have their own storage as well). I was going to use Windows, but it doesn't format using fat32 anymore. I went into SUSE and created the 50GB partition and then I went to format it and the status bar came up and then it came up with a -3030 error and would not do it. I tried fiddling around with it and put a mount point of /dev/hda6/mnt/c (I have a book that said a folder of /mnt/c needs to be created before a drive can be mounted) and I hit 'apply' and a status bar came with 0% and then went away. Now it shows up in My Computer and when I drag the mouse over it, it says "unmounted," so I go into Konsole as root and attempt to mount it. IT then says that mtab says it's already mounted. I tried tinkering around with it some more, but to no avail. Any help is much appreciated.

Thanks,

Brandon
 
Old 12-21-2006, 10:30 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I think most of your problem is the partition is not formatted yet. You should be able to format it in windoze, see 'help format' from a command prompt in windoze. The command FORMAT volume /FS:file-system should allow you to specify FAT32. At a command prompt in windoze type 'format D:/ FS:FAT32'. The drove letter will be different depending on your partitioning in windoze.

Once formatted, you should be able to mount the partition in linux. Here is what my /etc/fstab entries look like.

Code:
cat /etc/fstab | grep vfat
/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
You are correct, you do need to make mount points before you can mount the partition. You will have to change the /dev/hdaX to match your system, and mount point to match the one you create.
 
Old 12-21-2006, 11:28 AM   #3
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Original Poster
Rep: Reputation: 15
Is it just me or does it seem like it's a little useless to have the partitioner in Linux for a Windows file system? Maybe it's there for show?

Let me explain this back to you just to make sure that I get it so I can do it when I get home. I understand the Windows part. I forgot that I can use DOS to format it with a FAT32FS. I got pretty fond of the GUI. Linux will whip me into shape though with Shell. So, after format I'll go back into Linux (which should recognize the partition already?) It would be HDA7, that is the next in line. Now, I would start a new Shell as root, do the mount command: mount /dev/hda7/mnt/c? Or would it be mount /dev/hda6/mnt/c because hda6 is the drive where the root is for Linux? That's the part that I'm confused about, I don't know where to mount it. Also, where do I create the mount point? Within HDA6? I think that's where it is, bt I'm really not sure.

After that is all said it done. Is there a way to automatically mount it every single time Linux boots? Sorry if I'm asking such stupid questions. I've had only for a week and I'm really out of my element with Shell.

Thanks a trillion,

Brandon

Last edited by Robert Diggs; 12-21-2006 at 11:30 AM.
 
Old 12-21-2006, 12:34 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Let me see if I can straighten a few things out for you.

Quote:
Is it just me or does it seem like it's a little useless to have the partitioner in Linux for a Windows file system? Maybe it's there for show?
No it is not useless. Linux can partition, just as Dos can, windoze, OS/2 and the list goes on. Partitioning is setting up the limits in a table where the file system will exist on a drive. Every OS has to be able to do that. Formatting is another thing. Formatting sets up the file system to be used. Windoze supports NTFS, Fat32, fat16 and fat12. Linux has a much longer list. Ext2, Ext3, Reiser, fat32, fat16 fat12, and many more I have not mentioned. Support for NTFS is limited, remember this is a system owned and operated by Mr. Bill.

Fat support is there because this is a way to share for those who wish to. It is a simple system, that is well known.

Quote:
So, after format I'll go back into Linux (which should recognize the partition already?)
Most likely it will be mountable and you shuold be able to read and write to it. Most distros have support for vfat in the kernel. If yours does, then you should be able to mount it, read and write to it.

Let me see if I can help you with mount. First of all you need a mount point in the existing file system. You create one with the 'mkdir' command. Linux is not windoze. There is one file system that can be on several disks, and many partitions on several disks. It starts at 'root' designated by '/. Most systems will have a /mnt directory. The leading / indicates mnt is one level from /, the root. So if you do a CD to /mnt, you are in mnt. This is a common place to add more partitions, whether they are on the same disk or another disk. To create the mount point, do a CD to mnt, and then do a mkdir command and call the folder that ever you like. (mkdir whateveryoulike) It would be represented as /mnt/whateveryoulike/ . This is the place where you wish to mount the new partition, in your case hda7. You can mount it one time using the mount command. If you booted after the mount, the fie /dev/hda7 would not be automatically mounted after the boot. You set that up in /etc/fstab.

The command is the partition, followed by the mount point, followed by options. You have to specify file system type. See man mount for more details. So, a command such as 'mount /dev/hda7 /mnt/whateveryoulike vfat' (without the quotes) should work.

To mount every time you boot, as root, edit the /etc/fstab file and add lines like I posted. The kernel reads the /etc/fstab file during booting, and tries to mount the file systems listed in fstab.

The end result if it is successful, is /dev/hda7 will be visible if you navigate to /mnt/whateveryoulike/directoriesonhda7/morestuff/ etc...

Last edited by camorri; 12-21-2006 at 12:43 PM.
 
Old 12-21-2006, 12:56 PM   #5
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Original Poster
Rep: Reputation: 15
I greatly appreciate the detailed response. I also would like you to know that I was just trying to convey a sense of humor, but it didn't work out. Sorry about that.

I'll take the information and go home with and we'll see if it's a success.

Thanks again,

Brandon
 
  


Reply



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
Vfat mounting problem lamiczka Linux - Software 2 05-09-2005 01:30 PM
Linux 2.6 vfat mounting problem thorwil Linux - General 6 12-23-2003 06:52 AM
VFAT mounting problem NumbThumb Linux - General 2 08-18-2003 03:26 PM
problem mounting vfat fraction Linux - General 6 04-19-2003 10:25 AM
Problem mounting vfat partition!!! yalanop Linux - Newbie 1 02-02-2003 03:21 PM

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

All times are GMT -5. The time now is 03:45 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