Results 1 to 4 of 4

Thread: Can't auto-mount disks no matter what I do

  1. #1
    Join Date
    Mar 2005
    Beans
    188
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Can't auto-mount disks no matter what I do

    Heya All,

    I'm running Lubuntu 13.04 on my server, and just got two 500GB SATA hard drives, but I can't auto mount them. I've tried using the disks application, but it seems to throw out my settings at random. I've also tried editing /etc/fstab, but I always get mount errors upon booting up the machine.

    Just in case, here is my fstab:

    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda1 during installation
    UUID=bf5b3852-cb5b-496c-903d-885ca40e10f9 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=22b4cd19-7c73-482b-8bed-7c4f3f049ccd none            swap    sw              0       0
    /dev/sda /opt/vol01 ext4 nosuid,nodev,nofail,x-gvfs-show 0 0
    /dev/sdb /opt/vol02 ext4 nosuid,nodev,nofail,x-gvfs-show 0 0
    Any advice would be appreciated.

    Thanks in advance.

  2. #2
    Join Date
    Jun 2013
    Beans
    161

    Re: Can't auto-mount disks no matter what I do

    Hi Rhemet,

    these two lines in your fstab are incorrect

    /dev/sda /opt/vol01 ext4 nosuid,nodev,nofail,x-gvfs-show 0 0
    /dev/sdb /opt/vol02 ext4 nosuid,nodev,nofail,x-gvfs-show 0 0
    I'm not on my linux system right now so hopefully someone else can come along and give you correct instructions.
    but can you post these outputs for now:


    sudo blkid

    sudo fdisk -l

    *that is -l for llama*

  3. #3
    Join Date
    Dec 2009
    Beans
    6,772

    Re: Can't auto-mount disks no matter what I do

    First, what MidnightGrey said.

    Second, aside from the fact that you are using the rinky-dink "Disks" utility to do this ( x-gvfs-show only shows up in "Disks" ):

    /dev/sda is the physical hard drive itself.
    /dev/sda1 ( for example ) is a partition on that physical hard drive.

    You don't mount a hard drive you mount a partition on that hard drive. A better way is to use UUID's which is what the blkid command will provide to you.

  4. #4
    Join Date
    Mar 2005
    Beans
    188
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Can't auto-mount disks no matter what I do

    Thanks for the answers, I was able to fix it with this here:

    Code:
    UUID=3352603d-6253-446e-936b-377f33e51554 /opt/vol01 ext4	auto,user,rw,exec 0 0
    UUID=cb2636e9-8a77-438c-9d22-2e883ae258a4 /opt/vol02 ext4 auto,user,rw,exec 0 0
    The options in the previous post may have been a hurdle, and using the UUID may have been more useful to the machine.

    Thanks again.

Tags for this Thread

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
  •