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

Thread: Problem mounting internal drive from fstab

  1. #1
    Join Date
    Apr 2008
    Beans
    28

    Problem mounting internal drive from fstab

    I just upgraded to 12.10 from 12.04 and have trouble mounting an internal drive from fstab.

    I have an ssd (system/home) and two internal hard drives, one for data and one for storing backups. There are two entries in fstab as follows:

    UUID=2cb4aef5-637c-44fa-b7a2-d4ba52f98545 /media/data ext4 defaults 0 2
    UUID=de6514b0-b7a9-49ca-a7ab-c19be1431636 /media/Backup\040Drive ext4 defaults 0 2

    When I boot up, I just get a black screen. Pressing Ctrl-Alt-F6 gets me the X console which shows:

    An error occured while mounting /media/Backup Drive.
    Press S to skip mounting or M for manual recovery.

    If I press S, booting continues ok.

    data is mounted as expected with owner root, Backup Drive is mounted with owner phil.

    (Unmounted, both /media/data and /media/Backup Drive have owner root and permissions 755).

    The following is shown in /var/log/boot.log:

    mountall: Event failed
    mount: /dev/sdc1 already mounted or /media/Backup Drive busy
    mount: according to mtab, /dev/sdc1 is already mounted on /media/Backup Drive
    mountall: mount /media/Backup Drive [824] terminated with status 32
    mountall: Filesystem could not be mounted: /media/Backup Drive

    (If I comment out the line for Backup, boot procedds ok, it doesn't get mounted and there are no entries in boot.log).

    This all worked fine in 12.04. 2 questions:

    1. Why is this happening now and any suggestions to fix it? (possibly something to do with udisks2?)
    2. Why do I need to press Ctrl-Alt-F6 to see the console?

    Thanks

  2. #2
    Join Date
    Nov 2010
    Location
    /Earth/Asia/India
    Beans
    218
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Problem mounting internal drive from fstab

    Run fsck to check your disks.Maybe they are corrupt
    Ctrl+Alt+F6 starts command line version.Its useful when there are problems related to desktop environment

  3. #3
    Join Date
    Apr 2008
    Beans
    28

    Re: Problem mounting internal drive from fstab

    fsck reports partition as clean. Meant Ctrl-Alt-F7.

  4. #4
    Join Date
    Nov 2010
    Location
    /Earth/Asia/India
    Beans
    218
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Problem mounting internal drive from fstab

    Quote Originally Posted by philhughes View Post
    fsck reports partition as clean. Meant Ctrl-Alt-F7.
    Force an fsck at next reboot

    http://www.cyberciti.biz/faq/linux-f...boot-sequence/

    and then tell the output

  5. #5
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Problem mounting internal drive from fstab

    check the disks settings into : system tools -> prefs -> disk Applications menu

  6. #6
    Join Date
    Apr 2008
    Beans
    28

    Re: Problem mounting internal drive from fstab

    Forced fsck ob reboot. No problems, but exactly the same thing happens. boot.log has the same entries. I don't think this has anything to do with a bad disk.

  7. #7
    Join Date
    Apr 2012
    Beans
    5,462

    Re: Problem mounting internal drive from fstab

    Can we see the whole /etc/fstab please? plus the output of 'mount'

    Maybe in 12.10 gnome-volume-manager is more picky about reserving /media for removable devices?

  8. #8
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    1,273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Problem mounting internal drive from fstab

    Also, try changing:

    Code:
    /media/Backup\040Drive	ext4	defaults	0	2
    to

    Code:
    /media/Backup_Drive	ext4	defaults	0	2
    to see what happens. Escaping the space character could create problems if the new mounting procedure internally processes the line twice.

  9. #9
    Join Date
    Apr 2008
    Beans
    28

    Re: Problem mounting internal drive from fstab

    DuckHook - you seem to have hit on the problem. Mounting to /media/Backup_Drive and changing the line in fstab to what you suggested fixes the problem (ie it mounts ok).

    Can you explain though what you mean about it porcessing the line twice?

  10. #10
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    1,273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Problem mounting internal drive from fstab

    Quote Originally Posted by philhughes View Post
    Can you explain though what you mean about it porcessing the line twice?
    The problem was the space character in the HD name.

    Linux treats spaces as the delimiter for either arguments or switches to follow. Therefore, it parses your HD name as: Mount a HD named "Backup" and apply a process to it called "Drive". Since there is no such process as "Drive", your mount process gives up and generates an error. You attempted to fool your system with the \040 escape sequence. But this works if only one process is involved. However, if it is necessary for the first process to pass the name string on to a second process, the first process will have already converted the \040 sequence to a space character and the second process will choke for the reason outlined above.

    In short, don't ever use spaces in anything having to do with Linux. If you want readability, get into the habit of substituting the underscore character "_" for a space character. It will save you loads of trouble in future.

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
  •