LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 04-16-2007, 03:48 PM   #1
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Rep: Reputation: 15
Permisions for mounted partition


I'm a dual booter.

I refreshed (re-installed) both systems recently after formattig the hard-drive with the intention of repartitioning it differently and figured I'd make one big shared FAT32 partition with the rest of the drive, where I'd keep all my documents and files, so I can access them from either system and I wouldn't have to worry about dividing the drive between the systems (as was my previous setup).

The problem is,
I mount the FAT partition (I have to be root for that) but them it won't let me change the permissions (still as root) so that I can access it from my user account. Which defeats the point of the partition's existence.

I did have a small shared FAT partition before formatting the drive, and it presented no such issues. In fact I didn't need to change any permissions to access it.

The only thing I did differently from the previous time is that I created the FAT partition with the partioner AFTER having installed both systems instead of during SUSE's installation. I did notice that the NTFS partition that was created before and mounted during SUSE installation has different permissions than the FAT I created and mounted afterwards...



Is there a way I can fix this without deleting SUSE and reinstalling it and creating all partitions during installation?

 
Old 04-16-2007, 03:53 PM   #2
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Original Poster
Rep: Reputation: 15
Is it normal that my swap partition "Type" is indicated as "AIX boot" and the / partition's "Type" is marked "Linux swap" ?

That's not how I remembered them from my previous installation. Maybe I should indeed go through the reinstall process. Again.
 
Old 04-17-2007, 12:31 AM   #3
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Hi,
If you want to access a mounted fat32 partition, you need to give the permissions during the mounting process. For instance, check the man mount for vfat options, such as umask. Add these options to the "arbitrary option value" field of YaST2's partitioner edit. Enabling "mountable by user" couldn't hurt unless there are security concerns. You won't have to become root to mount it anymore.

from http://www.die.net/doc/linux/man/man8/mount.8.html

Quote:
Mount options for fat
(Note: fat is not a separate filesystem, but a common part of the msdos, umsdos and vfat filesystems.)

...

uid=value and gid=value
Set the owner and group of all files. (Default: the uid and gid of the current process.)
umask=value
Set the umask (the bitmask of the permissions that are not present). The default is the umask of the current process. The value is given in octal.
Now your user account should be able to fully use this partition.

Now as far as your swap, its File System ID should be "0x82 Linux Swap" and its Type should be "Linux Swap"

The / partition's File System ID should be "0x83 Linux" and its Type should be "Linux Native", at least that's how it is on my system.

I don't recommend you change it manually. I would, as you say, re-install the system, and make sure the right setting are in place when you re-format the partitions.


Hope this helps,
Sam
 
Old 04-17-2007, 05:48 AM   #4
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Original Poster
Rep: Reputation: 15
So be it then. Re-installation it is. The system seems to work fine but I's rather be safe than sorry.
 
Old 04-18-2007, 01:19 AM   #5
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Let me know how it turns out.

Good Luck!
Sam
 
Old 04-18-2007, 05:33 AM   #6
scorpion_gr
Member
 
Registered: Nov 2006
Location: London, UK
Distribution: openSUSE 11.1, openSUSE 10.3
Posts: 67

Original Poster
Rep: Reputation: 15
Ok. System is up. Formatted and re-created all concerned partitions. Now I can access them. I didn't open the partiotioner to check if the types are set right. I trust they are.

Thanks everyone!
 
  


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
howto chowto change file permisions in multiplhange file permisions in multiple dirs? pingvina Linux - Software 3 01-13-2006 03:10 PM
FAT32 partition ro...but not mounted ro SaurianOverlord Linux - Newbie 15 04-12-2005 10:32 PM
Double Mounted Partition? Help anyone? Boooaz Linux - Newbie 3 12-13-2004 08:31 AM
VFAT partition can not be mounted. WHY???? robertoneto123 Linux - General 4 10-16-2003 07:19 AM
swap partition not being mounted jclark00001 Linux - Newbie 28 02-15-2003 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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