Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
booting livecd from grub2 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Efo
Guru
Guru


Joined: 23 Jun 2005
Posts: 420

PostPosted: Tue Oct 18, 2016 9:49 pm    Post subject: booting livecd from grub2 [SOLVED] Reply with quote

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
View user's profile Send private message
fturco
l33t
l33t


Joined: 08 Dec 2010
Posts: 762
Location: Italy

PostPosted: Thu Oct 20, 2016 12:40 pm    Post subject: Reply with quote

Perhaps the following link may be useful: https://wiki.archlinux.org/index.php/Multiboot_USB_drive#Gentoo
Back to top
View user's profile Send private message
Efo
Guru
Guru


Joined: 23 Jun 2005
Posts: 420

PostPosted: Thu Oct 20, 2016 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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