Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount: /newroot failed: No such device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
KorryL
n00b
n00b


Joined: 23 Nov 2017
Posts: 1

PostPosted: Thu Nov 23, 2017 8:43 am    Post subject: mount: /newroot failed: No such device Reply with quote

Hello guys, I'm trying to boot gentoo system but on boot time I get the following error
Fixed url tags, or maybe not -- NeddySeagoon.
Exclamation marks in URLs need to be escaped to be recognized by the phpbb URL parser, the correct escape is "%21". Also, fixed the link as described. -- desultory

Here is my grub.cfg
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod btrfs
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  257eb7b3-4239-4ffe-8b26-736c2ed6c1ea
else
  search --no-floppy --fs-uuid --set=root 257eb7b3-4239-4ffe-8b26-736c2ed6c1ea
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-257eb7b3-4239-4ffe-8b26-736c2ed6c1ea' {
   load_video
   if [ "x$grub_platform" = xefi ]; then
      set gfxpayload=keep
   fi
   insmod gzio
   insmod part_gpt
   insmod btrfs
   set root='hd1,gpt2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  c8129eed-c72a-4bd0-b62d-1f3e52579b8e
   else
     search --no-floppy --fs-uuid --set=root c8129eed-c72a-4bd0-b62d-1f3e52579b8e
   fi
   echo   'Loading Linux x86_64-4.12.12-gentoo ...'
   linux   /kernel-genkernel-x86_64-4.12.12-gentoo root=UUID=257eb7b3-4239-4ffe-8b26-736c2ed6c1ea ro init=/usr/lib/systemd/systemd
   echo   'Loading initial ramdisk ...'
   initrd   /initramfs-genkernel-x86_64-4.12.12-gentoo
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-257eb7b3-4239-4ffe-8b26-736c2ed6c1ea' {
   menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.12.12-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.12.12-gentoo-advanced-257eb7b3-4239-4ffe-8b26-736c2ed6c1ea' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod btrfs
      set root='hd1,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  c8129eed-c72a-4bd0-b62d-1f3e52579b8e
      else
        search --no-floppy --fs-uuid --set=root c8129eed-c72a-4bd0-b62d-1f3e52579b8e
      fi
      echo   'Loading Linux x86_64-4.12.12-gentoo ...'
      linux   /kernel-genkernel-x86_64-4.12.12-gentoo root=UUID=257eb7b3-4239-4ffe-8b26-736c2ed6c1ea ro init=/usr/lib/systemd/systemd
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-genkernel-x86_64-4.12.12-gentoo
   }
   menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.12.12-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.12.12-gentoo-recovery-257eb7b3-4239-4ffe-8b26-736c2ed6c1ea' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_gpt
      insmod btrfs
      set root='hd1,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  c8129eed-c72a-4bd0-b62d-1f3e52579b8e
      else
        search --no-floppy --fs-uuid --set=root c8129eed-c72a-4bd0-b62d-1f3e52579b8e
      fi
      echo   'Loading Linux x86_64-4.12.12-gentoo ...'
      linux   /kernel-genkernel-x86_64-4.12.12-gentoo root=UUID=257eb7b3-4239-4ffe-8b26-736c2ed6c1ea ro single init=/usr/lib/systemd/systemd
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-genkernel-x86_64-4.12.12-gentoo
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


and here are my partitions
Code:

parted -l
Model: ATA ST1000DM010-2EP1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name          Flags
 1      1049kB  41.9GB  41.9GB  btrfs        /mnt/comp
 2      41.9GB  1000GB  958GB   btrfs        /mnt/storage


Model: ATA ADATA SP550 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name       Flags
 1      1049kB  538MB   537MB   fat32           /boot/efi  boot, esp
 2      538MB   1075MB  537MB   btrfs           /boot
 3      1075MB  2149MB  1074MB  linux-swap(v1)  swap
 4      2149MB  66.6GB  64.4GB  btrfs           /
 5      66.6GB  120GB   53.5GB  btrfs           /home


Model:  USB FLASH DRIVE (scsi)
Disk /dev/sdc: 4010MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name                  Flags
 1      1049kB  4010MB  4009MB  fat32        Microsoft Basic Data  msftdata


