On Wed, 7 Sep 2016 01:03:19 +0300, gevisz wrote:

> > grub-mkconfig doesn't care about the fstab of the running distro
> > since it scans your drives for all operating systems it can boot.
> >
> > Either look in grub.cfg to see what it going on or post it here along
> > with the exact error messages so others may try for you.
> >  
> 
> I have added the following line to the /etc/default/grub
> 
> GRUB_CMDLINE_LINUX="root=UUID=44***"

Why? Did you read the relevant section of the GRUB manual before doing
this?
 
> run
> 
> # grub-mkconfig -o /boot/grub/grub.cfg
> 
> and got in  the following entry
> 
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class
> gnu --class os $menuentry_id_option 'gnulinux-simple-44***' {
>     load_video
>     insmod gzio
>     insmod part_msdos
>     insmod ext2
>     set root='hd1,msdos3'
>     if [ x$feature_platform_search_hint = xy ]; then
>       search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3
> --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3
> --hint='hd1,msdos3'  44***
>     else
>       search --no-floppy --fs-uuid --set=root 44***
>     fi
>     echo    'Loading Linux 4.4.6-gentoo ...'
>     linux    /boot/vmlinuz-4.4.6-gentoo root=/dev/sdb3 ro
                                          ~~~~~~~~~~~~~~
> }
> 
> wich, in my view, does not differ a lot from what was before.

We'll have to take your word for that as you didn't post what you had
before, but things don't have to differ a lot to break.

However, the problem is clear in the menu you posted, it is using
root=/dev/sdb3. When you connect anther drive, they are renumbered and
that points to the wrong drive.

> The 44*** denotes the UUID of my boot partition.

Why obfuscate it? It's only a UUID not your online banking password.


-- 
Neil Bothwick

When you go to court you are putting yourself in the hands of 12 people
that were not smart enough to get out of jury duty.

Attachment: pgp0VgQ6hzKru.pgp
Description: OpenPGP digital signature

Reply via email to