Wednesday, 18 February 2009

Mounting hardisk as user

Doing
$ sudo mount /dev/sda5 /mnt

may result user unable to read or write the drive. If you want to mount the drive and utilize it as user, do
$ sudo mkdir /media/sda5

then add the line into /etc/fstab
/dev/sda5       /media/sda5     ext3    ro,user,noauto  0       0

Note that 'ro' means the drive is mounted read only and 'user' gives all user to drive the mount. Now you can mount the drive as user:
$ mount /media/sda5

Or better create a desktop icon telling to point to /media/sda5 so you can double click it to mount the drive.

No comments:

Post a Comment