Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dracut warning: could not boot
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
Vmulay
n00b
n00b


Joined: 11 Jul 2021
Posts: 20

PostPosted: Thu Jul 15, 2021 9:35 am    Post subject: Dracut warning: could not boot Reply with quote

I am receiving a Dracut boot warning after going through the installation handbook. I am configuring separate partitions for file systems including the /usr fs. The handbook does mention that it needs to be mounted so my system is properly booted. So after setting my kernel configurations with makeconfig, I use dracut, point it to the proper kver and run this hostonly.

I finish with the fstab, and reboot to get the dracut warning.

Is there a setting that I am missing, or part of the process I am not completing?

Dracut should mount the /usr fs based on the information in /process/self/mountinfo, do I need to specify anything further for the other partitions? What other recommendations for finding a solution?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Thu Jul 15, 2021 10:06 am    Post subject: Reply with quote

Hi
plz try invoking dracut like this
Code:

dracut --force -H  -a usrmount --kver <>

but i think its enabled by default.
Maybe its your kernel lacking .config
Do you get a dracut shell when the booting fails?
If you tried
Code:

mount /usr
exit

from the shell
does it help?
What is the error message you get @boot?
_________________
:)
Back to top
View user's profile Send private message
Vmulay
n00b
n00b


Joined: 11 Jul 2021
Posts: 20

PostPosted: Thu Jul 15, 2021 1:42 pm    Post subject: Reply with quote

Thanks for your response. I do get a shell after trying to mount as with your post, I get a “mount: /usr: can’t find in /etc/fstab.”

I also get a “Dracut warning: /dev/disk/by-uuid/<disk uuid> does not exist”
Back to top
View user's profile Send private message
Vmulay
n00b
n00b


Joined: 11 Jul 2021
Posts: 20

PostPosted: Thu Jul 15, 2021 3:23 pm    Post subject: Reply with quote

To clarify further, I have specified defaults,discard for my mount type options in fstab, and this is a dual boot with windows. Does dracut use the fstab when mounting the partitions, would it get the right boot partition (ie not windows)?
Back to top
View user's profile Send private message
dalto
n00b
n00b


Joined: 14 Jul 2021
Posts: 20

PostPosted: Thu Jul 15, 2021 3:34 pm    Post subject: Reply with quote

Vmulay wrote:
Thanks for your response. I do get a shell after trying to mount as with your post, I get a “mount: /usr: can’t find in /etc/fstab.”

I also get a “Dracut warning: /dev/disk/by-uuid/<disk uuid> does not exist”


Take a look in /dev from the emergency shell and see if it is detecting your disks. If it is, can we see what /etc/fstab looks like?

If it isn't, you may be missing a driver from your kernel.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Thu Jul 15, 2021 3:47 pm    Post subject: Reply with quote

Quote:

Thanks for your response. I do get a shell after trying to mount as with your post, I get a “mount: /usr: can’t find in /etc/fstab.”

I also get a “Dracut warning: /dev/disk/by-uuid/<disk uuid> does not exist”

Try mounting /usr using full form
Code:

mount /dev/sdx /usr

in dracut shell.
If you use the short form ie
mount /usr
then this presupposes an existing entry in /etc/fstab
Quote:

Does dracut use the fstab when mounting the partitions

No but it uses fstab when creating initrd
Plz post
Code:

cat /etc/fstab
grep GRUB_CMDLINE_LINUX /etc/default/grub
lsblk -f

_________________
:)
Back to top
View user's profile Send private message
Vmulay
n00b
n00b


Joined: 11 Jul 2021
Posts: 20

PostPosted: Thu Jul 15, 2021 7:24 pm    Post subject: Reply with quote

Update: pc no longer recognizes the gentoo boot option (grub doesn’t show up)

I did the install again to try the dracut with —force flag, also added support for NTFS based on suggestion by os-prober, and putting Bitlocker on suspend based on another suggestion found online. I did need to re-make the kernel configuration and initramfs after emerging for the NTFS update. Do I need to re-emerge grub2 again?

I will need to try the install again.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Thu Jul 15, 2021 8:14 pm    Post subject: Reply with quote

Plz
Code:


cat /etc/fstab
grep GRUB_CMDLINE_LINUX /etc/default/grub
lsblk -f

_________________
:)
Back to top
View user's profile Send private message
Vmulay
n00b
n00b


Joined: 11 Jul 2021
Posts: 20

PostPosted: Sat Jul 17, 2021 6:12 pm    Post subject: Reply with quote

