Installing an OS over the existing OS
Aaron Rainbolt
arraybolt3 at ubuntu.com
Sun Feb 19 00:44:09 UTC 2023
On 2/18/23 03:28, Phil wrote:
>
> On 16/2/23 15:50, Aaron Rainbolt wrote:
>> On 2/15/23 23:44, Phil wrote:
>
> I decided to give option 3 a go. I removed the HDD and installed the
> OS onto the disk as an external USB drive connected to my working
> laptop. I wasn't sure if this would work and, after returning the HDD
> to the non-working laptop, I was surprised when it booted but with a
> grub rescue prompt and an unknown filesystem error.
That's a bit odd to my mind, as usually you can just do a disk
transplant like that and it should work. If you take the drive back out
and connect it to your working laptop, can you see files?
> I'm not sure what I should enter but tried the following:
>
> set root=(hd0,6)
>
> set prefix=(hd0,6)/boot/grub
I'm not sure what partitions are what, but if you can do "ls /boot" and
see files, you should then be able to run "configfile
/boot/grub/grub.cfg" and then "normal" and I think it should let you
boot then. If it's stubborn, you can also load the kernel and initrd
manually but then you need to know filesystem info and that's a pain.
> I then restarted the laptop but was greeted with the same grub rescue
> prompt.
>
> Where to from here?
>
Most likely something is not quite right in grub.cfg - perhaps it's
trying to boot off the drive that was originally in your working laptop,
rather than the drive it actually installed to. If you can get it to
boot right once, you should be able to run "sudo update-grub" in a
terminal and I believe that should fix the problem.
--
Aaron Rainbolt
Lubuntu Developer
https://github.com/ArrayBolt3
https://launchpad.net/~arraybolt3
@arraybolt3:lubuntu.me on Matrix, arraybolt3 on irc.libera.chat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x6169B9B4248C0464.asc
Type: application/pgp-keys
Size: 4853 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230218/144bbf7e/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230218/144bbf7e/attachment.sig>
More information about the ubuntu-users
mailing list