blkid
/dev/sda1: UUID="2cbdf7ad-0df4-4cee-85c6-b0a600d901b4" UUID_SUB="8c012b5b-ad7b-43cc-a61a-76c2811d9eba" TYPE="btrfs" PARTLABEL="/mnt/comp" PARTUUID="c3fa8abb-6643-411b-bef2-b8c2415c7650"
/dev/sda2: LABEL="STORAGE" UUID="e2d5c42b-f776-4455-ac5a-9e42bbaeb877" UUID_SUB="744688ce-fc70-42ca-ada1-504fd054e41b" TYPE="btrfs" PARTLABEL="/mnt/storage" PARTUUID="a86f0f44-66c4-4e7c-bcfb-b19bd66d0113"
/dev/sdb1: LABEL="BOOT" UUID="6D64-610A" TYPE="vfat" PARTLABEL="/boot/efi" PARTUUID="d580190d-12f3-4dd3-8112-d37765d5d519"
/dev/sdb2: LABEL="SBoot" UUID="c8129eed-c72a-4bd0-b62d-1f3e52579b8e" UUID_SUB="bde5fb89-70e0-4ed8-ad99-e7ff625d37fc" TYPE="btrfs" PARTLABEL="/boot" PARTUUID="79e86081-f26c-47ed-b520-f0ef44e193fa"
/dev/sdb4: LABEL="ROOT" UUID="257eb7b3-4239-4ffe-8b26-736c2ed6c1ea" UUID_SUB="63c9d3ef-3820-4cb1-9d89-cf7e4110b574" TYPE="btrfs" PARTLABEL="/" PARTUUID="b1c769d9-524e-4102-bb50-411922ac144c"
/dev/sdb5: LABEL="HOME" UUID="8ffd4aaa-0221-4db2-b58d-8c16fd341823" UUID_SUB="e3fb971b-6c86-4479-bd97-4d4b3dd77d8b" TYPE="btrfs" PARTLABEL="/home" PARTUUID="a7bf1200-efd1-42cd-97a2-c6c2d7b12705"
/dev/sdc1: LABEL="LINUX MINT" UUID="4209-53D4" TYPE="vfat" PARTLABEL="Microsoft Basic Data" PARTUUID="bf391593-7472-4068-aba6-876cd6bc1c23"
/dev/loop0: TYPE="squashfs"
/dev/sdb3: LABEL="SWAP" UUID="081185ab-e2ee-4112-b489-1bdc5d72af02" TYPE="swap" PARTLABEL="swap" PARTUUID="146bafd6-59a3-4ca5-a866-4800f38d5d50"
[/url]


and here is my /etc/fstab
Code:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3
#       filesystems.  This just tells the kernel to use the ext4 driver.
#
# NOTE: You can use full paths to devices like /dev/sda3, but it is often
#       more reliable to use filesystem labels or UUIDs. See your filesystem
#       documentation for details on setting a label. To obtain the UUID, use
#       the blkid(8) command.

UUID=6D64-610A                  /boot/efi         vfat      noauto,noatime   1 2
UUID=c8129eed-c72a-4bd0-b62d-1f3e52579b8e      /boot            btrfs      noatime      0 1
LABEL=SWAP                  none            swap      sw      0 0
UUID=257eb7b3-4239-4ffe-8b26-736c2ed6c1ea      /            btrfs      defaults   0 0
LABEL=HOME      /home            btrfs      noatime      0 1
LABEL=STORAGE      /mnt/storage         btrfs      noatime      0 1
UUID=2cbdf7ad-0df4-4cee-85c6-b0a600d901b4   /mnt/comp   btrfs   noatime      0 1


What am I missing?
Back to top
View user's profile Send private message
joanandk
n00b
n00b


Joined: 12 Feb 2017
Posts: 35

PostPosted: Thu Nov 23, 2017 3:05 pm    Post subject: Reply with quote

Two questions:
a) Have you compiled in the support for GPT?
b) Have you compiled in the support for BTRFS?

BR
Back to top
View user's profile Send private message
ilikeglue
n00b
n00b


Joined: 07 Dec 2017
Posts: 1
Location: Far far away

PostPosted: Thu Dec 07, 2017 9:34 am    Post subject: Reply with quote

Ok well I had similar problems with btrfs before so:

1. Did you add dobtrfs to your kernel's boot args? You can do it in grub by adding it in the configs of grub. Or manuallly with every grub reconfig by adding "dobtrfs" after the "linux kernelname" in the grub.cfg
2. Well if you're using systemd you need to add "init=/usr/lib/systemd/systemd" to the command line once again.
3. Did you add btrfs to the kernel as a module? If yes then don't you need it to be there during boot. Go to the kernel config add make sure in File systems btrfs has a * before it.
_________________
A good night's sleep makes gentoo run sweet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum