Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with new installation, file system and grub related
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
horstenpeter
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 133
Location: Hamburg, Germany

PostPosted: Tue Mar 02, 2004 11:19 am    Post subject: Problems with new installation, file system and grub related Reply with quote

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


Joined: 02 Mar 2004
Posts: 11
Location: damp wet and miserable England

PostPosted: Tue Mar 02, 2004 11:25 am    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
horstenpeter
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 133
Location: Hamburg, Germany

PostPosted: Tue Mar 02, 2004 3:31 pm    Post subject: Reply with quote

Alright I'll try :) What about the other stuff ? Anyone ?
Back to top
View user's profile Send private message
horstenpeter
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 133
Location: Hamburg, Germany

PostPosted: Tue Mar 02, 2004 7:07 pm    Post subject: Reply with quote

help people! i wanted my system up within the week! :(
Back to top
View user's profile Send private message
Blejd
n00b
n00b


Joined: 01 Apr 2003
Posts: 30
Location: Sweden

PostPosted: Tue Mar 02, 2004 7:16 pm    Post subject: Reply with quote

post your /etc/fstab and /etc/grub.conf
Back to top
View user's profile Send private message
horstenpeter
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 133
Location: Hamburg, Germany

PostPosted: Tue Mar 02, 2004 7:41 pm    Post subject: Reply with quote

/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
View user's profile Send private message
daveb
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2003
Posts: 137
Location: In front of my computer, duh!

PostPosted: Tue Mar 02, 2004 9:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
horstenpeter
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 133
Location: Hamburg, Germany

PostPosted: Tue Mar 02, 2004 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
ToucanMan
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2003
Posts: 97
Location: Montreal, Quebec

PostPosted: Tue Mar 02, 2004 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
daveb
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2003
Posts: 137
Location: In front of my computer, duh!

PostPosted: Wed Mar 03, 2004 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
horstenpeter
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 133
Location: Hamburg, Germany

PostPosted: Wed Mar 03, 2004 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message
horstenpeter
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 133
Location: Hamburg, Germany

PostPosted: Wed Mar 03, 2004 9:48 am    Post subject: Reply with quote

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


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Wed Mar 03, 2004 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message
horstenpeter
Tux's lil' helper
Tux's lil' helper


Joined: 01 Mar 2004
Posts: 133
Location: Hamburg, Germany

PostPosted: Wed Mar 03, 2004 10:43 am    Post subject: Reply with quote

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


Joined: 03 Mar 2004
Posts: 1

PostPosted: Wed Mar 03, 2004 6:33 pm    Post subject: Reply with quote

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