Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 22 of 22
Code: cat /etc/fstab # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation # UUID=39dce7bc-28c6-4d48-a3e1-b2d48712856e / ext3 errors=remount-ro 0 1 # this line is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,040

    mount error is caused by two entries for root ( / ) in /etc/fstab


    Code:
    cat /etc/fstab
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda1 during installation
    #UUID=39dce7bc-28c6-4d48-a3e1-b2d48712856e /               ext3    errors=remount-ro 0       1 # this line is causing mount error
    # swap was on /dev/sda5 during installation should be sda2
    #UUID=f5355ad1-6de9-497b-a8d4-e2abe7336d4d none            swap   
    UUID=fa0ac7e1-6154-4e96-afc7-37865af56e71 none            swap   
    #changing the above fixed the swap
     /dev/sda3    /    ext4    rw,errors=remount-ro    0    0
    Code:
    sudo fdisk -l
    Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        3463    27813856+   7  HPFS/NTFS
    /dev/sda2            3463        3719     2053120   82  Linux swap / Solaris
    /dev/sda3            3719        4866     9214976   83  Linux
    error about failure to mount is you have two entries in /etc/fstab for root ( / ) partition. The correct entry based on fdisk output is sda3 ... so comment out the first entry in fstab (see above). The last line of fstab starting /dev/sda3 is mounting your root partition.

    Ed: btw up arrow lets you scroll through command history and down arrow key lets you scroll back down through the command history ... select the command you want and either hit enter or edit it to what you want before you hit enter
    Last edited by Jonathan183; 12-20-2010 at 10:09 PM. Reason: Remove code not related to root mount error

  2. #22
    Just Joined! buteman's Avatar
    Join Date
    Jul 2006
    Location
    Isle of Bute, Scotland
    Posts
    75
    Quote Originally Posted by Jonathan183 View Post
    error about failure to mount is you have two entries in /etc/fstab for root ( / ) partition. The correct entry based on fdisk output is sda3 ... so comment out the first entry in fstab (see above). The last line of fstab starting /dev/sda3 is mounting your root partition.
    Good call. My thoughts too. just thought I would check whether it continued booting anyway.

Page 3 of 3 FirstFirst 1 2 3

Posting Permissions

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