Edit: Currently experiencing problems with emerging grub and olefile (dev-python), but my dracut issues preceded this--though still may be related.


my 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.

#LABEL=boot      /boot      ext4      noauto,noatime   1 2
#UUID=58e72203-57d1-4497-81ad-97655bd56494      /      ext4      noatime      0 1
#LABEL=swap      none      swap      sw      0 0
#/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0

AF3E-051B      /boot      vfat      defaults,discard      0 2
80c661f6-582f-4dc6-838f-d09657a0753a      none      swap      sw      0 0
347cae69-f1eb-43e3-8efb-f4cbd5f03289      /      btrfs      defaults,discard      0 1
b393745b-58cd-4a61-a643-83ff2ce189ef      /usr      btrfs      defaults,discard      0 2
7d25f70b-6ee9-4fbc-bb9c-45f0f7345402      /tmp      btrfs      defaults,discard      0 2
1b7b7869-5de4-41d0-ba09-80c4d0bf9df6      /var      btrfs      defaults,discard      0 2
8db1899d-dc94-4ccb-9ed7-937af5b635cc      /opt      btrfs      defaults,discard      0 2
1552ab64-a8b5-45a5-984f-8e6b38dc2c2a      /mnt      ext4      defaults,discard      0 2
ff1c774a-3630-4d85-863e-ec7d1e612c63      /media      ext4      defaults,discard      0 2
ca05f489-02c0-4e15-87f8-f7528cdef7ef      /sbin      ext4      defaults,discard      0 2
99dc96f0-2e83-47ef-94ab-a09df68dd003      /etc      ext4      defaults,discard      0 2
37ec693c-b279-45ae-ae78-0733483d9910      /srv      btrfs      defaults,discard      0 2
4960933e-41ed-4c29-ab32-70975bed9553      /lib      btrfs      defaults,discard      0 2
bb61d470-3ec9-4a87-8086-4fd52d1e3c70      /lib64      btrfs      defaults,discard      0 2
d456d01f-c82f-431b-ba4d-586cc494c999      /home      btrfs      defaults,discard      0 2




grub CMDLINE output:
Code:

#GRUB_CMDLINE_LINUX=""
# GRUB_CMDLINE_LINUX="net.ifnames=0"
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
#GRUB_CMDLINE_LINUX_DEFAULT=""





my lsblk output:

Code:

NAME         FSTYPE    FSVER LABEL                            UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0        squashfs                                                                                             
sda          iso9660         Gentoo amd64 AdminCD 20210630T21 2021-07-01-03-10-44-18                             
├─sda1       iso9660         Gentoo amd64 AdminCD 20210630T21 2021-07-01-03-10-44-18                             
└─sda2       vfat            GENTOOLIVE                       2340-D9B6                                           
sdb                                                                                                               
└─sdb1       vfat                                             41E2-D5B3                               7.8G    46% /media/usb-drive
nvme0n1                                                                                                           
├─nvme0n1p1  vfat                                             D079-4E13                                           
├─nvme0n1p2                                                                                                       
├─nvme0n1p3  BitLocker                                                                                           
├─nvme0n1p4  ntfs                                             3650F41850F3DC95                                   
├─nvme0n1p5  BitLocker                                                                                           
├─nvme0n1p6  ntfs                                             50C2A3D8C2A3C118                                   
├─nvme0n1p7  vfat                                             AF3E-051B                             199.4M    21% /boot
├─nvme0n1p8  swap                                             80c661f6-582f-4dc6-838f-d09657a0753a                [SWAP]
├─nvme0n1p9  btrfs                                            347cae69-f1eb-43e3-8efb-f4cbd5f03289     30G     0% /
├─nvme0n1p10 btrfs                                            b393745b-58cd-4a61-a643-83ff2ce189ef     15G    25% /usr
├─nvme0n1p11 btrfs                                            7d25f70b-6ee9-4fbc-bb9c-45f0f7345402     32G     0% /tmp
├─nvme0n1p12 btrfs                                            1b7b7869-5de4-41d0-ba09-80c4d0bf9df6    5.6G    38% /var
├─nvme0n1p13 btrfs                                            8db1899d-dc94-4ccb-9ed7-937af5b635cc      5G     0% /opt
├─nvme0n1p14 ext4                                             1552ab64-a8b5-45a5-984f-8e6b38dc2c2a    895K     1% /mnt
├─nvme0n1p15 ext4                                             ff1c774a-3630-4d85-863e-ec7d1e612c63    888K     2% /media
├─nvme0n1p16 ext4                                             ca05f489-02c0-4e15-87f8-f7528cdef7ef  200.1M     8% /sbin
├─nvme0n1p17 ext4                                             99dc96f0-2e83-47ef-94ab-a09df68dd003  431.2M     3% /etc
├─nvme0n1p19 btrfs                                            37ec693c-b279-45ae-ae78-0733483d9910      2G     0% /srv
├─nvme0n1p20 btrfs                                            4960933e-41ed-4c29-ab32-70975bed9553    4.3G    14% /lib
├─nvme0n1p21 btrfs                                            bb61d470-3ec9-4a87-8086-4fd52d1e3c70      5G     0% /lib64
└─nvme0n1p22 btrfs                                            d456d01f-c82f-431b-ba4d-586cc494c999    108G     0% /home

Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Sat Jul 17, 2021 6:29 pm    Post subject: Reply with quote

