Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"jackpot: you may have an unnecessary change record" -- message from "diff"


computers / alt.os.linux.slackware / Re: Grub problem

SubjectAuthor
* Grub problemroot
+* Re: Grub problemJimmy Johnson
|`* Re: Grub problemroot
| `- Re: Grub problemPascal Hambourg
`* Re: Grub problemPascal Hambourg
 `* Re: Grub problemroot
  `* Re: Grub problemPascal Hambourg
   `* Re: Grub problemroot
    `* Re: Grub problemPascal Hambourg
     `* Re: Grub problemroot
      +* Re: Grub problemRich
      |`* Re: Grub problemroot
      | `* Re: Grub problemRich
      |  `- Re: Grub problemPascal Hambourg
      +- Re: Grub problemPascal Hambourg
      `- Re: Grub problemroot

1
Grub problem

<sfkskm$aac$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=598&group=alt.os.linux.slackware#598

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEMail@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Grub problem
Date: Thu, 19 Aug 2021 06:10:30 -0000 (UTC)
Organization: Linux Advocacy
Lines: 117
Message-ID: <sfkskm$aac$1@dont-email.me>
Injection-Date: Thu, 19 Aug 2021 06:10:30 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="771d6f53bd0341d5737f2cceeb6d02f1";
logging-data="10572"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/X+lY3ZlHbR7HAHUEmJT+mtQOnfJzTWTE="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:FnOs4uSI5/lKVSMmn+4h+N85Nwc=
Mail-Copies-To: nobody
 by: root - Thu, 19 Aug 2021 06:10 UTC

I have run into a problem with grub that baffles me.
Grub seems to confuse two drives in my system.

I have an 1TB M2 ssd and three sata drives.
sda is a 2TB spinning disk with 4 partitions.
sdb is a 500GB SSD with a single partition
sdc is a 2TB spinning disk with 4 partitions.

When I first configured the system I was able
to to construct a grub.cfg which allowed me
to to boot into any of the partitions.

Sometime after the initial configuration I
replaced the spinning drive sdc with a different
2TB drive with 4 nearly identical partitions.

I now find I cannot boot into partitions 2,3,4
on sdc. When I do an ls under grub it
seems to show that
sdb=hd1 and sdc=hd2 have been switched. I
see that because the ls shows that hd1 has
four partitions and hd2 has only one partition.

However, when I boot into sdb1 I get into
the correct partition, and similarly for
when I boot into sdc1.

Here is my grub.cfg:

set timeout=10
set vga=791

