orts Posted December 3, 2007 Report Share Posted December 3, 2007 Hi I have just bought a new harddrive, but after formatting I don't have any write access as user. How do I change that in fstab? or in MCC -> local discs -> Manage disc partitions My fstab look this way, the new harddrive has 2 partitions sdb1 and sdb5. /dev/hdd1 / ext3 relatime 1 1 /dev/hdd6 /home ext3 relatime 1 2 /dev/cdrom /media/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0 /dev/sdb1 /mnt/backup ext3 relatime 1 2 /dev/sdb5 /mnt/virtual ext3 relatime 1 2 /dev/sda1 /mnt/win_c ntfs umask=0022,nls=utf8,ro 0 0 /dev/sda5 /mnt/win_d vfat umask=0022,iocharset=utf8 0 0 /dev/sda6 /mnt/win_e ntfs umask=0022,nls=utf8,ro 0 0 none /proc proc defaults 0 0 /dev/hdd5 swap swap defaults 0 0 I have tried to set it like this: /dev/sdb1 /mnt/backup ext3 umask=0222,user,relatime 1 2 Still no luck Please don't look to much on /dev/sda1-6, that harddrive will be moved to another computer in the future Quote Link to comment Share on other sites More sharing options...
Reiver_Fluffi Posted December 3, 2007 Report Share Posted December 3, 2007 What are the permissions on /mnt/backup and /mnt/virtual when sdb 1 and 5 are not mounted? Quote Link to comment Share on other sites More sharing options...
orts Posted December 3, 2007 Author Report Share Posted December 3, 2007 I'm not sure what you mean. As far as I know noone can write to an unmounted partition. But when I check with konqueror, it's set to 0755. Or els does the fstab look just the same. Quote Link to comment Share on other sites More sharing options...
Reiver_Fluffi Posted December 3, 2007 Report Share Posted December 3, 2007 When sdb1 and sdb5 are not mounted, their placeholders /mnt/backup and /mnt/virtual are empty directories, the permissions on these directories can potentially cause problems writing to the partitions when they are mounted (irrespective of umask). The mount points are locations within the filesystem where the partitions are mounted, they are not the partitions, you can write to the mount point when the partition is not mounted, but then you will have problems mounting the partition at that point as the directory is no longer empty. Quote Link to comment Share on other sites More sharing options...
orts Posted December 3, 2007 Author Report Share Posted December 3, 2007 I can't see your point here, but mayby it's just me who are misunderstanding you :) After formatting the harddrive, it's owned by root, and group are set to root, and I belive thats the way it's supposed to be. But when these partitons are unmounted or mounted, I don't have write access to the partitions/directorys with my user account, if I understand you right, I have to own the partitions/directories, or I have to give worldwide read and write access to them, that will be easy to do, but I really thought that was possible to do with discdrake (MCC), or by editing /etc/fstab. Quote Link to comment Share on other sites More sharing options...
orts Posted December 3, 2007 Author Report Share Posted December 3, 2007 (edited) After a lot of googling (didn't find something usefull) I did some thinking (hard work :lol:), and came to the conclusion that mayby it was better for me to set these 2 partitions up with access rights for groups and users, so now I have 2 new groups on my computer. :huh: Edited December 3, 2007 by orts Quote Link to comment Share on other sites More sharing options...
Greg2 Posted December 4, 2007 Report Share Posted December 4, 2007 I have tried to set it like this: /dev/sdb1 /mnt/backup ext3 umask=0222,user,relatime 1 2 Still no luck Unmount your /dev/sdb1 and edit your fstab to /dev/sdb1 /mnt/backup ext3 user,relatime,suid 1 2 then mount it and cd /mnt, then as root do chown -R username backup replacing username with 'your' user name. Then cd backup and chown -R root lost+found This should give you ownership of the backup partition. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.