View Single Post
  #4   (View Single Post)  
Old 31st October 2022
psarethi psarethi is offline
Port Guard
 
Join Date: Oct 2022
Posts: 10
Default

Quote:
Originally Posted by J65nko View Post
You installed using an emulated usb stick to the qemu emulated hard drive. This probably changed the emulated hard drive number into ada1? Or it caused the /etc/fstab which is used to mount the partitions to refer to a wrong drive number (ada0)?.

You can boot using the emulated usb stick into the live CD and investigate which are the valid drives (in dmesg).

With # gpart show -p you can list the partitions.

Then mount the hard drive root partition and check the contents of /etc/fstab and correct the drive number.
That was it. I'd had to switch the disks around to get qemu to boot off the one, then switch them back to get it to boot off the other. Exactly as you said, once I'd ascertained the names of the partitions, all I had to do was mount the installed partition, edit one device name in the fstab. Now the installed partition boots.

Thank you very much.

p.s. and without having to do a chroot or an intramdisk rebuild. Yay!
Reply With Quote