menuentry 'N1:k4.15.2' {
search --no-floppy --fs-uuid --set=root=UUID bc5617f6-c928-46ea-8a29-46377698cbc3
linux /boot/k4.15.2 load_ramdisk=1 root=UUID=bc5617f6-c928-46ea-8a29-46377698cbc3 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

menuentry 'N1:k64.8.10' {
search --no-floppy --fs-uuid --set=root=UUID bc5617f6-c928-46ea-8a29-46377698cbc3
linux /boot/k64.8.10 load_ramdisk=1 root=UUID=bc5617f6-c928-46ea-8a29-46377698cbc3 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

menuentry 'B1:k4.15.2' {
root='(hd1,1)'
linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sdb1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

menuentry 'A1:k4.15.2' {
#search --no-floppy --fs-uuid --set=root '(hd0,1)'
root='(hd0,1)'
linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sda1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

menuentry 'A2:k4.15.2' {
#search --no-floppy --fs-uuid --set=root '(hd0,2)'
root='(hd0,2)'
linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sda2 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

menuentry 'A4:k4.15.2' {
#search --no-floppy --fs-uuid --set=root '(hd0,4)'
root='(hd0,4)'
linux /boot/vmlinuz-huge-5.13.11 load_ramdisk=1 root=/dev/sda4 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

menuentry 'C1:k4.15.2' {
#search --no-floppy --fs-uuid --set=root '(hd2,1)'
root='(hd2,1)'
linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sdc1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

#----------------the entries above boot correctly, those below do not

menuentry 'C2:k4.15.2' {
#search --no-floppy --fs-uuid --set=root '(hd2,1)'
root='(hd2,2)'
linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sdc1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

menuentry 'C3:k4.15.2' {
#search --no-floppy --fs-uuid --set=root '(hd2,1)'
root='(hd2,3)'
linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sdc1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

Attempts to boot into sdc2 or sdc3 result in a "no such partition" error from grub.

Grub does not recognize the partitions for sdc2,sdc3, or sdc4 even when I use
the uuid block ID.

It does not matter if I use grub from Slackware 14.2 or from the latest Slackware current.
I tried partitioning sdc with both gdisk and fdisk with no change in the result.

Apart from grub, linux has no problem with any of the drives in my system.

I spent about 17 hours today trying to resolve this problem. I would
appreciate any suggestions you might have.

Thanks.

Re: Grub problem

<sfl6de$1bat$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=604&group=alt.os.linux.slackware#604

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!aioZ0bImk1W6iXhakPXh2A.user.46.165.242.91.POSTED!not-for-mail
From: Jimmy@disposable.invalid (Jimmy Johnson)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Thu, 19 Aug 2021 01:57:18 -0700
Organization: Aioe.org NNTP Server
Message-ID: <sfl6de$1bat$1@gioia.aioe.org>
References: <sfkskm$aac$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="44381"; posting-host="aioZ0bImk1W6iXhakPXh2A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: PC Repair and Better Built Computers
X-Notice: Filtered by postfilter v. 0.9.2
 by: Jimmy Johnson - Thu, 19 Aug 2021 08:57 UTC

On 08/18/2021 11:10 PM, root wrote:
> I have run into a problem with grub that baffles me.
> Grub seems to confuse two drives in my system.
>
> I have an 1TB M2 ssd and three sata drives.
> sda is a 2TB spinning disk with 4 partitions.
> sdb is a 500GB SSD with a single partition
> sdc is a 2TB spinning disk with 4 partitions.
>
> When I first configured the system I was able
> to to construct a grub.cfg which allowed me
> to to boot into any of the partitions.
>
> Sometime after the initial configuration I
> replaced the spinning drive sdc with a different
> 2TB drive with 4 nearly identical partitions.
>
> I now find I cannot boot into partitions 2,3,4
> on sdc. When I do an ls under grub it
> seems to show that
> sdb=hd1 and sdc=hd2 have been switched. I
> see that because the ls shows that hd1 has
> four partitions and hd2 has only one partition.
>
> However, when I boot into sdb1 I get into
> the correct partition, and similarly for
> when I boot into sdc1.
>
> Here is my grub.cfg:
>
> set timeout=10
> set vga=791
>
> menuentry 'N1:k4.15.2' {
> search --no-floppy --fs-uuid --set=root=UUID bc5617f6-c928-46ea-8a29-46377698cbc3
> linux /boot/k4.15.2 load_ramdisk=1 root=UUID=bc5617f6-c928-46ea-8a29-46377698cbc3 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
> menuentry 'N1:k64.8.10' {
> search --no-floppy --fs-uuid --set=root=UUID bc5617f6-c928-46ea-8a29-46377698cbc3
> linux /boot/k64.8.10 load_ramdisk=1 root=UUID=bc5617f6-c928-46ea-8a29-46377698cbc3 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
>
>
> menuentry 'B1:k4.15.2' {
> root='(hd1,1)'
> linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sdb1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
>
> menuentry 'A1:k4.15.2' {
> #search --no-floppy --fs-uuid --set=root '(hd0,1)'
> root='(hd0,1)'
> linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sda1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
> menuentry 'A2:k4.15.2' {
> #search --no-floppy --fs-uuid --set=root '(hd0,2)'
> root='(hd0,2)'
> linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sda2 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
> menuentry 'A4:k4.15.2' {
> #search --no-floppy --fs-uuid --set=root '(hd0,4)'
> root='(hd0,4)'
> linux /boot/vmlinuz-huge-5.13.11 load_ramdisk=1 root=/dev/sda4 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
> menuentry 'C1:k4.15.2' {
> #search --no-floppy --fs-uuid --set=root '(hd2,1)'
> root='(hd2,1)'
> linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sdc1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
> #----------------the entries above boot correctly, those below do not
>
>
> menuentry 'C2:k4.15.2' {
> #search --no-floppy --fs-uuid --set=root '(hd2,1)'
> root='(hd2,2)'
> linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sdc1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
>
> menuentry 'C3:k4.15.2' {
> #search --no-floppy --fs-uuid --set=root '(hd2,1)'
> root='(hd2,3)'
> linux /boot/k4.15.2 load_ramdisk=1 root=/dev/sdc1 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
> initrd /boot/initrd.gz
> }
>
> Attempts to boot into sdc2 or sdc3 result in a "no such partition" error from grub.
>
> Grub does not recognize the partitions for sdc2,sdc3, or sdc4 even when I use
> the uuid block ID.
>
> It does not matter if I use grub from Slackware 14.2 or from the latest Slackware current.
> I tried partitioning sdc with both gdisk and fdisk with no change in the result.
>
> Apart from grub, linux has no problem with any of the drives in my system.
>
> I spent about 17 hours today trying to resolve this problem. I would
> appreciate any suggestions you might have.
>
> Thanks.

Edit /etc//fstab to use only UUID and don't use /dev/ on the system with
the problem. 'blkid' as root will give you all drives UUID.

You may need to change grub.cfg to use UUID. I found this but can't test
it, I use legacy-grub.
https://support.huaweicloud.com/intl/en-us/usermanual-ims/ims_01_0324.html
--
Jimmy Johnson

Alien Linux - AMD A8-7600 - at sda11
Registered Linux User #380263

Re: Grub problem

<sflo27$v80$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=605&group=alt.os.linux.slackware#605

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEMail@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Thu, 19 Aug 2021 13:58:31 -0000 (UTC)
Organization: Linux Advocacy
Lines: 30
Message-ID: <sflo27$v80$1@dont-email.me>
References: <sfkskm$aac$1@dont-email.me> <sfl6de$1bat$1@gioia.aioe.org>
Injection-Date: Thu, 19 Aug 2021 13:58:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="771d6f53bd0341d5737f2cceeb6d02f1";
logging-data="32000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QLKIxVlsUNZfxd/jn49RgmC50dTH9OhA="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:2a+K0V5OYb6D1P3Pa1nWNmx8MbU=
 by: root - Thu, 19 Aug 2021 13:58 UTC

Jimmy Johnson <Jimmy@disposable.invalid> wrote:

Thanks for responding. I tried changing grub.cfg to use block-ID
but that didn't make a difference.

>
> Edit /etc//fstab to use only UUID and don't use /dev/ on the system with
> the problem. 'blkid' as root will give you all drives UUID.
>
> You may need to change grub.cfg to use UUID. I found this but can't test
> it, I use legacy-grub.
>
> https://support.huaweicloud.com/intl/en-us/usermanual-ims/ims_01_0324.html

My blkid output is:
/dev/sdc2: UUID="f030cb95-a735-4522-8c84-2ab2691e9020" TYPE="ext4" PARTUUID="9da03be6-02"

The corresponding entry in my grub.cfg would be:

menuentry 'C2:k4.15.2' {
search --no-floppy --fs-uuid --set=root=UUID f030cb95-a735-4522-8c84-2ab2691e9020
linux /boot/k4.15.2 load_ramdisk=1 root=UUID=f030cb95-a735-4522-8c84-2ab2691e9020 prompt_ramdisk=0 ro printk.time=0 vt.default_utf8=0 gfxpayoad=1024x768x64
initrd /boot/initrd.gz
}

This did not change the problem, I still got the "no such partition" message.

Experiments my son did yesterday it makes a difference whether the drive
was originally partitioned using gdisk or fdisk.

Re: Grub problem

<611eb917$0$32523$426a74cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=611&group=alt.os.linux.slackware#611

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Subject: Re: Grub problem
Newsgroups: alt.os.linux.slackware
References: <sfkskm$aac$1@dont-email.me> <sfl6de$1bat$1@gioia.aioe.org>
<sflo27$v80$1@dont-email.me>
From: pascal@plouf.fr.eu.org (Pascal Hambourg)
Date: Thu, 19 Aug 2021 22:03:34 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <sflo27$v80$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 7
Message-ID: <611eb917$0$32523$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 19 Aug 2021 22:03:35 CEST
NNTP-Posting-Host: 213.41.155.166
X-Trace: 1629403415 news-3.free.fr 32523 213.41.155.166:43552
X-Complaints-To: abuse@proxad.net
 by: Pascal Hambourg - Thu, 19 Aug 2021 20:03 UTC

Le 19/08/2021 à 15:58, root a écrit :
>
> search --no-floppy --fs-uuid --set=root=UUID f030cb95-a735-4522-8c84-2ab2691e9020

--set=root=UUID is wrong. Replace with --set=root

Re: Grub problem

<611eba4c$0$27455$426a74cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=612&group=alt.os.linux.slackware#612

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp1-2.free.fr!not-for-mail
Subject: Re: Grub problem
Newsgroups: alt.os.linux.slackware
References: <sfkskm$aac$1@dont-email.me>
From: pascal@plouf.fr.eu.org (Pascal Hambourg)
Date: Thu, 19 Aug 2021 22:08:43 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <sfkskm$aac$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 10
Message-ID: <611eba4c$0$27455$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 19 Aug 2021 22:08:44 CEST
NNTP-Posting-Host: 213.41.155.166
X-Trace: 1629403724 news-3.free.fr 27455 213.41.155.166:43562
X-Complaints-To: abuse@proxad.net
 by: Pascal Hambourg - Thu, 19 Aug 2021 20:08 UTC

Le 19/08/2021 à 08:10, root a écrit :
> Grub seems to confuse two drives in my system.

No, it does't. GRUB gets drive numbers from the firmware (BIOS/UEFI).
Drive number assigned by the firmware are arbitrary, so do not rely on
them. The only constant seems to be that the boot drive in BIOS mode is
always (hd0).

/dev/sd* names have nothing to do with firmware drive numbers, but they
are not reliably persistent. Do not rely on them either.

Re: Grub problem

<sfp5a7$e07$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=615&group=alt.os.linux.slackware#615

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEMail@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Fri, 20 Aug 2021 21:03:04 -0000 (UTC)
Organization: Linux Advocacy
Lines: 31
Message-ID: <sfp5a7$e07$2@dont-email.me>
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr>
Injection-Date: Fri, 20 Aug 2021 21:03:04 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7fc656c641f18cbbf51826c3f8955365";
logging-data="14343"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187Wzo4hkpenlUBSOsTMMaI6ToyczE0WOU="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:RQZRN1t5pgar3vG7qx14J3p3O7c=
 by: root - Fri, 20 Aug 2021 21:03 UTC

Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
> Le 19/08/2021 ?? 08:10, root a ??crit??:
>> Grub seems to confuse two drives in my system.
>
> No, it does't. GRUB gets drive numbers from the firmware (BIOS/UEFI).
> Drive number assigned by the firmware are arbitrary, so do not rely on
> them. The only constant seems to be that the boot drive in BIOS mode is
> always (hd0).
>
> /dev/sd* names have nothing to do with firmware drive numbers, but they
> are not reliably persistent. Do not rely on them either.

Thanks for responding.

The bios reports drive numbers in the order of what we call
sda,sdb,sdc... I tried to add a drive map to grub but
it did not change the order.

When I get the grub menu, I can type c to get a shell
and do ls to see what the drives are.

The ordering is
hd0 sda
hd1 sdc
hd2 sdb

I can edit an entry and then the boot works.

It comes out this way even if I use the blockID

I know this sounds crazy.

Re: Grub problem

<612026cc$0$17817$426a74cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=616&group=alt.os.linux.slackware#616

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp1-1.free.fr!not-for-mail
Subject: Re: Grub problem
Newsgroups: alt.os.linux.slackware
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me>
From: pascal@plouf.fr.eu.org (Pascal Hambourg)
Date: Sat, 21 Aug 2021 00:03:56 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <sfp5a7$e07$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 27
Message-ID: <612026cc$0$17817$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 21 Aug 2021 00:03:56 CEST
NNTP-Posting-Host: 213.41.155.166
X-Trace: 1629497036 news-3.free.fr 17817 213.41.155.166:56162
X-Complaints-To: abuse@proxad.net
 by: Pascal Hambourg - Fri, 20 Aug 2021 22:03 UTC

Le 20/08/2021 à 23:03, root a écrit :
>
> The bios reports drive numbers in the order of what we call
> sda,sdb,sdc...

No it doesn't, as shown below. When it does, it is just a coincidence.

> I tried to add a drive map to grub but
> it did not change the order.

Of course not. The BIOS does not care about GRUB settings.
If by "drive map" you mean /boot/grub/device.map, this is just a hint
used by GRUB tools such as grub-mkconfig.

Use UUIDs or LABELs instead of drive numbers or names.

> The ordering is
> hd0 sda
> hd1 sdc
> hd2 sdb

You demonstrate that the BIOS drive order is not in the order of sda,
sdb, sdc... (which is as unreliable as the BIOS drive order anyway)

> It comes out this way even if I use the blockID

What is the blockID ?

Re: Grub problem

<sfpl6b$5en$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=618&group=alt.os.linux.slackware#618

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEMail@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Sat, 21 Aug 2021 01:34:03 -0000 (UTC)
Organization: Linux Advocacy
Lines: 30
Message-ID: <sfpl6b$5en$2@dont-email.me>
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me>
<612026cc$0$17817$426a74cc@news.free.fr>
Injection-Date: Sat, 21 Aug 2021 01:34:03 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="20576bff523630861fd595b557fc8a78";
logging-data="5591"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18++98MSTtYm0KHJROi29ODk1uyvY3huIQ="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:0QwKwEQBuw9YumMGfSkPgTaud/E=
 by: root - Sat, 21 Aug 2021 01:34 UTC

Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
> Le 20/08/2021 ?? 23:03, root a ??crit??:
>>
>> The bios reports drive numbers in the order of what we call
>> sda,sdb,sdc...
>
> No it doesn't, as shown below. When it does, it is just a coincidence.
>
>> I tried to add a drive map to grub but
>> it did not change the order.
>
> Of course not. The BIOS does not care about GRUB settings.
> If by "drive map" you mean /boot/grub/device.map, this is just a hint
> used by GRUB tools such as grub-mkconfig.
>
> Use UUIDs or LABELs instead of drive numbers or names.
>
>> The ordering is
>> hd0 sda
>> hd1 sdc
>> hd2 sdb
>
> You demonstrate that the BIOS drive order is not in the order of sda,
> sdb, sdc... (which is as unreliable as the BIOS drive order anyway)
>
>> It comes out this way even if I use the blockID
>
> What is the blockID ?

UUID

Re: Grub problem

<6120c1bd$0$27421$426a34cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=626&group=alt.os.linux.slackware#626

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp1-2.free.fr!not-for-mail
Subject: Re: Grub problem
Newsgroups: alt.os.linux.slackware
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me>
<612026cc$0$17817$426a74cc@news.free.fr> <sfpl6b$5en$2@dont-email.me>
From: pascal@plouf.fr.eu.org (Pascal Hambourg)
Date: Sat, 21 Aug 2021 11:05:01 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <sfpl6b$5en$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 20
Message-ID: <6120c1bd$0$27421$426a34cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 21 Aug 2021 11:05:01 CEST
NNTP-Posting-Host: 213.41.155.166
X-Trace: 1629536701 news-4.free.fr 27421 213.41.155.166:37222
X-Complaints-To: abuse@proxad.net
 by: Pascal Hambourg - Sat, 21 Aug 2021 09:05 UTC

Le 21/08/2021 à 03:34, root a écrit :
> Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
>>
>> You demonstrate that the BIOS drive order is not in the order of sda,
>> sdb, sdc... (which is as unreliable as the BIOS drive order anyway)
>>
>>> It comes out this way even if I use the blockID
>>
>> What is the blockID ?
>
> UUID

Using a UUID won't change drive numbers or names. Its purpose is only to
associate a persistant identifier with a block device regardless of the
variable device number or name.

Th "search" command in your grub.cfg is wrong, as I explained in a
previous reply :

--set=root=UUID is wrong. Replace with --set=root

Re: Grub problem

<sfr61g$aii$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=630&group=alt.os.linux.slackware#630

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEMail@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Sat, 21 Aug 2021 15:27:44 -0000 (UTC)
Organization: Linux Advocacy
Lines: 42
Message-ID: <sfr61g$aii$2@dont-email.me>
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me>
<612026cc$0$17817$426a74cc@news.free.fr> <sfpl6b$5en$2@dont-email.me>
<6120c1bd$0$27421$426a34cc@news.free.fr>
Injection-Date: Sat, 21 Aug 2021 15:27:44 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="20576bff523630861fd595b557fc8a78";
logging-data="10834"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cnPzo1l6Pi8Jg/qpFL4L79JM8HVy0SO0="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:PWrbQFLGyEIu9cvt0ADVqJpcoa4=
 by: root - Sat, 21 Aug 2021 15:27 UTC

Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
> Le 21/08/2021 ?? 03:34, root a ??crit??:
>> Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
>>>
>>> You demonstrate that the BIOS drive order is not in the order of sda,
>>> sdb, sdc... (which is as unreliable as the BIOS drive order anyway)
>>>
>>>> It comes out this way even if I use the blockID
>>>
>>> What is the blockID ?
>>
>> UUID
>
> Using a UUID won't change drive numbers or names. Its purpose is only to
> associate a persistant identifier with a block device regardless of the
> variable device number or name.
>
> Th "search" command in your grub.cfg is wrong, as I explained in a
> previous reply :
>
> --set=root=UUID is wrong. Replace with --set=root

I'm sorry I didn't respond earlier. I will make the change
and report back.

I know you didn't suggest the uuid solution, but I want to
comment that the uuid changes if I re-write the partition,
as in formatting and copying new contents. Most of
these partitions are backups so that wouldn't work.
Even then it didn't change the problem.

I've done some more diagnosis of the problem. I have
entries in grub.cfg to boot into the first partition
on drives sda,sdb, and sdc. In each case I see
that I am in the correct partition after booting.
That means that grub identifies hd0 as sda, hd1 as sdb,
and hd2 as sdc.

However, when I try to boot into sdc2 as hd2,2 it says there
is no such partition and similarly for hd2,3 and hd2,4.

Re: Grub problem

<sfr98h$1k7$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=635&group=alt.os.linux.slackware#635

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Sat, 21 Aug 2021 16:22:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <sfr98h$1k7$2@dont-email.me>
References: <sfkskm$aac$1@dont-email.me> <611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me> <612026cc$0$17817$426a74cc@news.free.fr> <sfpl6b$5en$2@dont-email.me> <6120c1bd$0$27421$426a34cc@news.free.fr> <sfr61g$aii$2@dont-email.me>
Injection-Date: Sat, 21 Aug 2021 16:22:41 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8b3eeb6fe45c92f07e0e3c7fe8ac5b18";
logging-data="1671"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0a9jAQd7wQI3ed8lGxvg6"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:pQ2V7Fxgx6eJdV/gH4MYuQ8NCx4=
 by: Rich - Sat, 21 Aug 2021 16:22 UTC

root <NoEMail@home.org> wrote:
> I know you didn't suggest the uuid solution, but I want to comment
> that the uuid changes if I re-write the partition, as in formatting
> and copying new contents. Most of these partitions are backups so
> that wouldn't work. Even then it didn't change the problem.

Correct, although what causes a new UUID to be generated is
initializing a new filesystem.

But, if you want to reuse a UUID, you can (these instructions are for
the ext[234] filesystems). If you've already created them, then aquire
the old UUIDs somehow, then use tune2fs (see "man tune2fs") to assign
the old UUIDs to the newly formatted filesystems.

Or, if you have not yet created them and are manually running the
mkfs.ext[234] command, then use the -U option (see the man page for the
command you use) when you make the filesystem to assign a specific UUID
to the new filesystem. Note you still have to obtain the prior UUID
somehow.

Re: Grub problem

<61212f01$0$12705$426a34cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=636&group=alt.os.linux.slackware#636

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp1-2.free.fr!not-for-mail
Subject: Re: Grub problem
Newsgroups: alt.os.linux.slackware
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me>
<612026cc$0$17817$426a74cc@news.free.fr> <sfpl6b$5en$2@dont-email.me>
<6120c1bd$0$27421$426a34cc@news.free.fr> <sfr61g$aii$2@dont-email.me>
From: pascal@plouf.fr.eu.org (Pascal Hambourg)
Date: Sat, 21 Aug 2021 18:51:13 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <sfr61g$aii$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 13
Message-ID: <61212f01$0$12705$426a34cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 21 Aug 2021 18:51:13 CEST
NNTP-Posting-Host: 213.41.155.166
X-Trace: 1629564673 news-4.free.fr 12705 213.41.155.166:40650
X-Complaints-To: abuse@proxad.net
 by: Pascal Hambourg - Sat, 21 Aug 2021 16:51 UTC

Le 21/08/2021 à 17:27, root a écrit :
>
> I know you didn't suggest the uuid solution, but I want to

I support the UUID solution.

> comment that the uuid changes if I re-write the partition,
> as in formatting and copying new contents. Most of
> these partitions are backups so that wouldn't work.

If you change the filesystem UUID, you need to update grub.cfg in both
places (the search command and the kernel command line), and also
/etc/fstab.

Re: Grub problem

<sfrfv0$pp4$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=639&group=alt.os.linux.slackware#639

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEMail@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Sat, 21 Aug 2021 18:17:05 -0000 (UTC)
Organization: Linux Advocacy
Lines: 8
Message-ID: <sfrfv0$pp4$1@dont-email.me>
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me>
<612026cc$0$17817$426a74cc@news.free.fr> <sfpl6b$5en$2@dont-email.me>
<6120c1bd$0$27421$426a34cc@news.free.fr> <sfr61g$aii$2@dont-email.me>
Injection-Date: Sat, 21 Aug 2021 18:17:05 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="20576bff523630861fd595b557fc8a78";
logging-data="26404"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AX+ZBXQMpOT/OCrq2u9a0J/40bjdLaWs="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:0wAQhtEg7oIfUgwdolNMF2hvaIw=
 by: root - Sat, 21 Aug 2021 18:17 UTC

> Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
>>
>> --set=root=UUID is wrong. Replace with --set=root

Yes, eliminating the =UUID worked, but it also
worked before. I have left it out and will hereafter.

Thanks.

Re: Grub problem

<sfrg26$pp4$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=640&group=alt.os.linux.slackware#640

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEMail@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Sat, 21 Aug 2021 18:18:46 -0000 (UTC)
Organization: Linux Advocacy
Lines: 17
Message-ID: <sfrg26$pp4$2@dont-email.me>
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me>
<612026cc$0$17817$426a74cc@news.free.fr> <sfpl6b$5en$2@dont-email.me>
<6120c1bd$0$27421$426a34cc@news.free.fr> <sfr61g$aii$2@dont-email.me>
<sfr98h$1k7$2@dont-email.me>
Injection-Date: Sat, 21 Aug 2021 18:18:46 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="20576bff523630861fd595b557fc8a78";
logging-data="26404"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+M/dPi/CXaTakcG6Hi7nGjZ+5Qv9hfv70="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:7m1Te5FltL9Kl084tsnwQJ1wzEE=
 by: root - Sat, 21 Aug 2021 18:18 UTC

Rich <rich@example.invalid> wrote:
>
> But, if you want to reuse a UUID, you can (these instructions are for
> the ext[234] filesystems). If you've already created them, then aquire
> the old UUIDs somehow, then use tune2fs (see "man tune2fs") to assign
> the old UUIDs to the newly formatted filesystems.
>
> Or, if you have not yet created them and are manually running the
> mkfs.ext[234] command, then use the -U option (see the man page for the
> command you use) when you make the filesystem to assign a specific UUID
> to the new filesystem. Note you still have to obtain the prior UUID
> somehow.
>

Thanks. Doesn't it seem a little too much trouble? if the (hd..) stuff
works then why not?

Re: Grub problem

<sfrh7k$tr7$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=643&group=alt.os.linux.slackware#643

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: alt.os.linux.slackware
Subject: Re: Grub problem
Date: Sat, 21 Aug 2021 18:38:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <sfrh7k$tr7$2@dont-email.me>
References: <sfkskm$aac$1@dont-email.me> <611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me> <612026cc$0$17817$426a74cc@news.free.fr> <sfpl6b$5en$2@dont-email.me> <6120c1bd$0$27421$426a34cc@news.free.fr> <sfr61g$aii$2@dont-email.me> <sfr98h$1k7$2@dont-email.me> <sfrg26$pp4$2@dont-email.me>
Injection-Date: Sat, 21 Aug 2021 18:38:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8b3eeb6fe45c92f07e0e3c7fe8ac5b18";
logging-data="30567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1913LaLdWYvNnV5/QNiDCPI"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:vSWfExyTuBa2JKvqfi5MnrvHGm0=
 by: Rich - Sat, 21 Aug 2021 18:38 UTC

root <NoEMail@home.org> wrote:
> Rich <rich@example.invalid> wrote:
>>
>> But, if you want to reuse a UUID, you can (these instructions are for
>> the ext[234] filesystems). If you've already created them, then aquire
>> the old UUIDs somehow, then use tune2fs (see "man tune2fs") to assign
>> the old UUIDs to the newly formatted filesystems.
>>
>> Or, if you have not yet created them and are manually running the
>> mkfs.ext[234] command, then use the -U option (see the man page for the
>> command you use) when you make the filesystem to assign a specific UUID
>> to the new filesystem. Note you still have to obtain the prior UUID
>> somehow.
>
> Thanks. Doesn't it seem a little too much trouble? if the (hd..) stuff
> works then why not?

If nothing changes about your system, the hdX numbers are usually
stable. In which case, you won't see a problem using them.

But, if you upgrade to a new motherboard, or add/subtract cards that
contain disk controllers, it is possible the hdX/sdX assignments to
physical disks will be different after the hardware changes.

The UUID's are in the filesystem, so it does not matter if the hdX or
sdX values move around, the UUID's allow the right filesystems to be
mounted correctly.

Re: Grub problem

<612151b3$0$3746$426a74cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=644&group=alt.os.linux.slackware#644

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Subject: Re: Grub problem
Newsgroups: alt.os.linux.slackware
References: <sfkskm$aac$1@dont-email.me>
<611eba4c$0$27455$426a74cc@news.free.fr> <sfp5a7$e07$2@dont-email.me>
<612026cc$0$17817$426a74cc@news.free.fr> <sfpl6b$5en$2@dont-email.me>
<6120c1bd$0$27421$426a34cc@news.free.fr> <sfr61g$aii$2@dont-email.me>
<sfr98h$1k7$2@dont-email.me> <sfrg26$pp4$2@dont-email.me>
<sfrh7k$tr7$2@dont-email.me>
From: pascal@plouf.fr.eu.org (Pascal Hambourg)
Date: Sat, 21 Aug 2021 21:19:15 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <sfrh7k$tr7$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 10
Message-ID: <612151b3$0$3746$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 21 Aug 2021 21:19:15 CEST
NNTP-Posting-Host: 213.41.155.166
X-Trace: 1629573555 news-3.free.fr 3746 213.41.155.166:38554
X-Complaints-To: abuse@proxad.net
 by: Pascal Hambourg - Sat, 21 Aug 2021 19:19 UTC

Le 21/08/2021 à 20:38, Rich a écrit :
>
> But, if you upgrade to a new motherboard, or add/subtract cards that
> contain disk controllers,

or just connect a USB drive

> it is possible the hdX/sdX assignments to
> physical disks will be different after the hardware changes.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor