LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2006, 05:35 AM   #1
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Rep: Reputation: 15
mounting the fat32 partition


Hi
I installed Kubuntu and during installation I partitioned my HDD into 2 partitions, which one of them is a fat32.
unfortunately whatever I do I can't get the fat32 partition to work without needing to be root.
I've tried totc/vfat = /dev/hda2 /media/hda2 vfat auto,umask=777 0 0 change my fstab to every possible thing but no hope.
I've tried all these options:
/etc/vfat = /dev/hda2 /media/hda2 vfat auto,umask=777 0 0
/dev/hda2 /media/hda2 vfat auto,umask=666 0 0
/dev/hda2 /media/hda2 vfat auto,umask=000 0 0
/dev/hda2 /media/hda2 vfat defaults,umask=0 0 0
/dev/hda2 /media/hda2 vfat iocharste=utf8,umask=666 0 0

followed by sudo mount -a to remount the partitions.
Anyone with any idea plz drop a line.
Cheers
 
Old 02-12-2006, 05:37 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
You need to add "user" to the fourth column to make it user-mountable
 
Old 02-12-2006, 05:47 AM   #3
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 49
Try this instead:

Code:
/dev/hda2     /media/windows  vfat    umask=000       0       0
 
Old 02-12-2006, 10:25 PM   #4
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Original Poster
Rep: Reputation: 15
oneandoneis2, how can I add user to the fourth column, mind including the code, for this instance the user is "nic"
duffmckagan, I tried ur line and several more with no hope,


Is there any way I can change the file system from vfat to a linux file system of any sort, on the fly, without losing data, I remeber doing the other way around from linux to vfat using some command line commands, but now I've lost touch.

And given I'm able to do that, can I still see that partition from my MS box?

Cheers
 
Old 02-12-2006, 10:35 PM   #5
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Original Poster
Rep: Reputation: 15
I mean visible from MS box via LAN (samba)
 
Old 02-12-2006, 11:03 PM   #6
edwin11
Member
 
Registered: Dec 2005
Distribution: Linux Mint 13 MATE
Posts: 120

Rep: Reputation: 15
Hi, try this line in the fstab instead:

Code:
/dev/hda2 /media/hda2 vfat auto,uid=xxx,gid=xxx,umask=0022 0 0
where xxx is the ID of the user who you want ownership of the partition to belong to.



Regards,
Edwin
 
Old 02-13-2006, 04:25 AM   #7
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Original Poster
Rep: Reputation: 15
How can I find what user ID and Group ID is?
 
Old 02-16-2006, 06:43 AM   #8
edwin11
Member
 
Registered: Dec 2005
Distribution: Linux Mint 13 MATE
Posts: 120

Rep: Reputation: 15
Supposing the user who you want ownership to belong to is "johndoe", do

Code:
grep johndoe /etc/passwd
You should see the output something like

Code:
johndoe:x:1002:1002:John Doe,... ...
Then the first "1002" is the required uid and the second "1002" is the required gid.



Regards,
Edwin
 
Old 02-16-2006, 06:57 AM   #9
pypieuvre
LQ Newbie
 
Registered: Feb 2006
Location: Paris, France
Distribution: Ubuntu Breezy, Red Hat enterprise linux 3
Posts: 8

Rep: Reputation: 0
Edwin11 is right for the way to make it properly,

here is the line I use for my fstab (ubuntu also)

Code:
/media/ibm_fat vfat    rw,user,auto,gid=100,uid=1000,umask=002 0 0
gid=100 and uid=1000 should match the ID of the first account you created during the installation, that has admin group rights.
 
  


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
Mounting a FAT32 partition Progmaker Linux - General 2 08-15-2005 11:02 AM
Mounting a Fat32 Partition computergee Linux - General 3 03-19-2005 05:44 PM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 10:59 AM
Mounting the fat32 partition dibyendra Linux - General 13 07-27-2003 02:10 AM
Mounting a Fat32 Partition Qebex Linux - Newbie 9 09-10-2002 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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