Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installation dont work!
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
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Sun Jul 25, 2004 10:10 pm    Post subject: installation dont work! Reply with quote

i know this problem comes up all the time on the forum, but after reading the messages i cant figure out wut to do still. and im on my 5th install so im getting sorta annoyed. i got a P4 and i did a stage 3 install using the p4 stage 3 off the 2004.0 live cd. i have a dual boot with windows xp on the first partition, (dev/hda1) and hda2 is boot, hda3 is swap, and hda4 is root. i compiled the kernel fine using genkernel and its gentoo-dev-sources (kernel-2.6.7-gentoo-r11). my fstab looks like this:

/dev/hda2 /boot /ext2 noauto,noatime 1 1
/dev/hda4 / reiserfs noatime 0 0
/dev/hda3 none swap sw 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0

my grub.conf looks like this:
default 1
timeout 20
splashimage=(hd0,1)/grub/spash.xpm.gz

title=Gentoo Linux
root (hd0,1)
kernel /kernel-2.6.7-gentoo-r11 root=/dev/ram0 real_root=/dev/hda4 init=/linuxrc
initrd /initrd-2.6.7-gentoo-r11

title=Windows XP
rootnoverify (hd0,0)
chainloader +1

when i boot from my hd, it tells me:
mount: Mounting /dev/hda4 on /newroot failed: invalid arguement
>>could not mount specified ROOT, try again
>>the root block device is unspecified or not detected.

when i boot from livecd i can mount /dev/hda4 fine so i was thinking it might be my kernel config. so i genkernel --menuconfig all and i checked for reiserfs support and it was checked, i activated /proc support, /dev file system support (Experimental), virtual memory, automount at boot just like in the guide. it still gives me that same message. please help!
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Sun Jul 25, 2004 10:16 pm    Post subject: Reply with quote

at a guess are you sure that that's /mnt/gentoo/etc/fstab, rather than /etc/fstab on the ramdisk created by the livecd?
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Sun Jul 25, 2004 10:44 pm    Post subject: Reply with quote

ya, the fstab i wrote down was from /mnt/gentoo/etc/fstab. the one that comes on the livecd is a bit different, instead of /dev/hda2 its /dev/BOOT and so on for swap and root.
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 4:03 am    Post subject: Reply with quote

anyone have any other ideas?
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Mon Jul 26, 2004 4:10 am    Post subject: Reply with quote

Was reiserfs support put in as a module? If so, change it to "built-in."
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 4:14 am    Post subject: Reply with quote

ya, reiserfs built in was checked with a *. i also emerged reiserfsprogs like in the install guide.
Back to top
View user's profile Send private message
bMd
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 110

PostPosted: Mon Jul 26, 2004 4:25 am    Post subject: Reply with quote

sry im half asleep.... but in your grub.conf hav you tryed removing "root=/dev/ram0" so id look something like this:
Code:
title=Gentoo Linux
root (hd0,1)
kernel /kernel-2.6.7-gentoo-r11 root=/dev/hda4 init=/linuxrc
initrd /initrd-2.6.7-gentoo-r11


& in fstab change to:
Code:

/dev/hda2  /boot  ext2     noauto,noatime  1 2
/dev/hda4  /      reiserfs  noatime         0 1
/dev/hda3  none   swap      sw              0 0

none      /proc   proc      defaults        0 0
none      /dev/shm tmpfs    defaults        0 0
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 4:55 am    Post subject: Reply with quote

if i change it to that, then when i boot it gives me that kernel panic and it says unable to mount rt file system on hda4. on my screen it keeps repeating this message:

hda: task_in_initr: status=0x51 {Drive ready seekcomplete error }
hda: task_in_initr: error=0x10 {SectorIdNotFound } LBAsect=some#'s, sector=some#'s

it repeats it for a while then says for the last few lines:
UDF-fs: No partition found {1}
XFS: bad magic number
XFS: SB validate failed
Kernel Panic: VFS: Unable to mount root fs on hda4

im not sure wut it means, but im guessing it tried to load XFS instead of reiserfs? but that doesnt make sense cuz in my fstab /dev/hda4 is already set to reiserfs and not xfs. this is aggravating.
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 5:00 am    Post subject: Reply with quote

btw i just want to know if im checking my files right, since i cant boot from my hd, im always booting off the livecd. then i do exactly wut the guide says to do:
mount /dev/hda4 /mnt/gentoo
mount /dev/hda2 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc

then as long as my pwd for the fstab is
/mnt/gentoo/etc/fstab that should be the right one right?