Hi
in /etc/default/grub please add
Code:

GRUB_CMDLINE_LINUX="root=UUID=347cae69-f1eb-43e3-8efb-f4cbd5f03289 rootfstype=btrfs..............."

Then rebuild dracut initrd and update grub.
I hope your kernel is NOT missing NVME btrfs and ext4 config.
If in doubt use a binary kernel to test.
_________________
:)
Back to top
View user's profile Send private message
Vmulay
n00b
n00b


Joined: 11 Jul 2021
Posts: 20

PostPosted: Sat Jul 17, 2021 6:44 pm    Post subject: Reply with quote

Thanks for the response, can you clarify what the "dots" in the code signify? Do they need to go in to the parameter as is, or do I need to include details of my other file systems. Also my /usr is partitioned separately from root, should this be included?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Sat Jul 17, 2021 6:47 pm    Post subject: Reply with quote

Quote:

can you clarify what the "dots" in the code signify? Do they need to go in to the parameter as is, or do I need to include details of my other file systems

no no.you just include other kernel parameters that you need.
net.ifnames=0
is a good one.
You may delete all dots.
Quote:

Also my /usr is partitioned separately from root, should this be included

no
:)
_________________
:)
Back to top
View user's profile Send private message
Vmulay
n00b
n00b


Joined: 11 Jul 2021
Posts: 20

PostPosted: Sat Jul 17, 2021 8:52 pm    Post subject: Reply with quote

my dracut rdsosreport:

http://ix.io/3tiI


Problem persists
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Sat Jul 17, 2021 9:12 pm    Post subject: Reply with quote

Quote:

dracut: modprobe: FATAL: Module btrfs not found in directory /lib/modules/5.10.49-gentoo-r1
[ 2.009335] dracut Warning: ZFS: No hostid found on kernel command line or /etc/hostid.
[ 2.011337] dracut Warning: ZFS: Pools may not import correctly.

What is this all about?
Try with binary kernel plz
Do you have
Code:

CONFIG_BTRFS_FS=m
CONFIG_BTRFS_FS_POSIX_ACL=y


in your .config?
Also what is these ZFS related errors?
Do you use zfs on your filesystem?
Quote:

2.741510] dracut: ZFS: There is an active pool, will export it.

_________________
:)
Back to top
View user's profile Send private message
Vmulay
n00b
n00b


Joined: 11 Jul 2021
Posts: 20

PostPosted: Sun Jul 18, 2021 2:33 am    Post subject: Reply with quote

alamahant wrote:

Do you have
Code:

CONFIG_BTRFS_FS=m
CONFIG_BTRFS_FS_POSIX_ACL=y

in your .config?


I have yes for both.

alamahant wrote:


Also what is these ZFS related errors?
Do you use zfs on your filesystem?


I had a note about a cyclic dependency in an earlier attempt to fix the grub issue, mentioned in my other post, I emerged it without knowing what it is.
Back to top
View user's profile Send private message
haf1zoglu
n00b
n00b


Joined: 28 Nov 2022
Posts: 12

PostPosted: Thu Jan 18, 2024 2:29 pm    Post subject: Reply with quote

On my case, dracut was complianing and i have changed /etc/fstab file as below.


So it was clearly worked for me , to change

FROM:

/dev/nvme0n1 /boot vfat defaults 0 2
/dev/nvme0n2 none swap sw 0 0
/dev/nvme0n3 / ext4 ssd,defaults 0 1


TO:


/dev/nvme0n1 /boot vfat defaults 0 2
/dev/nvme0n2 none swap sw 0 0
/dev/nvme0n3 / ext4 defaults,noatime 0 1
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