Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo root=/dev/sda2 - PARIALY 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
hexa
Apprentice
Apprentice


Joined: 10 Aug 2005
Posts: 163

PostPosted: Tue Apr 18, 2006 9:32 am    Post subject: gentoo root=/dev/sda2 - PARIALY SOLVED Reply with quote

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


Joined: 22 Mar 2006
Posts: 195

PostPosted: Tue Apr 18, 2006 10:03 am    Post subject: Reply with quote

What boot loader are you using?
Back to top
View user's profile Send private message
ska_p_te
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2003
Posts: 110
Location: G @ B

PostPosted: Tue Apr 18, 2006 10:16 am    Post subject: Reply with quote

could you output your paritions?

fdisk ..
Back to top
View user's profile Send private message
hexa
Apprentice
Apprentice


Joined: 10 Aug 2005
Posts: 163

PostPosted: Tue Apr 18, 2006 10:37 am    Post subject: Reply with quote

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


Joined: 10 Aug 2005
Posts: 163

PostPosted: Tue Apr 18, 2006 10:38 am    Post subject: Reply with quote

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


Joined: 10 Aug 2005
Posts: 163

PostPosted: Tue Apr 18, 2006 10:42 am    Post subject: My q. Reply with quote

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


Joined: 10 Aug 2005
Posts: 163

PostPosted: Tue Apr 18, 2006 11:13 am    Post subject: hmm Reply with quote

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


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Tue Apr 18, 2006 1:19 pm    Post subject: Reply with quote

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 :D
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
hexa
Apprentice
Apprentice


Joined: 10 Aug 2005
Posts: 163

PostPosted: Tue Apr 25, 2006 11:13 am    Post subject: Ok Reply with quote

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
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