1 |
On Tue, Sep 6, 2016 at 6:03 PM, gevisz <gevisz@×××××.com> wrote: |
2 |
> 2016-09-07 0:32 GMT+03:00 Neil Bothwick <neil@××××××××××.uk>: |
3 |
>> On Wed, 7 Sep 2016 00:05:32 +0300, gevisz wrote: |
4 |
>> |
5 |
>>> >> But it seems that GRUB does not read fstab... :( |
6 |
>>> > |
7 |
>>> > It does not, because it has not loaded the kernel yet, so it cannot do |
8 |
>>> > anything on the system. |
9 |
>>> |
10 |
>>> Oh, poor little Grand Unified Boot Loader! |
11 |
>>> |
12 |
>>> It cannot do anything! Even to read fstab by its grub-mkconfig script! |
13 |
>> |
14 |
>> We were talking about GRUB the bootloader, not grub-mkconfig the Linux |
15 |
>> program to write grub.cfg. As you were asking whether you should run |
16 |
>> grub-mkconfig again, it seems reasonable to assume that you haven't run |
17 |
>> it since adding the disk, not that it should make a difference. |
18 |
>> |
19 |
>>> P.S. I usually run grub-mkconfig when kernel is already loaded! |
20 |
>>> And in my fstab all the disks are refered by UUID! |
21 |
>>> |
22 |
>> |
23 |
>> grub-mkconfig doesn't care about the fstab of the running distro since it |
24 |
>> scans your drives for all operating systems it can boot. |
25 |
>> |
26 |
>> Either look in grub.cfg to see what it going on or post it here along |
27 |
>> with the exact error messages so others may try for you. |
28 |
>> |
29 |
> |
30 |
> I have added the following line to the /etc/default/grub |
31 |
> |
32 |
> GRUB_CMDLINE_LINUX="root=UUID=44***" |
33 |
> |
34 |
> run |
35 |
> |
36 |
> # grub-mkconfig -o /boot/grub/grub.cfg |
37 |
> |
38 |
> and got in the following entry |
39 |
> |
40 |
> ### BEGIN /etc/grub.d/10_linux ### |
41 |
> menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class |
42 |
> gnu --class os $menuentry_id_option 'gnulinux-simple-44***' { |
43 |
> load_video |
44 |
> insmod gzio |
45 |
> insmod part_msdos |
46 |
> insmod ext2 |
47 |
> set root='hd1,msdos3' |
48 |
> if [ x$feature_platform_search_hint = xy ]; then |
49 |
> search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 |
50 |
> --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 |
51 |
> --hint='hd1,msdos3' 44*** |
52 |
> else |
53 |
> search --no-floppy --fs-uuid --set=root 44*** |
54 |
> fi |
55 |
> echo 'Loading Linux 4.4.6-gentoo ...' |
56 |
> linux /boot/vmlinuz-4.4.6-gentoo root=/dev/sdb3 ro |
57 |
> } |
58 |
> |
59 |
> wich, in my view, does not differ a lot from what was before. |
60 |
> |
61 |
> The 44*** denotes the UUID of my boot partition. |
62 |
> |
63 |
> Will try it tomorrow and report. |
64 |
> |
65 |
|
66 |
grub-mkconfig is not finding an initramfs, as evidenced by the lack of |
67 |
an "initrd" in in grub.cfg. |
68 |
|
69 |
If it is unable to find an initramfs, it will always output |
70 |
root=/dev/sdX instead of root=UUID=... |