Results 1 to 3 of 3
Hi,
I recently added two new HDD to my PC (ububtu 9.04). I'm going to use the first one for backup and I want the backup script to mount/unmout it.
...
- 08-05-2009 #1Just Joined!
- Join Date
- Aug 2007
- Location
- Norway
- Posts
- 25
Mount new HDDs
Hi,
I recently added two new HDD to my PC (ububtu 9.04). I'm going to use the first one for backup and I want the backup script to mount/unmout it.
The problem is that this fails "mount /dev/sdc1 /mnt/myBackup" ... it just results in "mount: only root can do that".
I added this to fstab and rebooted but it does not help "/dev/sdc1 /mnt/myBackup ext3 user,noauto 0 0".
I want the second HDD to automatically mount at "/home/<user>/Virtualbox". I tried adding "/dev/sdb1 /home/<user>/Virtualbox ext3 defaults 0 0" but I'm unable to write to it.
What am I doing wrong? Thanks.
- 08-05-2009 #2Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
First I'd try replacing "defaults" with "rw,users"
Otherwise you'd have to invoke the script with sudo.
- 08-05-2009 #3Preface the line with sudo to gain root privileges.The problem is that this fails "mount /dev/sdc1 /mnt/myBackup" ... it just results in "mount: only root can do that".
You can also use , to mount as your user.
For the fstab entry, I'm not too knowledgeable, but the noauto option tells it not to automount. The Arch Wiki on fstab might be helpful for you. http://wiki.archlinux.org/index.php/Fstab


Reply With Quote