Jump to content

New harddrive


orts
 Share

Recommended Posts

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 :lol2:

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by orts
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...