Find the answer to your Linux question:
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. ...
  1. #1
    Just 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.

  2. #2
    Linux 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.

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    The problem is that this fails "mount /dev/sdc1 /mnt/myBackup" ... it just results in "mount: only root can do that".
    Preface the line with sudo to gain root privileges.

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...