View previous topic :: View next topic |
Author |
Message |
horstenpeter Tux's lil' helper
Joined: 01 Mar 2004 Posts: 133 Location: Hamburg, Germany
|
Posted: Tue Mar 02, 2004 11:19 am Post subject: Problems with new installation, file system and grub related |
|
|
I have some problems with my new installation.
First of, grub displays nothing. I can boot into both Windows and Gentoo, because I know which keys I need to press. But no display.
Booting up gentoo brings up this:
Root block device unspecified or not detected. Please specify a device to boot, or "shell" for a shell.[i]
I then specify /dev/hda4, my boot and root device. Next up is:
[i]Partition /dev/hda4 is mounted with write permission, cannot check it.
Fsck could not correct all errors, manual repair needed.
Alright what do I need to do ?
I was wondering whether it might be better to start over. I did an "emerge sync" during the install and now everything I install is downloaded. Will that continue with all software ? (KDE and the like) Since I'm on a 1 GB monthly download limit, that is a no-no. I would rather use my second CD and sacrifice some up-to-dateness. |
|
Back to top |
|
|
WrathChild n00b
Joined: 02 Mar 2004 Posts: 11 Location: damp wet and miserable England
|
Posted: Tue Mar 02, 2004 11:25 am Post subject: |
|
|
I had something similar, everything i emerged was trying to be downloaded. Then i used "emerge -k " and it seemed to do the trick.
I aint too sure what it did but it started taking it from my cd rather than downloading it |
|
Back to top |
|
|
horstenpeter Tux's lil' helper
Joined: 01 Mar 2004 Posts: 133 Location: Hamburg, Germany
|
Posted: Tue Mar 02, 2004 3:31 pm Post subject: |
|
|
Alright I'll try What about the other stuff ? Anyone ? |
|
Back to top |
|
|
horstenpeter Tux's lil' helper
Joined: 01 Mar 2004 Posts: 133 Location: Hamburg, Germany
|
Posted: Tue Mar 02, 2004 7:07 pm Post subject: |
|
|
help people! i wanted my system up within the week! |
|
Back to top |
|
|
Blejd n00b
Joined: 01 Apr 2003 Posts: 30 Location: Sweden
|
Posted: Tue Mar 02, 2004 7:16 pm Post subject: |
|
|
post your /etc/fstab and /etc/grub.conf |
|
Back to top |
|
|
horstenpeter Tux's lil' helper
Joined: 01 Mar 2004 Posts: 133 Location: Hamburg, Germany
|
Posted: Tue Mar 02, 2004 7:41 pm Post subject: |
|
|
/dev/hda4 /boot reiserfs notail,noauto,noatime 1 1
/dev/hda4 / reiserfs noatime 0 0
/dev/hda3 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0
/dev/croms/cdrom1 /mnt/cdrom1 iso9660 noauto,ro,user 0 0
/dev/hda5 /mnt/windows FAT32 noatime 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs defaults 0 0
none /dev/shm tmpfs defaults 0 0
and next up the grub.conf
default 0
timeout 30
splashimage=(hd0,3)/grub/splash/xpm.gz
title=Gentoo Linux 2.4.22
root (hd0,3)
kernel (hd0,3)/kernel-2.4.22-gentoo-r7 root=/dev/ram0 init=/linuxrc realroot=/dev/hda4
initrd (hd0,3)/initrd-2.4.22-gentoo-r7
title=Windows 2000
root (hd0,0)
chainloader +1 |
|
Back to top |
|
|
daveb Tux's lil' helper
Joined: 20 Nov 2003 Posts: 137 Location: In front of my computer, duh!
|
Posted: Tue Mar 02, 2004 9:15 pm Post subject: |
|
|
horstenpeter wrote: | /dev/hda4 /boot reiserfs notail,noauto,noatime 1 1
/dev/hda4 / reiserfs noatime 0 0 |
Is that a typo, or do you have 2 lines for /dev/hda4 in your fstab? I'm guessing, but I don't think that'll work. How are your partitions set up? If /boot is on the same partition as root (which is what your grub.conf makes it look like), you can comment out the first /dev/hda4 line in your fstab. _________________ WARNING: Not reading the Gentoo Handbook can be hazardous to your computer! |
|
Back to top |
|
|
horstenpeter Tux's lil' helper
Joined: 01 Mar 2004 Posts: 133 Location: Hamburg, Germany
|
Posted: Tue Mar 02, 2004 10:16 pm Post subject: |
|
|
yeah I had those 2 lines. I commented the /boot one out. Solved the "mounted with write permission" thing, but I still need to specify a device to boot.
And I still need to know about the emerge sync thing. |
|
Back to top |
|
|
ToucanMan Tux's lil' helper
Joined: 28 May 2003 Posts: 97 Location: Montreal, Quebec
|
Posted: Tue Mar 02, 2004 11:47 pm Post subject: |
|
|
I just noticed this error in your grub.conf. It is most probably the reason why you aren't getting your pretty splash image.
You wrote you grub.conf is: Quote: | default 0
timeout 30
splashimage=(hd0,3)/grub/splash/xpm.gz
... |
The 3rd line should be:
Code: | splashimage=(hd0,3)/grub/splash.xpm.gz |
Good luck getting the rest of your problems fixed.
EDIT: I'm sorry but I didn't extensively read the thread. It looks as if you misplaced your boot partition because your root and boot partitions were pointing to the same partition in fstab. You must figure out what partition boot is and root is and change grub.conf and fstab accordingly. You need to have both a boot and root partition. You can't just forget about /boot (I think!). By the way, my original post above still applies to fix that splashimage. And, it is likely that your boot partition is hda4 because you actually booted gentoo.
Good luck again |
|
Back to top |
|
|
daveb Tux's lil' helper
Joined: 20 Nov 2003 Posts: 137 Location: In front of my computer, duh!
|
Posted: Wed Mar 03, 2004 12:31 am Post subject: |
|
|
If your /boot directory is on hda4 (along with root), change your kernel and initrd lines in grub.conf to something like:
Code: | kernel (hd0,3)/boot/kernel-2.4.22-gentoo-r7 root=/dev/ram0 init=/linuxrc realroot=/dev/hda4
initrd (hd0,3)/boot/initrd-2.4.22-gentoo-r7 |
These lines are looking for an absolute pathname to the kernel and initrd. If /boot was its own partition on /dev/hda4, your grub.conf would work, because that [i]would[i] be an absolute pathname. Since you have it so /boot is contained on root, along with everything else, you need to specify hd(0,3)/boot/<kernel-name> (which is grub-speak for /dev/hda4/boot directory).
EDIT: Whoops. I just noticed that you'll also need to change the splashimage line (for similar reasons) to:
Code: | splashimage=(hd0,3)/boot/grub/splash/xpm.gz |
_________________ WARNING: Not reading the Gentoo Handbook can be hazardous to your computer! |
|
Back to top |
|
|
horstenpeter Tux's lil' helper
Joined: 01 Mar 2004 Posts: 133 Location: Hamburg, Germany
|
Posted: Wed Mar 03, 2004 8:28 am Post subject: |
|
|
Actually, these files are in my / directory (and the grub and boot directories are subdirectories of that) so the paths should be correct... |
|
Back to top |
|
|
horstenpeter Tux's lil' helper
Joined: 01 Mar 2004 Posts: 133 Location: Hamburg, Germany
|
Posted: Wed Mar 03, 2004 9:48 am Post subject: |
|
|
Toucan, got the splash screen fixed. Thanks!
Putting boot and root on the same partition was done deliberately (though I originally wanted to have the kernel and stuff in a subdir, but that didn't work out).
Do the root, boot and swap partitions have to be primary partitions ? (Having only room for 2 more primary partition caused me to not create a boot partition)
Anyways, I tried emerge -k and emerge --usepkg but it still tries to download the packages. (Unsucessfully, the network doesn't work, but that's fine with me for now, since I need to use my second CD) |
|
Back to top |
|
|
nevynxxx Veteran
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Wed Mar 03, 2004 10:31 am Post subject: |
|
|
Any partition can be either extended or primary in linux, it doesn't notice the difference. So long as you have a motherboard from the last 5 years that can boot off any part of the hard drive you will be fine.
My setup is usually root on hda8, swap on hda7 and boot on hda6, but thats because of the way I set boot and swap to specific sizes and root to whats left.
boot does not have to be a seperate partition, but if it is on root, you need to use different paths in grub (i use lilo so don't ask me what they are),
and you file system check error is, as others have said, because you are mounting the partition to /boot, then trying to mount it again, this time read only to /. This is not going to work. Just comment out the /boot entry in fstab.
hope that helps. _________________ My Public Key
Wanted: Instructor in the art of Bowyery |
|
Back to top |
|
|
horstenpeter Tux's lil' helper
Joined: 01 Mar 2004 Posts: 133 Location: Hamburg, Germany
|
Posted: Wed Mar 03, 2004 10:43 am Post subject: |
|
|
I already commented it out. That solved the fsck error (see above)
For some reasons I cannot create any more logical partitions. I get an "no free sectors available" error.
The weird thing about the boot / root device error is, that by the time it occurs, gentoo is already booting off of the root device. |
|
Back to top |
|
|
ktbken n00b
Joined: 03 Mar 2004 Posts: 1
|
Posted: Wed Mar 03, 2004 6:33 pm Post subject: |
|
|
Quote: | title=Gentoo Linux 2.4.22
root (hd0,3)
kernel (hd0,3)/kernel-2.4.22-gentoo-r7 root=/dev/ram0 init=/linuxrc realroot=/dev/hda4
initrd (hd0,3)/initrd-2.4.22-gentoo-r7
|
Is "realroot" on the kernel line a typo? as it should be "real_root" |
|
Back to top |
|
|
|