Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: 2nd hard drive unmounts on reboot

  1. #1
    Join Date
    Nov 2008
    Beans
    10

    2nd hard drive unmounts on reboot

    Can anyone help me figure out a way to make it so my internal hard drive won't unmount each time I reboot my computer? Sometimes this causes problems with Amarok, and makes me rescan my library folder so that it will recognize my files again. Perhaps unmounting isn't the right term. My media on this drive won't show up in RhythmBox until I click on the drive under Dolphin and open up a folder. This causes ubuntu to place an icon for the drive on my desktop, just like it does when it automounts any other pieces of hardware. This isn't a USB external hard drive, which I would understand unmounting each time I reboot. Any ideas on how to fix this?

  2. #2
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: 2nd hard drive unmounts on reboot

    Quote Originally Posted by vaporjourney View Post
    make it so my internal hard drive won't unmount each time I reboot my computer?
    Any ideas on how to fix this?
    Try adding the "auto" option in the options list for the entry for your drive in the /etc/fstab; eg, change
    Code:
    # /dev/sda1
    UUID=6EF45AC9F45A92E7 /media/sda1     ntfs    defaults,umask=007,gid=46 0       1
    to
    Code:
    # /dev/sda1
    UUID=6EF45AC9F45A92E7 /media/sda1     ntfs    defaults,umask=007,gid=46,auto 0       1
    Make sure you add it at the end of the options. To edit your /etc/fstab file, you can use the command
    Code:
    gksudo gedit /etc/fstab
    from the Alt+f2 command box.

    Be alert and careful when editing the /etc/fstab file.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  3. #3
    Join Date
    Nov 2008
    Beans
    10

    Re: 2nd hard drive unmounts on reboot

    I don't see my HD listed in fstab:

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /host/ubuntu/disks/root.disk / ext3 loop,errors=remount-ro 0 1
    /host/ubuntu/disks/boot /boot none bind 0 0
    /host/ubuntu/disks/swap.disk none swap loop,sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

    However I do see the HD when I use the 'mount' command:

    /dev/sda1 on /media/Video Capture type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
    Last edited by vaporjourney; November 13th, 2008 at 07:16 AM. Reason: more info

  4. #4
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: 2nd hard drive unmounts on reboot

    Quote Originally Posted by vaporjourney View Post
    I don't see my HD listed in fstab:

    However I do see the HD when I use the 'mount' command:
    /dev/sda1 on /media/Video Capture type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
    From Intrepid onwards, optical and other removable devices have been moved under the control of fuse. Thus it is fuse (dynamic) that is handling your harddisk partition. If you make an entry similar to the one below, the hdd partition will become "static", eg always available. In short, just add the below lines to your /etc/fstab:

    Code:
    # /dev/sda1
    UUID=6EF45AC9F45A92E7 /media/sda1     ntfs    defaults,umask=007,gid=46,auto 0       1
    Important CAVEATS:
    a)
    - Replace the part in blue with the actual UUID for your ntfs partition; you can find this with
    Code:
    sudo blkid /dev/sda1
    b)
    I think you are running a Wubi installation (ie, Ubuntu through Windows). I'm not sure (having never worked with wubi), but mounting a Windows host partition in ubuntu can possible cause a major screwup. Please do more research before making the changes suggested above!
    c)
    You will need to create the /media/sda1 directory before you make the changes to fstab, or atleast before you reboot. After making the changes, you need a reboot for the changes to take effect, which will at the same time let you know if the changes have worked for you or not.
    d)
    You will need to be a member of the plugdev group (of which all users are, by default). You can confirm your membership by just giving the command
    Code:
    groups
    and checking if plugdev is listed.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  5. #5
    Join Date
    Nov 2008
    Beans
    10

    Re: 2nd hard drive unmounts on reboot

    This drive/partition that I'm working with is not the host partition, so I'm thinking that it won't cause any problems(?)

    How do I create a /media/sda1 directory before go into fstab?

    Also...when you say add the entry for sda1 at the end of the options in fstab, do you mean make he addition as the very last entry, at the bottom of the list?
    Last edited by vaporjourney; November 13th, 2008 at 04:50 PM.

  6. #6
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: 2nd hard drive unmounts on reboot

    Quote Originally Posted by vaporjourney View Post
    How do I create a /media/sda1 directory before go into fstab?

    Also...when you say add the entry for sda1 at the end of the options in fstab, do you mean make he addition as the very last entry, at the bottom of the list?
    Code:
    sudo mkdir /media/sda1
    sudo chown root:plugdev /media/sda1
    Yes, you can add the entry at the end. You can also add it anywhere in-between if you like, but at the end will reduce the chances of screwing up the existing entries.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  7. #7
    Join Date
    Nov 2008
    Beans
    10

    Re: 2nd hard drive unmounts on reboot

    how do i create a directory though before I do the edit in fstab?

  8. #8
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: 2nd hard drive unmounts on reboot

    Quote Originally Posted by vaporjourney View Post
    how do i create a directory though before I do the edit in fstab?
    Code:
    sudo mkdir /media/sda1
    sudo chown root:plugdev /media/sda1
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  9. #9
    Join Date
    Nov 2008
    Beans
    10

    Re: 2nd hard drive unmounts on reboot

    Thanks for all of the help prshah. I created the directory, edited fstab, and upon rebooting the drive automounted.

  10. #10
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: 2nd hard drive unmounts on reboot

    Quote Originally Posted by vaporjourney View Post
    I created the directory, edited fstab, and upon rebooting the drive automounted.
    OK, if you feel the issue is solved, can you mark this thread as solved? Click on "Thread Tools" near the upper right hand side of the page, and select "Mark Thread as Solved".
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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