Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing without /boot partition ... sata + grub [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
ShinFu
n00b
n00b


Joined: 26 Apr 2004
Posts: 34
Location: inside my skin

PostPosted: Tue Feb 22, 2005 10:47 am    Post subject: installing without /boot partition ... sata + grub [solved] Reply with quote

my sata drive looks like this
Code:

sda1    Boot   Primary    NTFS   
sda5    Boot   Logical    NTFS
sda6    Boot   Logical    NTFS
sda7    Boot   Logical    Linux ext3
sda8           Logical    NTFS


after mounting, chrooting and emerging the
necessary things genkernel says something
about not finding boot but finally in the /boot directory
there is a kernel-2.6.9

the fstab currently looks like this (and lacks of many things)
Code:

/dev/sda7   /           ext3      noatime              0 1
none        /proc       proc      defaults             0 0
none        /dev/shm    tmpfs     nodevs,nosuid,noexec 0 0


i emerged grub-static
and grub-install /dev/sda says couldnt find device
for /boot: not found or not a block device

finally it looks to me like a crappy installation but
i dont want to reemerge all the things again (download volume :cry: )

so is there a way to repair the installation without a /boot partition
or is there a way to downsize the ext3 partition without loosing data?


Last edited by ShinFu on Tue Feb 22, 2005 4:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Tue Feb 22, 2005 11:14 am    Post subject: Reply with quote

It shouldn't be a problem to go without a /boot partition. I don't know for sure if Grub parses /etc/fstab for information but I assume it does. Perhaps you have a /boot entry in /etc/fstab? If so comment it out.


Håkan
Back to top
View user's profile Send private message
ShinFu
n00b
n00b


Joined: 26 Apr 2004
Posts: 34
Location: inside my skin

PostPosted: Tue Feb 22, 2005 11:42 am    Post subject: Reply with quote

nope
i dont have one

i just ignored making a boot partition and mounting a hda* to /boot as stated in the handbook

is there something else i have to tell gentoo about booting from the same partition as root??

the only explicit error i get is the grub error and if i start grub if only finds a (hd0,0)
no hd0,6 (this should be sda7, right?)

the grub.config looks like this
Code:

default 0
timeout 10

title=gen2
root (hd0,6)
kernel /kernel-2.6.9-gentoo root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 nofirewire
initrd /initrd-2.6.5-gentoo

title=xp
root (hd0,4)
makeactive
chainloader +1
Back to top
View user's profile Send private message
Karsten from Berlin
Guru
Guru


Joined: 28 Feb 2004
Posts: 446
Location: Berlin/Germany

PostPosted: Tue Feb 22, 2005 12:26 pm    Post subject: Reply with quote

1.
When installing your bootloader, did you remember to copy over /proc/partitions (I think) to /etc/mtab? It's mentioned in the book and very important.

2.
Your grub.conf is wrong! This is mine:

Code:

title=Gentoo Linux (2.6.10-gentoo-r6-conis)
root (hd0,6)
kernel (hd0,1)/kernel-2.6.10-gentoo-r6-conis ro root=/dev/hda7 idebus=33 video=vesa:ywrap,mtrr vga=0x31a


/dev/hda7 is my root-partition. /dev/hda2 is my boot-partition. So I had to specify (hd0,1) to force grub to look in the right partition for the kernel.

You specified the root partition, but your kernel is not installed in the root, but in /boot. So you have to specify

kernel /boot/kernel[...]

or

kernel (hd0,XYZ)/boot/kernel[...], where XYZ is your root partition.
_________________
Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians.
Back to top
View user's profile Send private message
ShinFu
n00b
n00b


Joined: 26 Apr 2004
Posts: 34
Location: inside my skin

PostPosted: Tue Feb 22, 2005 1:51 pm    Post subject: Reply with quote

1. yes, allready done that:
Code:

cp /proc/mounts /etc/mtab

(it is stated like this in the handbook)

2. ok, now changed the grub.conf line to
Code:

kernel /boot/kernel-2.6.9-gentoo....


but the problem is still that grub-install doesnt work
Code:
grub-install /dev/sda
Could not find device for /boot: not found or not a block device


Code:

grub
grub root (hd0,*TAB*

gives out
Code:

grub root (hd0,0)

every other number fails and i think i need (hd0,6)
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Tue Feb 22, 2005 3:01 pm    Post subject: Reply with quote

Try using (hd1,*) in the Grub config. Because the driver on the livecd is modular, any regular (non-SATA) disk will first take (hd0) and then when the SATA modules are loaded the first SATA disk is named (hd1). If you build a kernel with SATA support built-in you will need to still use (hd0,*) as partition names in the grub config file though.

Anyway, mess around a bit and see what works and what doesn't.


Håkan
Back to top
View user's profile Send private message
Karsten from Berlin
Guru
Guru


Joined: 28 Feb 2004
Posts: 446
Location: Berlin/Germany

PostPosted: Tue Feb 22, 2005 3:09 pm    Post subject: Reply with quote

You always say, you type in 'grub-install /dev/sda', but the manual says you have to use an additional parameter '-root-directory=/boot'!
_________________
Heaven: The police are British, the chefs Italian, the mechanics German, the lovers French and it's organized by the Swiss.
Hell: The police are German, the chefs British, the mechanics French, the lovers Swiss and it's organized by the Italians.
Back to top
View user's profile Send private message
ShinFu
n00b
n00b


Joined: 26 Apr 2004
Posts: 34
Location: inside my skin

PostPosted: Tue Feb 22, 2005 3:40 pm    Post subject: Reply with quote

Karsten from Berlin wrote:
You always say, you type in 'grub-install /dev/sda', but the manual says you have to use an additional parameter '-root-directory=/boot'!

if i use -root-directory=/boot i get the same error only that he says:
... /boot/boot not found, is not a block device

using
Code:

grub
root (hd1,6)
setup (hd1)


worked :D

i do have a second ntfs ide drive 80g for backups
but i didnt used it in any configuration files. so it might
be right that this disk takes the hd0 place because
Code:

grub
root (hd*TAB*

gives out hd0 and hd1...
should have tried this earlier :wink:


BUT

after rebooting i get a grub menu and choosing gentoo states:
Code:

root (hd1,6)

Error 22: No such partition

:? ... i dont know if this problem still belongs in here...
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Tue Feb 22, 2005 3:42 pm    Post subject: Reply with quote

As per my recent post: Use hd0 in your grub.conf!
You can try it on the grub command line (highlight a line and press E to Edit it).


Håkan
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Tue Feb 22, 2005 3:45 pm    Post subject: Reply with quote

ShinFu wrote:
if i use -root-directory=/boot i get the same error only that he says:
Code:
/boot/boot not found, is not a block device

using
Code:
grub
root (hd1,6)
setup (hd1)

worked :D

Moral of the story: junk grub-install, use grub! :D
ShinFu wrote:
after rebooting i get a grub menu and choosing gentoo states:
Code:
root (hd1,6)

Error 22: No such partition

You may want to search in the GRUB error collection topic. It is a sticky topic, one of the first topics you will see when you enter this forum (Installing Gentoo).
Back to top
View user's profile Send private message
ShinFu
n00b
n00b


Joined: 26 Apr 2004
Posts: 34
Location: inside my skin

PostPosted: Tue Feb 22, 2005 4:01 pm    Post subject: Reply with quote

yes, junk grub-install :D

of course (hd0,6)!! completly forgot that

thanks for helping out
works fine now (exept that i forgot to compile the sata_nv module into the kernel.. but thats another story)
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