You are not logged in.
I've got an extra drive which I want to be always mounted somewhere within my user directory. I put a new line in my /etc/fstab, but my permissions seem to be wrong: "access denied", no mounting for me.
/etc/fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide,iocharset=utf8 0 0
/dev/dvd /mnt/dvd udf ro,user,noauto,unhide,iocharset=utf8 0 0
/dev/fd0 /mnt/fd0 vfat user,noauto 0 0
/dev/sda1 /home/alexey/mnt/a ext3 defaults 0 1 ##### the new line #####
/dev/sdb1 swap swap defaults 0 0
/dev/sdb2 / ext3 defaults 0 1
/dev/sdb3 /home ext3 defaults 0 1Seems to be an exceptionally dumb question, but I still don't know how to go about it. I want to read and write to the new disk with my user permissions.
Last edited by Llama (2008-04-15 09:38:14)
Offline
i think you have to put ',users' after defaults to get it working. The line schould look like
/dev/sda1 /home/alexey/mnt/a ext3 defaults,users 0 1 ##### the new line #####
I don't know if it is necessary but in my oppinion you should place the line at the end of /etc/fstab
Offline
Thank you, kendosperling! It did help. One more question
: why the new disk doesn't get mounted right away, automatically?
Offline
I want to read and write to the new disk with my user permissions.
Still "access denied" when I try to move a directory within the new disk
Offline
To give readwrite access explicit add rw and to mount it at boot add auto :
/dev/sda1 /home/alexey/mnt/a ext3 auto,rw,defaults,users 0 1 ##### the new line #####
Offline
Unfortunately, these changes make no difference.
Funny: I studied the ownership/permissions via KDE:System:(drive)Properties - they appear to be exactly the same for either sda1 or sdb3. Where's the catch
?
Last edited by Llama (2008-04-14 11:33:11)
Offline
sorry but i don't know what to try furthermore ![]()
Offline
I use this and it works fine:
/dev/sda5 /home/me/Media ntfs-3g auto,users,user,noexec,nosuid,nogid 0 0so try this:
/dev/sda1 /home/alexey/mnt/a ext3 auto,users,user,noexec,nosuid,nogid 0 0Offline
The problem is not with your fstab! ilovefridge's suggestion is not ideal because noexec will stop you from running programs off the partition, which you may want to do at some point. It also won't fix your permissions error ![]()
You need to give your user ownership and read/write/execute permissions on the folder 'a' once you've mounted the partition.
As root:
# cd /home/alexey/mnt
# mount /dev/sda1 a
# chown alexey a
# chmod u+rwx aThe simplest of fstab lines should work (including automatically mounting):
/dev/sda1 /home/alexey/mnt/a ext3 defaults 0 0Depending on your desktop environment, you may not get an icon on your desktop showing the partition because you've added it in fstab. However, if you type 'mount' in a terminal it should show up as being mounted after booting.
Last edited by dmartins (2008-04-14 15:32:17)
-- Dan
Offline
Thank you, dmartins! Now it mounts on startup, and I am the owner of /home/alexey/mnt/a, but everything else underneath still happens to be owned by root, according to ls -l. I still can't handle the goods with my user permissions. What am I to do?
/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide,iocharset=utf8 0 0
/dev/dvd /mnt/dvd udf ro,user,noauto,unhide,iocharset=utf8 0 0
/dev/fd0 /mnt/fd0 vfat user,noauto 0 0
/dev/sdb1 swap swap defaults 0 0
/dev/sdb2 / ext3 defaults 0 1
/dev/sdb3 /home ext3 defaults 0 1
/dev/sda1 /home/alexey/mnt/a ext3 defaults 0 1Offline
# chown -R alexey:users a
Is the answer ![]()
Offline