public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Grub fails. I missed something.
Date: Sat, 15 Mar 2025 09:18:49 +0000	[thread overview]
Message-ID: <8503384.T7Z3S40VBb@rogueboard> (raw)
In-Reply-To: <e758ccf2-a220-5fbe-455b-70b00e8daab7@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2964 bytes --]

On Saturday, 15 March 2025 07:29:32 Greenwich Mean Time Dale wrote:
> Howdy,
> 
> I have a Samsung SSD 500GB drive that I ended up not using in my new
> build, went with the m.2 stick thingy.  I decided that I would put it in
> the NAS box and replace the spinning rust drive.  I booted a sysrescue
> image.  I created and mounted both drives, creating directories as
> needed.  I then one at a time used cp -av to copy /bin, /boot and so on
> skipping /dev, /proc and such that is created on the fly so to speak.  I
> did create /sys and /proc tho.  I even copied the home directory, not
> that there is much in there that I need.  Once I got it all copied, I
> chrooted into the new drive.

The Handbook states you should -rbind the /dev of the host before you chroot.  
Did you do this?


> I installed grub on it using grub-install
> /dev/sdb, since it is the second drive at this point.

Did you check if 'ls -l /dev/disk/by-id' within the chroot was mapping the 
correct disk to /dev/sdb?

I'll assume your NAS is a legacy BIOS not an EFI MoBo and grub-install /dev/
sdb did not throw up any errors.


> I went back and
> looked at the install docs to be sure I didn't need to run anything
> else.  Since I already had a config file and all, it should just work. 
> 
> When I try to boot with the SSD drive, I get this on the screen, pardon
> my having to type it in.  This comes up right after the BIOS screen.
> 
> 
> loading operating system . . .
> GRUB
> 
> 
> That's it.  It can't be the BIOS because if I connect the old drive as
> first drive, it boots just fine.  I've missed a command somewhere.  I'm
> sure it isn't the OS itself since it is a clone basically.  I am almost
> certain I missed a grub command somewhere but can't figure out what it
> is.  Searching for the error got other hits but not what I'm seeing. 

You did not mention if you ran 'grub-mkconfig -o /boot/grub/grub.cfg' within 
the chroot.  This would read UUID and PARTUID of the new disk and its / 
partition and add these to your grub.cfg file.  Unless you used dd to clone 
the partitions from the old to the new, the new disk partitions and fs IDs 
will be different to the old disk.


> Has someone seen this before and recall how to fix it?  Remember what
> command it is that I missed? 

I think if you follow the Handbook to chroot into your new drive and update 
your grub.cfg it /should/ work.  While you're at it don't forget to edit your 
fstab, if you are specifying filesystems in it using UUIDs.


> I'm not sure this SSD drive is going to make that old NAS mobo go any
> faster.  LOL  It is kinda old. 

I have found SSDs even when installed on old SATA 2.0 MoBos give a performance 
boost - but it depends how slow the spinning disk was.  Replacing a 10,000RPM 
disk with an SSD would not provide any celebratory performance difference.

PS. Check the MoBo BIOS is set to use AHCI for the SATA port you're connecting 
this SSD on, or TRIM/discard won't work.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2025-03-15  9:28 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-15  7:29 [gentoo-user] Grub fails. I missed something Dale
2025-03-15  9:18 ` Michael [this message]
2025-03-15 20:42   ` Dale
2025-03-15 21:43     ` eric
2025-03-16  2:15       ` William Kenworthy
2025-03-16  5:04       ` Dale
2025-03-16  5:34         ` William Kenworthy
2025-03-16  7:30           ` Dale
2025-03-16  9:58             ` Dale
2025-03-16 11:40               ` Michael
2025-03-16 14:05                 ` Michael
2025-03-16 19:14                   ` Dale
2025-03-17  1:01                   ` [gentoo-user] " Grant Edwards
2025-03-17  2:34                     ` Dale
2025-03-17  8:21                       ` Michael
2025-03-17 13:28                     ` Grant Edwards
2025-03-17  3:50 ` [gentoo-user] " Dale
2025-03-17  8:10   ` Michael
2025-03-20  2:25     ` Dale
2025-03-23  5:41       ` Dale
2025-03-23 22:28         ` Frank Steinmetzger
2025-03-24  0:38           ` Dale
2025-03-18 22:35   ` Frank Steinmetzger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8503384.T7Z3S40VBb@rogueboard \
    --to=confabulate@kintzios.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox