View previous topic :: View next topic |
Author |
Message |
Efo Guru
Joined: 23 Jun 2005 Posts: 494
|
Posted: Tue Oct 18, 2016 9:49 pm Post subject: booting livecd from grub2 [SOLVED] |
|
|
Hi guys,
I am in big trouble (time wise). I think I have run into this problem, and I cant login anymore. I get "(none) login" in the console and nothing works.
The solution should be straight forward: run livecd, chroot, etc-update, and everything should be fine.
Unfortunately, I cannot boot from my dvd nor my usb even though they are on top of the booting list in my BIOS (I have an old system76 pangolin). Not sure why, 7 odd years ago I installed gentoo from a livecd and now I cant figure out why it doesnt work anymore.
Anyway, since I can still access grub2, I copied the gentoo iso image on my usb drive (I cant figure out how to access my DVD) and I did he following from the grub command line:
Code: | >set isofile="(hd1,1)/install-amd64-minimal-20161013.iso"
>loopback loop $isofile
>linux (loop)/isolinux/gentoo root=/dev/ram0 init=/linuxrc aufs looptype=squashfs loop=/image.squashfs cdroot=1 real_root=/ isoboot=$isofile splash=silent,theme:default console=tty0
>set gfxpayload=1024x768x16
>initrd (loop)/isolinux/gentoo.igz
>boot
|
Everything seems to boot fine until I get the message:
Code: | !! Could not find the root block device in .
!! Please specify another value or:
!! - Press Enter for the same
!! - type "shell" for a shell
!! - type "q" to skip...
|
I googled for a while now, and I am not sure how to go forward nor what is the sought root block.
Any help is more than welcome.
Thanks,
Efo
Last edited by Efo on Thu Oct 20, 2016 3:27 pm; edited 1 time in total |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
|
Back to top |
|
|
Efo Guru
Joined: 23 Jun 2005 Posts: 494
|
Posted: Thu Oct 20, 2016 3:26 pm Post subject: |
|
|
Hi fturco and thank you for the reply,
I came across that link. I think it is the menuentry configuration for grub2, and I think it is similar to what I am doing (I am passing commands from the command line instead of writing them into the cfg file and reboot).
By the way, vga=791 is deprecated and substituted with gfxpayload=1024x768x16.
On a happier note, I found a way around using "puppy slacko-6.3". I am kinda sad I couldnt figure it out using gentoo. Anyway, for future reference here is what I did:
1) on a different computer:
* downloaded slacko-6.3.2-uefi.iso
- Note: if you want to chroot you need to use the correct version (i.e. download slacko64-6.3.2-uefi.iso for a 64-bit machine), otherwise the above 32-bit version works just fine.
* made liveusb (my usb drive was on /dev/sdc1):
Code: | isohybrid slacko-6.3.2-uefi.iso
dd if=./slacko-6.3.2-uefi.iso of=/dev/sdc1 bs=4M
| - Note: do not mount drive
2) on the "patient" computer:
* started the machine
* stopped in grub2
* entered command line (pressing "c")
* entered the following commands (my usb drive was on (hd1,1) corresponding to /dev/sdb1):
Code: | linux (hd1,1)/vmlinuz root=/dev/sdb1
initrd (hd1,1)/initrd.gz
boot |
Done! Puppy slacko boots from the usb drive, and I can access the file system (and everything else) from its console!
I hope this helps other people that may find themselves in the same situation.
Cheers,
Efo |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|