Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (0 / 6) |
Uptime: | 63:42:18 |
Calls: | 425 |
Calls today: | 3 |
Files: | 1,025 |
Messages: | 91,259 |
Posted today: | 1 |
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.
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
eric wrote:
On 3/15/25 13:42, Dale wrote:
The biggest thing that slows that system is that the CPU doesn't haveThe only thing I can think of that you may have missed is to rebuild
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.
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
:-) :-)
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.
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.
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
:-) :-)
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.
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
:-) :-)
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.
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.
It likely has a simple fix but it's either reinstall or target practice.
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.
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.
I installed grub on it using grub-install
/dev/sdb, since it is the second drive at this point.
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.
Has someone seen this before and recall how to fix it? Remember what
command it is that I missed?
I'm not sure this SSD drive is going to make that old NAS mobo go any
faster. LOL It is kinda old.