Ah, that helps... thanks. I thought it might be just a bit of a terminology issue. You never actually access the swap partition directly, but it is available to the system.... so you while you may see a reference to the
/root partition and the
/home partition, you rarely see a reference to
/swap.
Well, I think I can get you started... hopefully enough to boot your Pearl Linux. But I would like for you to wait on the final step until Wizard weighs in with the directions I'll give below. The final step is to actually re-install the grub bootloader, and I am still hesitant about that in your case. I haven't quite found enough solid info while Googling around.
These directions below are taken from an article (
here) by a lady named Carla Schroder. You can read her full article (highly recommended) but I have just taken the steps out to try to get you directly to the point where you can boot. Each command will be shown in a "code" box and there will be some comments below each command.
Start at the grub> prompt... carefully type things exactly... watch for spaces or no spaces, etc.
This isn't a terribly important part, but she recommends it, so go ahead.
That's lower case LS. I hope you get an output that looks like one of these below (tell us in your reply)
(hd0,msdos1) or
(hd0,gpt1)
With luck, you'll see an output similar to this below:
lost+found/ bin/ boot/ cdrom/ dev/ etc/ home/ lib/
lib64/ media/ mnt/ opt/ proc/ root/ run/ sbin/
srv/ sys/ tmp/ usr/ var/ vmlinuz vmlinuz.old
initrd.img initrd.img.old
Code:
grub> cat (hd0,1)/etc/issue
This isn't really needed either, it just identifies your Linux. Your Pearl Linux may still say Ubuntu... similar to this:
Ubuntu 14.04 LTS \n \l
Okay... the code below has 4 things to do, one after another. Be sure (hd0,1) matches what you found above, but if somethings seems wrong here then don't proceed. Don't type all of the 2nd and 3rd lines as you see in the example... follow Carla's instructions listed below the code. This is where you use "tab completion" to enter in your exact vmlinuz and initrd file information. Pay special attention to the part in
bold... this will not tab complete and you need to correct info. Here we go....
Code:
grub> set root=(hd0,1)
grub> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1
grub> initrd /boot/initrd.img-3.13.0-29-generic
grub> boot
The first line sets the partition that the root filesystem is on.
The second line tells GRUB the location of the kernel you want to use. Start typing /boot/vmli, and then use tab-completion to fill in the rest.
Type root=/dev/sdX to set the location of the root filesystem. Yes, this seems redundant, but if you leave this out you'll get a kernel panic. How do you know the correct partition? hd0,1 = /dev/sda1. hd1,1 = /dev/sdb1. hd3,2 = /dev/sdd2. I think you can extrapolate the rest.
The third line sets the initrd file, which must be the same version number as the kernel.
The fourth line boots your system.
With that, I hope that your Pearl Linux comes alive again. The final steps... those that I'm concerned about... are completed from within Pearl Linux at a regular terminal prompt. Although you may have to go through the above process again, please wait and let's see what Wizard thinks about this part. And also, he may offer a better way that the above anyway. My concern is about installing to
/dev/sda because that is usually the Master Boot Record (MBR) on a Legacy type hard drive.... and I think yours is going to be GPT instead of MBR. So, here are the final steps, as Carla describes in her article:
Code:
sudo update-grub
sudo grub-install /dev/sda
(Carla shows "
# " instead of sudo.... basically the same thing. You're running these commands as root.)
OK, enough typing from me for awhile!


(Now to post and review for mistakes.)
Cheers