Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo and Reiserfs boot problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
bmw95
n00b
n00b


Joined: 01 Jul 2004
Posts: 6

PostPosted: Thu Jul 01, 2004 9:07 am    Post subject: Gentoo and Reiserfs boot problem Reply with quote

Hi all,
I have boot problem in my Gentoo iBook G3-800 with ReisrFS (if root partition have type ext3 all right)

root # cat /etc/fstab
/dev/hda3 none swap sw 0 0
/dev/hda4 /boot ext3 noauto,noatime,nodiratime 1 1
/dev/hda5 / reiserfs noatime,nodiratime 0 0
root #mac-fdisk -l /dev/hda
# type name length base ( size ) system
dump: name /dev/hda len 8
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/hda3 Apple_UNIX_SVR2 swap 1048576 @ 1664 (512.0M) Linux swap
/dev/hda4 Apple_UNIX_SVR2 boot 204800 @ 1050240 (100.0M) Linux native
/dev/hda5 Apple_UNIX_SVR2 root 57350080 @ 1255040 ( 27.3G) Linux native
Block size=512, Number of Blocks=58605120
DeviceType=0x0, DeviceId=0x0
root#
root#cat /etc/yaboot.conf
boot=/dev/hda2
device=hd:
partition=4
delay=3
timeout=3
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
fgcolor=white
bgcolor=blue
image=/vmlinux
label=linux
sysmap=/System.map
root=/dev/hda5
read-only
enablecdboot
enableofboot
root#

WTF ?
Back to top
View user's profile Send private message
bmw95
n00b
n00b


Joined: 01 Jul 2004
Posts: 6

PostPosted: Thu Jul 01, 2004 9:13 am    Post subject: Reply with quote

kernel:
VFS: Cannot open root device "hda5" or hda5
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on hda5

:(
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Thu Jul 01, 2004 9:49 am    Post subject: Reply with quote

Does your kernel have ReiserFS support built-in ? I think you need to have it builtin, and not as a kernel module.
Back to top
View user's profile Send private message
bmw95
n00b
n00b


Joined: 01 Jul 2004
Posts: 6

PostPosted: Thu Jul 01, 2004 9:59 am    Post subject: Reply with quote

:) yes
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Thu Jul 01, 2004 10:22 am    Post subject: Reply with quote

Allthough i think it doesn't really matter, but in your fstab, the numbers at the end of each line should be:
Code:
/dev/hda3...  0 0
/dev/hda4...  1 2
/dev/hda5...  0 1


In any case, i have more or less the same config and never had any problem with it. Hmm... i wonder why you have the /boot-partition? Normally it's used to put your kernels and System.maps there, but your kernel is in /vmlinux. In any case, if you use /boot, you should manually mount it before running ybin. Hmm... did you try to mount the root partition with the livecd to see whether you can mount it as reiserfs and see whether everything is fine with it?
You could do that with something like this:
Code:
mkdir /mnt/test
mount -t reiserfs /dev/hda5 /mnt/test
Back to top
View user's profile Send private message
bmw95
n00b
n00b


Joined: 01 Jul 2004
Posts: 6

PostPosted: Thu Jul 01, 2004 11:23 am    Post subject: Reply with quote

in livecd mount -t reiserfs /dev/hda5 /mnt/test ok
vmlinux and System.map to be on /dev/hda4
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Thu Jul 01, 2004 11:36 am    Post subject: Reply with quote

You say that ext3 works.. did you test that with the exact same kernel? Which kernel are you running? Did you run "ybin -v" after building the new kernel?
If not, would you mind posting your kernel config? Or can i access it somewhere online?
Back to top
View user's profile Send private message
bmw95
n00b
n00b


Joined: 01 Jul 2004
Posts: 6

PostPosted: Thu Jul 01, 2004 11:52 am    Post subject: Reply with quote

http://195.94.227.244/tools/config
i convert hda5 ext3 -> reiserfs and add support reiserfs in kernel
ext3 worked good
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Mon Jul 05, 2004 1:33 pm    Post subject: Reply with quote

Did you get it to work in the meantime ?

The only thing i could find in your .config is that you enabled the pre-emptive kernel, which is not stable yet on ppc, but that shouldn't be the reason for the problem.

What i would do: compile the kernel again, copy system.map and vmlinux to the right place, check /etc/yaboot.conf again, run mkofboot, run ybin. And then hope it'll work. I can't see anything that looks wrong...
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Mon Jul 05, 2004 7:06 pm    Post subject: Reply with quote

Not sure whether you meant to do this or not, but a /boot partition really isn't needed for PPC systems. Folder, yes - partition, no. It might work anyway, but I've never pulled it off successfully. Try commenting out the /boot entry in your /etc/fstab, and moving the contents of the partition to the /boot directory on your root partition.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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