View previous topic :: View next topic |
Author |
Message |
hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Tue Apr 18, 2006 9:32 am Post subject: gentoo root=/dev/sda2 - PARIALY SOLVED |
|
|
Hi,
my newly installed system won't boot (can't find root) so i wanted to check if i compiled everything i needed into the kernel or is it something else by booting using kernel from live CD to my newly installed partition.
I wrote gentoo root=/dev/sda2 as CD command line options but instead of running kernel from CD and OS from sda2 i get root partition from cd.
So my q. is how to boot my root partition (sda2) with kernel from live cd?
Tnx.
Last edited by hexa on Tue Apr 25, 2006 11:12 am; edited 1 time in total |
|
Back to top |
|
|
ASID Apprentice
Joined: 22 Mar 2006 Posts: 195
|
Posted: Tue Apr 18, 2006 10:03 am Post subject: |
|
|
What boot loader are you using? |
|
Back to top |
|
|
ska_p_te Tux's lil' helper
Joined: 24 Nov 2003 Posts: 110 Location: G @ B
|
Posted: Tue Apr 18, 2006 10:16 am Post subject: |
|
|
could you output your paritions?
fdisk .. |
|
Back to top |
|
|
hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Tue Apr 18, 2006 10:37 am Post subject: |
|
|
ASID wrote: | What boot loader are you using? |
This is irrelevant question, since all gentoo live CDs use the same bootloader and i want to boot kernel from live CD using root partition from /dev/sda2. It used to work on my slackware days just fine (parm like root=/dev/sda2 boot=/bin/bash)
Anyway the anwser is: i'm using the one that comes with latest live cd |
|
Back to top |
|
|
hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Tue Apr 18, 2006 10:38 am Post subject: |
|
|
ska_p_te wrote: | could you output your paritions?
fdisk .. |
cfdisk user here
Anyway.
/dev/sda1 swap
/dev/sda2 root
Not that it matters. |
|
Back to top |
|
|
hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Tue Apr 18, 2006 10:42 am Post subject: My q. |
|
|
My question remains:
How to boot my root partition (sda2) with (kernel from) live cd?
I'm used to kernel root=/dev/sda2 from my slackware days but gentoo live cd does not have that option. |
|
Back to top |
|
|
hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Tue Apr 18, 2006 11:13 am Post subject: hmm |
|
|
I still don't know how to boot from live cd using root partition on my hard drive.
But i solved my booting problems simply by using lilo (won't work with grub). So my kernel seems to have all drivers i need compiled in |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Tue Apr 18, 2006 1:19 pm Post subject: |
|
|
i'm not sure if you can boot that way using the livecd (I'd guess it's using an initrd of sorts so the root= option should be ignored).
usually you're supposed to do maintenance on an unbootable/unsatisfactorably bootable system from the livecd using a chroot (c.f. chapters 4 and 6 in the handbook)
I heard grub can have some errors every now and then, but due to its flexibility, it would be advisable to try and get grub running instead of lilo. what's the error messages it spits out? (i.e. is it from grub itself or from the kernel). also, do either of your configurations (grub or lilo) use an initrd? if yes, that could either be the culprit or the saviour _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Tue Apr 25, 2006 11:13 am Post subject: Ok |
|
|
For the first part about that root=/dev/device:
it's not possible with gentoo live cd.
And for my booting problems:
I solved the problem by _enabling_ sata raid in bios and now I see two sata disks in my OS. So root is found and boots O.K.
This is tatally unbelivable but it's how it works. |
|
Back to top |
|
|
|