and grub.conf should be
/mnt/gentoo/boot/grub/grub.conf

if so then i dont know why xfs is being loaded at start, since my fstab doesnt say anything about xfs
Back to top
View user's profile Send private message
bMd
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 110

PostPosted: Mon Jul 26, 2004 5:14 am    Post subject: Reply with quote

booting off the livecd do:

Code:
mount /dev/hda4 /mnt/gentoo
mount /dev/hda2 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc

chroot /mnt/gentoo /bin/bash
env-udpate
source /etc/profile
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 5:20 am    Post subject: Reply with quote

i do that and i still cant boot
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 6:36 am    Post subject: Reply with quote

does anyone know why devfsd freezes during shutdown? it froze on me on everyone of my installs so i had to manually press restart after install. when i livecd into my linux partitions and restart, it freezes when trying to shutdown lo. im not sure wut these mean. or why they would freeze
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 2:29 pm    Post subject: Reply with quote

hmm this is strange.... i started livecd. mounted /dev/hda4 which is root, hda2 which is boot, mounted proc and i tried this line i saw from another post:
mount -t devfs none /mnt/gentoo/dev
then i did the chrooting just like in the handbook. when i typed mount after tho it gave me something strange:
/dev/ROOT on type xfs (rw,noatime)
/dev/hda2 on type ext3 (rw,noatime)
none on /proc type proc (rw)
can someone please tell me why it says /dev/ROOT and xfs when in my fstab its /dev/hda4 and when i installed gentoo i made /dev/hda4 reiserfs?
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 2:32 pm    Post subject: Reply with quote

hmm i just typed exit after chrooting and typed mount again. now it says /dev/hda4 with reiserfs. wut is up with this?
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Mon Jul 26, 2004 2:47 pm    Post subject: Reply with quote

if you type exit, it "unchroots" you (i.e. the root changes back to what it was before the chroot command)

so get to where you were you'd chrooted and had ROOT and xfs, and change that to what it should be, and hopefully you'll be able to boot
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 2:50 pm    Post subject: Reply with quote

when i chroot into /mnt/gentoo like in the handbook, my /etc/fstab is correct like the one i had in the first post, so i dunno wut to change to not make it say xfs
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 4:47 pm    Post subject: Reply with quote

ok when i start up livecd, i mount hda4,3, and 2 to the respective drives in /mnt/gentoo. then i chroot. after i chroot hda4 dissapears and i get /dev/ROOT which is on xfs. if i mount /dev/hda4 then when i type mount again it shows /dev/ROOT and /dev/hda4. could someone tell me wuts goin on?
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Mon Jul 26, 2004 5:03 pm    Post subject: Reply with quote

don't know why it's happening, but can't you just change /etc/fstab when you're in the environment that says /dev/ROOT? (assuming that the fstab at this point is saying /dev/ROOT, but I don't see why else you'd be getting /dev/ROOT)

most peculiar...
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
jchen10000
n00b
n00b


Joined: 25 Jul 2004
Posts: 13

PostPosted: Mon Jul 26, 2004 5:07 pm    Post subject: Reply with quote

ya /etc/fstab in my chrooted env is /dev/hda4 also, not /dev/ROOT. i dont get it... anyone know??
Back to top
View user's profile Send private message
00tux
n00b
n00b


Joined: 30 May 2004
Posts: 27
Location: British Columbia, Canada

PostPosted: Mon Jul 26, 2004 9:19 pm    Post subject: Reply with quote

I had a similiar problem when trying to boot my system. It would tell my that boot device was not specified and then gave me a prompt to specify the root device. I woul d plunk in /dev/hda4 and the system would boot.

I have the same partition table (except I used ext3 on m root) so I'll post my /etc/fstb and grub.conf

Code:

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2      /boot      ext2      noauto,noatime      1 2
/dev/hda4      /      ext3      noatime         0 1
/dev/hda3      none      swap      sw         0 0
/dev/cdroms/cdrom0   /mnt/cdrom   auto      noauto,user      0 0
#/dev/fd0      /mnt/floppy   auto      noauto         0 0
# NOTE: The next line is critical for boot!
none         /proc      proc      defaults      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none         /dev/shm   tmpfs      defaults      0 0


Code:

default 0
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.7
root (hd0,1)
kernel /kernel-2.6.7-gentoo-r8 root=/dev/hda4 init=/linuxrc ramdisk=8192 real_boot=/dev/hda4 vga=792
initrd /initrd-2.6.7-gentoo-r8

title=Windows XP
root (hd0,0)
chainloader +1

_________________
"But I don't wanna be a pirate"
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