Menu

mount could not find filesystem '/dev/root'

Help
2018-11-05
2018-11-19
  • Rudi Ahlers

    Rudi Ahlers - 2018-11-05

    Hi,

    I cloned a CentOS 5 installation to a new HDD, following these
    instructions:
    https://clonezilla.org/clonezilla-live/doc/03_Disk_to_disk_clone/advanced/05-advanced-param.php,
    to be installed into a new server, but when I bootup, I get the following
    error:

    drive could not find filesystem '/dev/root'

    So I booted into a CentOS installation CD, and gone into repair mode. The
    drive was mounted in /mnt/sysimage, with an option to chroot it, which I
    did.

    Here's the HDD layout:

    root@localhost ~]# fdisk -l

    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 33 265041 83 Linux
    /dev/sda2 34 12781 102398310 83 Linux
    /dev/sda3 12782 17880 40957717+ 83 Linux
    /dev/sda4 17881 30377 100382152+ 5 Extended
    /dev/sda5 17881 18390 4096543+ 82 Linux swap / Solaris
    /dev/sda6 18391 30377 96285546 83 Linux

    WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk
    doesn't support GPT. Use GNU Parted.

    [root@localhost ~]# more /etc/fstab
    LABEL=/1 / ext3 defaults 1 1
    LABEL=/u /u ext3 defaults 1 2
    LABEL=/pick01 /pick0 ext3 defaults 1 2
    LABEL=/boot1 /boot ext3 defaults 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    LABEL=SWAP-ddf1_HSTp5 swap swap defaults 0 0

    [root@localhost ~]# blkid
    /dev/mapper/live-base: LABEL="Anaconda"
    UUID="d468bb9b-7083-42e5-b04a-f4c428f1f927" SEC_TYPE="ext2" TYPE="ext3"
    /dev/mapper/live-rw: LABEL="Anaconda"
    UUID="d468bb9b-7083-42e5-b04a-f4c428f1f927" SEC_TYPE="ext2" TYPE="ext3"
    /dev/sda1: LABEL="/boot1" UUID="2b671741-7495-4b56-9c11-50c10f4c3da4"
    SEC_TYPE="ext2" TYPE="ext3"
    /dev/sda3: LABEL="/1" UUID="c326ab94-fdb7-4151-b00e-468c162838d6"
    SEC_TYPE="ext2" TYPE="ext3"
    /dev/sda5: LABEL="SWAP-ddf1_HSTp5"
    UUID="347624d1-cbf5-430e-874c-b3ba475a8292" TYPE="swap"
    /dev/sda6: LABEL="/u" UUID="cdeceadf-c689-453e-8461-845fe10cab54"
    SEC_TYPE="ext2" TYPE="ext3"
    /dev/sdb1: LABEL="CentOS 7 x86_64" TYPE="iso9660"
    /dev/sdb2: SEC_TYPE="msdos" LABEL="ANACONDA" UUID="9940-FF04" TYPE="vfat"
    /dev/loop1: LABEL="Anaconda" UUID="d468bb9b-7083-42e5-b04a-f4c428f1f927"
    SEC_TYPE="ext2" TYPE="ext3"
    [root@localhost ~]# ls -l /dev/disk/by-label/
    total 0
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 Anaconda -> ../../dm-1
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 ANACONDA -> ../../sdb2
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 CentOS\x207\x20x86_64 -> ../../sdb1
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 SWAP-ddf1_HSTp5 -> ../../sda5
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 \x2f1 -> ../../sda3
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 \x2fboot1 -> ../../sda1
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 \x2fu -> ../../sda6
    [root@localhost ~]# ls -l /dev/disk/by-uuid/
    total 0
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 2016-12-05-13-55-45-00 -> ../../sdb1
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 2b671741-7495-4b56-9c11-50c10f4c3da4
    -> ../../sda1
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 347624d1-cbf5-430e-874c-b3ba475a8292
    -> ../../sda5
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 9940-FF04 -> ../../sdb2
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 c326ab94-fdb7-4151-b00e-468c162838d6
    -> ../../sda3
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 cdeceadf-c689-453e-8461-845fe10cab54
    -> ../../sda6
    lrwxrwxrwx 1 root root 10 Nov 5 18:59 d468bb9b-7083-42e5-b04a-f4c428f1f927
    -> ../../dm-1

    I am not sure how to fix this?

    --
    Kind Regards
    Rudi Ahlers
    Website: http://www.rudiahlers.co.za

     
  • Rudi Ahlers

    Rudi Ahlers - 2018-11-06

    Can anyone help me with this, please?

     
  • Steven Shiau

    Steven Shiau - 2018-11-19

    It's recommended to update the initrd after you restore the image to different hardware. You can refer to this:
    https://wiki.centos.org/TipsAndTricks/CreateNewInitrd

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.