PDA

View Full Version : Post install problems w/HD permissions & desktop icons



eco2geek
09-20-2003, 02:47 AM
Pardon me if this has been answered in another thread - I just couldn't find it.

I have two "vfat" partitions, hda1 and hdb1, that I'd like to be able to access under my normal user account (I created one). (Knoppix is installed on hda2.)

By default, Knoppix set them up this way in /etc/fstab (I changed "noauto" to "auto"):

/dev/hda1 /mnt/hda1 auto,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0

(Same for hdb1.)

However, for the "ext2" partition on hdb2 (it's a Red Hat partition), fstab reads:

/dev/hdb2 /mnt/hdb2 ext2 auto,user,exec 0 0

So I thought I'd just change the lines for hda1 and hdb1 to match the line for hdb2, but when I did, the partitions were mounted, I just couldn't access them as a normal user ("permission denied"), only as root. So I changed them back to the Knoppix default, and they are now accessible.

So why is hdb2 accessible using that line in fstab, but hda1 and hdb1 require "umask", "uid", and "gid"? What do they mean? I tried chmod on /mnt/hdxx and /dev/hdxx, but it didn't work. Is there a difference between "user" and "users"?

Also, every time I start KDE, my desktop icons' positions haven't been saved and I have to arrange them. Again. Any help with that?

Thank you for any assistance.

fingers99
09-20-2003, 06:02 PM
Did you run (as root)

mount -a

after saving the new /etc/fstab?

For a really detailed explanation of all the possible settings, take a peek at

man mount

&

man fstab

The desktop things can (probably) be retained if, when logging out, you make sure the "save settings" (or something similar) checkbox is ticked.

edgarS
09-20-2003, 08:21 PM
You have to mount the fat32 hds with the user=knoppix ... options, since fat32 does not support access rights. If you mount it this way linux assigns the values from fstab (owner, group etc. ) to each file on the partition. If you donīt provide these options linux assumes that root is the owner ... of all files.

the redhat partition is ext2 and thus supports access rights. Thatīs why you donīt have to provide further options in the fstab.

So everything is fine and totally normal.

eco2geek
09-20-2003, 09:56 PM
Ah, OK. Curiously, Red Hat does not require the same sort of permission-setting in fstab in order for the FAT32 partitions to be accessible to the normal user; however, only root can write to the disk (and it complains about permissions even then, when moving files to it).

(Re "mount -a" - yes, I know about that one. After editing fstab, you can issue the "mount -a" command to (re-)mount all filesystems listed in fstab, thus immediately implementing your changes.

Re a tick box that allows you to save the positions of your desktop icons, if you know where it is, please let me know.)

edgarS
09-20-2003, 10:32 PM
if redhat really allows access to mounted fat32 partitions to all users by default, this is not a feature, but a bug in my opinion.

i donīt want my fat32 partitions to be readable for all users on my system.

eco2geek
09-21-2003, 12:37 AM
It's been a while so I don't remember, but I highly doubt it's the default. I think you either have to tell the Red Hat installer you want them mounted, or add them manually to fstab as root.

eco2geek
09-22-2003, 07:23 AM
Finally found the setting that makes my icons stay put. It's in the KDE Control Center's "KDE Components" --> "Session Manager" section, under "On Login". Click the "Restore manually saved session" radio button, and KDE will put a "Save Session" icon on your K menu. After rearranging your desktop to your liking, click the "Save Session" icon. Next time KDE starts up, everything should be as you left it (including running programs).

(This assumes you've done a hard disk install, of course.)