• Re: [gentoo-user] Grub fails. I missed something.

    From eric@21:1/5 to Dale on Sat Mar 15 22:50:01 2025
    On 3/15/25 13:42, Dale wrote:
    The biggest thing that slows that system is that the CPU doesn't have
    AES support for my encryption on the drives.  Still, I wanted to play
    with it and see if it would go any faster.  I kinda hate having a nice
    SSD drive laying on the shelf doing nothing.  I got a good deal but
    still, needs to get some exercise.

    I know I'm missing a step somewhere.  What I may do, start over and put
    a DOS partition table on it and just copy over /etc and the world file.
    Then let it rebuild everything.  If I do that, I got to wait until this storm is gone and may have to wait until we finish that last tree.  We
    got one finished yesterday and got the last one cut up and ready to
    split, haul to the barn and stack.  It's a LOT of wood.  He said it will last him two years at least.  He keeps 3 to 5 years worth on hand.  I
    think he is at about the 6 year mark now.  He loves working with wood.
    Oh, trees were dead or dying for those who hate to read about wood being
    cut up.  The two we cut was a danger to the guys home and outbuildings, depending on where the wind took it.  The first tree was dead.  It had
    no leaves last year and was rotting at the bottom.  The two trees had
    insect damage and were starting to die as well.  When it fell, the trunk actually broke in a couple places since it was weakening.  Most of the
    trees he cuts, storms put them on the ground.  Cutting down a tree isn't something he does a whole lot of unless a tree is dead.

    Anyway, I may just do a quick reinstall and change partition tables.
    Maybe that has something to do with it.  One reason I'd like to figure
    it out tho, may help some other poor soul who is trying to use some
    older hardware and runs into this problem.

    The only thing I can think of that you may have missed is to rebuild
    your initrd.img or what ever ram disk you may be using to boot up. You
    would have to do this while chrooted. As others have stated, make sure
    your fstab file is updated correctly as well as the grub.cfg.

    Regards,
    Eric

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From William Kenworthy@21:1/5 to eric on Sun Mar 16 03:20:01 2025
    On 16/3/25 05:43, eric wrote:
    On 3/15/25 13:42, Dale wrote:
    The biggest thing that slows that system is that the CPU doesn't have
    AES support for my encryption on the drives.  Still, I wanted to play
    with it and see if it would go any faster.  I kinda hate having a
    nice SSD drive laying on the shelf doing nothing.  I got a good deal
    but still, needs to get some exercise.

    I know I'm missing a step somewhere.  What I may do, start over and
    put a DOS partition table on it and just copy over /etc and the world
    file.  Then let it rebuild everything.  If I do that, I got to wait
    until this storm is gone and may have to wait until we finish that
    last tree.  We got one finished yesterday and got the last one cut up
    and ready to split, haul to the barn and stack.  It's a LOT of wood. 
    He said it will last him two years at least.  He keeps 3 to 5 years
    worth on hand.  I think he is at about the 6 year mark now.  He loves
    working with wood.  Oh, trees were dead or dying for those who hate
    to read about wood being cut up.  The two we cut was a danger to the
    guys home and outbuildings, depending on where the wind took it.  The
    first tree was dead.  It had no leaves last year and was rotting at
    the bottom.  The two trees had insect damage and were starting to die
    as well.  When it fell, the trunk actually broke in a couple places
    since it was weakening.  Most of the trees he cuts, storms put them
    on the ground.  Cutting down a tree isn't something he does a whole
    lot of unless a tree is dead.

    Anyway, I may just do a quick reinstall and change partition tables. 
    Maybe that has something to do with it.  One reason I'd like to
    figure it out tho, may help some other poor soul who is trying to use
    some older hardware and runs into this problem.

    The only thing I can think of that you may have missed is to rebuild
    your initrd.img or what ever ram disk you may be using to boot up. You
    would have to do this while chrooted. As others have stated, make sure
    your fstab file is updated correctly as well as the grub.cfg.

    Regards,
    Eric



    have you enabled the nvme settings in the kernel and loaded the module
    if selected?

    BillK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From William Kenworthy@21:1/5 to Dale on Sun Mar 16 06:40:01 2025
    On 16/3/25 13:04, Dale wrote:
    eric wrote:
    On 3/15/25 13:42, Dale wrote:
    The biggest thing that slows that system is that the CPU doesn't have
    AES support for my encryption on the drives.  Still, I wanted to play
    with it and see if it would go any faster.  I kinda hate having a
    nice SSD drive laying on the shelf doing nothing.  I got a good deal
    but still, needs to get some exercise.

    I know I'm missing a step somewhere.  What I may do, start over and
    put a DOS partition table on it and just copy over /etc and the world
    file.  Then let it rebuild everything.  If I do that, I got to wait
    until this storm is gone and may have to wait until we finish that
    last tree.  We got one finished yesterday and got the last one cut up
    and ready to split, haul to the barn and stack.  It's a LOT of wood.
    He said it will last him two years at least.  He keeps 3 to 5 years
    worth on hand.  I think he is at about the 6 year mark now.  He loves
    working with wood.  Oh, trees were dead or dying for those who hate
    to read about wood being cut up.  The two we cut was a danger to the
    guys home and outbuildings, depending on where the wind took it.  The
    first tree was dead.  It had no leaves last year and was rotting at
    the bottom.  The two trees had insect damage and were starting to die
    as well.  When it fell, the trunk actually broke in a couple places
    since it was weakening.  Most of the trees he cuts, storms put them
    on the ground.  Cutting down a tree isn't something he does a whole
    lot of unless a tree is dead.

    Anyway, I may just do a quick reinstall and change partition tables.
    Maybe that has something to do with it.  One reason I'd like to
    figure it out tho, may help some other poor soul who is trying to use
    some older hardware and runs into this problem.
    The only thing I can think of that you may have missed is to rebuild
    your initrd.img or what ever ram disk you may be using to boot up. You
    would have to do this while chrooted. As others have stated, make sure
    your fstab file is updated correctly as well as the grub.cfg.

    Regards,
    Eric



    Now that lead to something.  First, I hadn't rebuilt the init thingy.
    So, I booted up, mounted, chrooted and all that.  I then created a new
    init thingy and replaced the old one.  Second.  Then I also noticed something else.  There was very little in /boot.  I don't know if I accidentally erased it or if the copy process failed without telling
    me.  I know I mounted it and copied it.  I actually copied /boot first, then did a ls / and went down the list skipping /dev, /proc and such.  I also did a ls /boot while in the chroot to be sure things matched up to
    the original.  Plus, when I did the grub update to find kernels, init thingys and the firmware image, it showed it found them.  What happened
    in between, no clue.  Now here's another strange thing, sda1 is /boot.
    When I'm booted from the SSD, I can't mount sda1 for /boot.  It
    complains about file system type.  It's ext2 by the way.  I need to look into that.  I'll go back to the old drive and see what I can figure out.

    So, I forgot to update fstab, but it failed before it got that far
    anyway.  I also didn't know I needed to rebuild the init thingy.  Then there is the weird missing files in /boot.  Then there is the inability
    to mount /boot while booted from the SSD, which shows not file system at all.  lsblk says the same.  Weird.

    Extra question.  On my main rig, I have the GPT tools installed with
    package sys-apps/gptfdisk.  It is installed and it even works.  I've
    used it on my new rig to set up several drives including the m.2 stick
    for the OS but others for my LVM drives.  Check this out tho.


    root@Gentoo-1 / # which cgdisk
    /usr/bin/cgdisk
    root@Gentoo-1 / # equery b /usr/bin/cgdisk
     * Searching for /usr/bin/cgdisk ...
    root@Gentoo-1 / # equery list sys-apps/gptfdisk
     * Searching for gptfdisk in sys-apps ...
    [IP-] [  ] sys-apps/gptfdisk-1.0.10-r1:0
    root@Gentoo-1 / # equery f sys-apps/gptfdisk
     * Searching for gptfdisk in sys-apps ...
     * Contents of sys-apps/gptfdisk-1.0.10-r1:
    /usr
    /usr/sbin
    /usr/sbin/cgdisk
    /usr/sbin/fixparts
    /usr/sbin/gdisk
    /usr/sbin/sgdisk
    /usr/share
    /usr/share/doc
    /usr/share/doc/gptfdisk-1.0.10-r1
    /usr/share/doc/gptfdisk-1.0.10-r1/NEWS.bz2 /usr/share/doc/gptfdisk-1.0.10-r1/README.bz2
    /usr/share/man
    /usr/share/man/man8
    /usr/share/man/man8/cgdisk.8.bz2
    /usr/share/man/man8/fixparts.8.bz2
    /usr/share/man/man8/gdisk.8.bz2
    /usr/share/man/man8/sgdisk.8.bz2
    root@Gentoo-1 / #


    As you can see, the package is installed, the cgdisk command is
    installed by emerge and all.  Thing is, equery b and equery list doesn't find it but equery f does.  I'm scratching my head here.  The equery b should show the package it belongs too and equery list should list it as installed.  Did I mess up something or is there some sort of bug in
    equery?

    Now to reboot and see what is up with /boot on the SSD.  :/

    Thanks.

    Dale

    :-)  :-)



    Depending how you built the initrd, it will likely use the current fstab
    and /etc/conf.d/modules as to what will be included.  If you make
    changes to the system, you should rebuild the initrd (especially
    important if dracut is used in hostonly mode).

    You can use lsinitrd to make sure it actually includes what you think it
    does (its really only a file system after all)

    BillK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Sun Mar 16 11:40:14 2025
    On Sunday, 16 March 2025 09:58:42 Greenwich Mean Time Dale wrote:
    Dale wrote:
    Well, this got interesting. I booted the spinning rust drive again and redone the /boot from the old system. I rebuilt the init thingy because the one that was there was for the old drive. I then ran the usual grub commands to generate the config file and even reinstalled grub just to
    be sure. When I tried to reboot the SSD drive, I was back to the
    original screen at the start of this thread. While I'd like to fix this and perhaps that fix help someone else in the future, this is just
    getting annoying. I should have put a DOS partition on the thing and it could be that is the problem despite the parted trick that I've used in
    the past. I dunno.

    So I'm just going to start over and use a DOS partition table this
    time. That may fix it. If that fails, I'll just reinstall from
    scratch. That should fix it for sure. I got all the config files,
    world file and such that I need. I just wish it was colder outside.
    That little mobo creates some heat. LOL

    In the future, if someone runs into this thread, try rebuilding the init thingy and all the grub update commands. It should work. It did here once.

    Thanks to all for helping.

    Dale

    :-) :-)

    Hmmm. I usually use dd or shred to erase a spinning rust drive. How in the heck do I do this on a SSD and not affect it in a negative way? I never thought about erasing one of those before. :-|

    Update. I found a command that wipes partition tables in my little
    file, where I put things I forget about quite often. This is my little
    note.


    wipefs -a -f /dev/sdX # erase partition table for DOS or GPT


    It's very fast so I assume it erases only the needed bits but doesn't
    write to other areas, erase user data to prevent recovery or anything.
    Still, since I was going to put something else on it right away, I
    wasn't worried about that anyway.

    You can use fdisk/gdisk/parted to change the partition table from legacy DOS- MBR to GPT, then create the new partitions, finally format them with a
    suitable filesystem.

    However, you did not need to do this, GPT would be totally suitable for your disk.


    After all that, I partitioned the SSD, copied everything over, chrooted
    into the SSD OS and then made a new init thingy, updated grub, installed
    grub and I also re-emerged the linux firmware package. It puts a .img
    file in /boot and grub picks that up. I don't know if it matters but
    since I did everything else, that was one that I hadn't done before.
    Maybe it was wrong on the SSD and grub loads it first. If it fails, no
    boot. It's possible anyway.

    I wouldn't think your aged system wouldn't boot if some firmware file was missing - unless such firmware was necessary to access your drives.


    Oh, I also set the labels on the file systems for boot, root and home,
    like I usually do. I didn't have to update fstab this time. Those
    still matched up just fine with labels.

    Again, thanks to all who helped. It could be the GPT partition table or
    it might have been that firmware image. I dunno. It works now tho.
    Oh, it might boot a tiny bit faster. Maybe.

    Dale

    :-) :-)

    I think the problem was with your initrd, plus the missing grub and other
    files from /boot fs indicate you may have not mounted it the first time you chrooted.
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmfWuJ4ACgkQseqq9sKV Zxklvw/+NSISQd4rskYLPepxd9darLf58hW2EHwPicy3s9TiACAZ6NPgJc4lEk5X vCgyzrKENkeOMdWJQ6+Bl+PcVN0SyhMcV8kxyuc8JNCb4N/kO1Flzki8wJk9TOPu U1gdWZIKgCTN5LXGSugOLuhzpTqhxo8EDqmn1Ti+YkcWDp1Y3VQq2Qcq0DyrQBha PZrlN3bmBw6BBbnkcpIlWh5kY6btFr8xJq+E0rRf4DdUd/v3ow/VZW4VFTooyf3W Vvn9rMdFFltSRIb87BYCpG/jUcGR4LECV2wbuIw0Q9T6gIZDJSwpSM5/UZYBE4vy cRCVntZyvgEPf3J31Pw0uqtu0oDZwF1k4YmGUx9qN7iAnQO87NCQ8zk9fGi8M7fi td3wsh0kdYdCXpGwzqWcHX91fcwA1DzJeAzQLtrOcpVR99seRzM0f7m4m+43IcH6 U9FVpNOXDhW4SL42N3Inhm01LDQgPaTTGtb3I3jTsL+HhZMNqspqhCoxhrfV+39X qZ/pUZYOoBUtuqM8lDcY3azL/UxhMKqBzr3L5Xn9D6jkdfVNFppWGgsbs1PO3h3S SzQd/NSghtbIlk66D4aO6sd5a3HjnuwWw+/V5OGzyGiCT4f1PlgPQagwoslwxGo/ lbaSlGMTDCDb3bMkoRCUMra5aM4CWR1S5103ewobiWtQRCotFOQ=
    =Yggs
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Sun Mar 16 14:05:10 2025
    On Sunday, 16 March 2025 11:40:14 Greenwich Mean Time you wrote:
    On Sunday, 16 March 2025 09:58:42 Greenwich Mean Time Dale wrote:
    Dale wrote:
    Well, this got interesting. I booted the spinning rust drive again and redone the /boot from the old system. I rebuilt the init thingy because the one that was there was for the old drive. I then ran the usual grub commands to generate the config file and even reinstalled grub just to
    be sure. When I tried to reboot the SSD drive, I was back to the original screen at the start of this thread. While I'd like to fix this and perhaps that fix help someone else in the future, this is just getting annoying. I should have put a DOS partition on the thing and it could be that is the problem despite the parted trick that I've used in the past. I dunno.

    So I'm just going to start over and use a DOS partition table this
    time. That may fix it. If that fails, I'll just reinstall from
    scratch. That should fix it for sure. I got all the config files,
    world file and such that I need. I just wish it was colder outside.
    That little mobo creates some heat. LOL

    In the future, if someone runs into this thread, try rebuilding the init thingy and all the grub update commands. It should work. It did here once.

    Thanks to all for helping.

    Dale

    :-) :-)

    Hmmm. I usually use dd or shred to erase a spinning rust drive. How in the heck do I do this on a SSD and not affect it in a negative way? I never thought about erasing one of those before. :-|

    Update. I found a command that wipes partition tables in my little
    file, where I put things I forget about quite often. This is my little note.


    wipefs -a -f /dev/sdX # erase partition table for DOS or GPT


    It's very fast so I assume it erases only the needed bits but doesn't
    write to other areas, erase user data to prevent recovery or anything. Still, since I was going to put something else on it right away, I
    wasn't worried about that anyway.

    You can use fdisk/gdisk/parted to change the partition table from legacy
    DOS- MBR to GPT, then create the new partitions, finally format them with a suitable filesystem.

    However, you did not need to do this, GPT would be totally suitable for your disk.

    Ugh! I didn't provide a comprehensive answer - sorry. All this MBR nostalgia I've been trying to forget. LOL!

    If you are installing GRUB on a GPT disk, which is meant to boot on a legacy BIOS MoBo, you *must* create a BIOS Boot Partition (gdisk code EF02). GRUB will drop its boot.img in the disk's MBR (sector 0) then would try to install its core.img in sector 1, exactly where GPT has stored its own primary table. With a BIOS Boot Partition this clash is averted.

    Or, alternatively, you stick with a conventional MBR-DOS partition table which will work fine as long as the partitionable space is no larger than 2TB (using 512-byte sectors) and the total number of partitions (primary plus logical) is not ridiculously large.


    After all that, I partitioned the SSD, copied everything over, chrooted into the SSD OS and then made a new init thingy, updated grub, installed grub and I also re-emerged the linux firmware package. It puts a .img
    file in /boot and grub picks that up. I don't know if it matters but
    since I did everything else, that was one that I hadn't done before.
    Maybe it was wrong on the SSD and grub loads it first. If it fails, no boot. It's possible anyway.

    I wouldn't think your aged system wouldn't boot if some firmware file was missing - unless such firmware was necessary to access your drives.

    Oh, I also set the labels on the file systems for boot, root and home,
    like I usually do. I didn't have to update fstab this time. Those
    still matched up just fine with labels.

    Again, thanks to all who helped. It could be the GPT partition table or
    it might have been that firmware image. I dunno. It works now tho.
    Oh, it might boot a tiny bit faster. Maybe.

    Dale

    :-) :-)

    I think the problem was with your initrd, plus the missing grub and other files from /boot fs indicate you may have not mounted it the first time you chrooted.

    Rethinking all this techno-legacy, I think a critical problem was the lack of
    a BIOS Boot Partition as explained above.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmfW2pYACgkQseqq9sKV Zxl8dhAAqSGUxNTXNrjYiycrOMq8JxH2WBohgJ9v5TTZKxSq0fBkckqoEr8+MHc4 4Yc7I07AHj5HKXdfyE8VLvwNW3pOOAXD0SrwcwkFuH6qACza1wiaXrWbU+JDrpMD S32GMsJuGU1oxxQt/L8Bk2uIqqp9Gzj2D2gnC2WLthrYnrgIk3N3iHrtoMS8ONaj IMwsobIkvfT6cf3AYK8TLtTdBO/SXG7UKo30MTacAMSJfO4Py8uxfPs2F9hJXlgd Zgd/8xH93FEWPQl6PGw8H5KHHcV6J3SGVVbpiHWv9qLklU2nm2HqQ8wYYwP6Mbxf BtXS2LMhNf88TF+dqY1J+KHPKlFbz+fjLRp4vFhpKPFu464+HTFHMwlnY8WDfe9X GjEBNDHwjimbF+50/OGVsfpwSdy/VlcUTd57Ag1troAFM9Q8jNfbgK9X2UH/9dtI aYvNT9gMkR1JHZ7Ta9QJpHOXVjseKwgnsH2DZ08x6VenO7yQWGEycffpLVBu2hqG +0YTtlq9hSAMJYYbLkacHiZPaZ4UQFXq+fW+h3fE/CQKh4wbh6BJGAD52IjonMN4 4KBbI7d6NyKWSOaGby2yREYB0hfpbZVQlzbUkRaEDuvMRweokdpj7MLZcOmNKTDk DFM8cTnrG5BbWoqLFY9UACfoxMpUxa/VvQDodJB6y9jypITYJw4=
    =lRgE
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Mon Mar 17 08:10:28 2025
    You could chroot from a liveUSB or better your old hdd and check you have /etc /root and /home/dale in place and the contents and access rights have been copied over correctly - rsync should do this fast enough. Before you start nuking things indiscriminately please note your /etc/fstab is now
    different(?).

    Alternatively, you're into checking /etc/passwd, /etc/shadow, /etc/group, / etc/pam.d/* to see what may have been missed out and copying over or perhaps reinstalling whatever package may have gone bad.

    On Monday, 17 March 2025 03:50:05 Greenwich Mean Time Dale wrote:
    Dale wrote:
    Howdy,

    New problem. As I mentioned in another reply, I booted the NAS box to
    update my backups. The thing won't let me login. I type in root, it
    sits there for 20 or 30 seconds then returns to a login prompt. I also
    tried the user dale but no joy there either. I'm back to spinning rust
    to update my backups.

    Now what in the heck causes that? I'm about ready to just reinstall the
    OS. This copy process just isn't working well. If it's not one thing,
    it's something else.

    Thoughts? Just reinstall and get it over with? LOL

    Dale

    :-) :-)


    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmfX2PQACgkQseqq9sKV ZxnuQxAA0LQbXf2OV8j/Cm9okaqM4IIN2V3Nr1fjnThC9fcCXEHWhbOqZqAD1zjl mlrLZ/ecBOkJwV4tk8HVDsYc0AbVggUo6BhJHdcXaR2QX3b0FK5+L8+5M2nrYcTr UQ+ykGT+X2/sNx1yTFAKH/T6F4rsVsR+qTKpz4bkpxl+E+rggK3BfA1jzvisqrcE e95KYh8VvxtpCLgkCOS19NLSWaUeVIHRk5V5RGZ+P6fqrBiTLiauUpgoOCszofNc 5TDBjC8ViAtozokizYeHfMVBzB/f6I2AETVKPq7odv56FefygLNp2stSUye6lD9B ujGojvv8C1CfSwIQaNiJ049XfaQ1jF+4hUSbs4MP/bHzZioe84iZagE7882Bz1TG hp7tr2/5ic7Hd+tZjB60eoP/1B1hSLXGiHFLi4ftoHWJHjHlXKH/LBFB0hzT4JLh EQf2VR1BYaX28/60yS0BeToaJDRl0rskp2nqqd9+r3DuUWNOLPwt/UHVWi6nC4ZE yerccp1srhPG9O0hYRN7ORjbxe1bEQ0xQzCl+KSuRuU4FIBrfSxRoKQp3tjPJRwL 1T01d6DRes15hGh2uD9sTnEzgcUz3/Ma/1JirivCkWtK7MrD/fzn5N4fNdNndTkV uSxE3g6IBTB2Bc3/w0iJQEyg9FVzRQkR0Pyww/NdKo3k5ZFpWuQ=
    =vZ6k
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Sun Mar 23 23:40:02 2025
    Am Sun, Mar 23, 2025 at 12:41:31AM -0500 schrieb Dale:
    Dale wrote:

    Sorry it took me a bit to do anything with this.  We still working on
    that tree.  We getting close to being done.  Anyway, I mounted the new SSD OS on the old OS and copied over /etc and /root again.  I really
    don't need /home much since I only use root on that thing.  Oh, for
    fstab, I used the same labels on each.  After doing that, I shutdown, unplugged the old drive and booted the SSD OS up.  I was able to login over ssh even.  I'm sure something in /etc was messed up somehow.  I think it worked a couple times before failing.  So, this time, I did several reboots and shutdowns just to be as sure as I could be.  It
    worked each time. 

    Well, it took a little longer than I expected.  I booted the NAS box to update my backups.  It booted just fine, couldn't login tho.

    How do you know it booted fine? Did you have a monitor attached?
    Could you log in locally with a keyboard?

    I usually
    use ssh and meant to save the error but already cleared the Konsole. 
    Force of habit.  My plan, reinstall the OS on the SSD and be done with
    it.

    Would be really helpful to know the error message. For instance whether it came from ssh, the network, PAM or whatever else is involved in the login process. Perhaps it’s got something to do with ssh host keys, because after moving the SSD, the system has a different IP, but your machine still knows the host key from a different IP.
    Did the error message start with @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@?

    It likely has a simple fix but it's either reinstall or target practice.

    Due to the nature of Gentoo, I’d always prefer fixing over reinstall. It’s just faster and better for the environment.

    --
    Grüße | Greetings | Salut | Qapla’
    Please do not share anything from, with or about me on any social network.

    The best thing of Sundays is Saturday evening.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmfgiycACgkQizG+tUDU MMpCVg/9E4SA0vorFlmUbQqL8jm/y6rR1qYRmzOKCqvh/nybpLpL47bsTkxSQ2G6 +Xt0gDTHP5/i/2iBz4SuKZyOE1bXryL0xHwtEivaM1Vxptv20UiISWj9JuqvPdcN fFXeh4Pj1dBFRivoJx3y+z8UE93z5H/TDuj972n0ZWALdERY6IPlMd8xMVeE6NfI hQKnKrF66xONCFRXRs3VLlnx2dApDpRA3WMNIFil9SggXNoxRUwWRzYWRsAFDovJ EuDLhwohEe88IgjZkyBan1GgYk/kw73o2yJMb7IWsRsbGNUeus9HGKRjqd6T4r85 ONAwreTQl0bTHyeHYzC2p3YMMUdWyx3lXvWFfpL40d80iZSNTVJqvPRdP+5d+0Cd mIzJgT5FtlF9k9gKmZjlICDcKb461pMLLx6ld+HPAWcYFgaa27KG8U80jHTcjul8 WU+1HLnPLSMRd/WqLJhpOhJdLqfZz0MsRojGjlu9+iKYCWGclrIR1227JYE5OhzK tPA8ZLX41z9g765G9tSp5bZWJ3tUYqGOENK2CebDkPIYoc8VqyySP0dl+dnvl8gy UEd/Ok0yQzQdKV9eaHRUfFTAGbu6e5pgQYqukOk0pG0vFCtAhCAeUpG3UQ7QjwR+ roZ6wPYUjx91z4UdGSfyaKLrOS1ctm3cv6lA46ESWhTbb2ytTS4=
    =hFey
    -----END PGP SIGNATURE-----
  • From Frank Steinmetzger@21:1/5 to All on Tue Mar 18 23:40:01 2025
    Am Sun, Mar 16, 2025 at 10:50:05PM -0500 schrieb Dale:
    Dale wrote:
    Howdy,




    New problem.  As I mentioned in another reply, I booted the NAS box to >update my backups.  The thing won't let me login.  I type in root, it
    sits there for 20 or 30 seconds then returns to a login prompt.  I also >tried the user dale but no joy there either.  I'm back to spinning rust
    to update my backups. 

    Did you copy over /root?
    I’m not in the mood to test this hypothesis by moving-away my live /root.

    --
    Grüße | Greetings | Qapla’
    Please do not share anything from, with or about me on any social network.

    Many who were ahead of their times had to
    wait for it in uncomfortable accomodations.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmfZ9UkACgkQizG+tUDU MMp0XQ/+NogGZN2wwitlXrnYT9DxxNAMhm976F4PeoWr5oT1KSIRy7VU2LyBzuY9 xNgWGi3z/5HHrsX6DfXn2VrLTEoVFiebYDsE6gKRKYoE7yhbLlL2nEsL6FNlfw7s HnE5+4XUCYXrXtzNsIMF2OC5xfQch02TcFHaMuojhom9Kf/eCILl05qNsi+V1Lt5 ZzfhOsyIpHO2rr6h7mIOaVlFy6qjVqX0d0jZvgpopXJavY3YCJsbQ6N+OXRrGCax 0hmkvErmtUytDUbmdV5f43Yymxh413DBi6LxGKPTef/PuCvXFZazH0vg38zwxuFx BYQdlG+4ObPszITSuCGK8vDKaum0ZPP5N4ZhVieiPt+lJ8k0suNCydK+noisenZv lEtGq6ZjsbZrh8g2Vyl3HENkH9vywlvWwTEFh1Xol2xMKxfJBZZi8Sz5TO+Hw3wl Ayga/ak9D3lMne2MNjIyVgsi07ls/cA3j8JXV5vAvONHPLlm/gXdaNuyg2EBKzNg bOu02dEgxM5jDkwM3VWHuXGnR3EwNW4t15Z6ZWoLqrVC1rztZ38MOQvMN8oi7JSG qNoPSV3kMGXGLbJb6xkdZ27BfnHT40Gu/WjKY9LskqQwrP1kxJnJJr6/ktHNyizf VqphwAfu9G7RpEfYOcv+GA5hxO9KI41NYr5I47fEC+knpbEIeVI=
    =mg3X
  • From Michael@21:1/5 to All on Sat Mar 15 09:18:49 2025
    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.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmfVRfkACgkQseqq9sKV ZxlUcRAAqHgM8HapR8w1i7E5d4OwBOGrbB9mLhLvMdjhywi+/8uu8nFwe+90tRqh 6CqbXedA7HeXlSFy6CXEaf5zHnuogT4yWoLd65tYFZt82aowCXSHiyJmuYJ807aA o8Fb7tUYbQqEyPsmPx+qPbIVEaoDWE5CTjMAApPIWhVQErzhWQ3X3JTo6MvM3pR8 QT8mvm+rFl1HixxKTNQN9k2yEOQzgfhHlAU2VMB+19RWRcpp2eaHqXwmjEj+hXjg TyDJ5ZkOG3X4o4bJO5Sc4eQ/nVmwX4JA58KitC9bp1kvbSSyb5QbOdDz1K3HvkFm RUVIzSSoMrNRzSQPZUJJL8ExyfFyr6Vv3hRlwcgJTxUC1T3Y6qChoWopDdaK5oJN LkkxXOLZghtHe5jcVW2/nvvzk3h7yXZ3HZObTNTs9YHZ10SZdP8UND21FPCwoz9f Y+Y+DN/Q3zLJdY80bmVHbrf76pkJFUtgMbg/h9gfzv9DXfol60g/PTL0IdgvD//8 gqL9+2BwtnfILzf0NYiuySlQ0myo/gM/znWn31wcypkpCb+ILCWJPxW+3lD1zO0K WrbMMHOMLrun4ldQs4BobWhXqDGC49jJ75WAF2nhdslscjp3Xdad5RR0aC7eTJiR 69BZF0nDBOvpsEatrYDPEyv4SLNbUhAPganoSSxgp7M0DSzK98E=
    =07Y8
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)