Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rebooting problem
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Sun Oct 04, 2009 1:24 am    Post subject: rebooting problem Reply with quote

hi

iv just spent pretty much the whole day trying to install gentoo, and i finally got to the rebooting stage where i felt i had it in the bag and was finally about to finish, but now as soon as i rebooted it came up with grub>_ waiting for me to enter something, is this normal or have i done something wrong.

Any help would be greatly appreciated

thanks
Back to top
View user's profile Send private message
Crenshaw
Guru
Guru


Joined: 23 Jun 2004
Posts: 474
Location: Poland

PostPosted: Sun Oct 04, 2009 1:58 am    Post subject: Re: rebooting problem Reply with quote

alwise17 wrote:
hi

iv just spent pretty much the whole day trying to install gentoo, and i finally got to the rebooting stage where i felt i had it in the bag and was finally about to finish, but now as soon as i rebooted it came up with grub>_ waiting for me to enter something, is this normal or have i done something wrong.

Any help would be greatly appreciated

thanks


No error messages?

If grub starts after reboot I think you messed up something with grub.conf so recheck it with manual:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10

and if you still have problems post it here so we can have look.
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Sun Oct 04, 2009 9:28 am    Post subject: Reply with quote

Hi,

This sounds like a good idea however how do i get from livecd root # to the part where i can change the conf grub file. ( i think its something like
(chroot) livecd #)

cheers
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Oct 04, 2009 10:00 am    Post subject: Reply with quote

alwise17 wrote:
Hi,

This sounds like a good idea however how do i get from livecd root # to the part where i can change the conf grub file. ( i think its something like
(chroot) livecd #)

cheers


You need to mount your primary disk which containst the gentoo installation. And then mount /proc and /dev so you can chroot inside it.
Assuming that /dev/sda1 is the partition where you installed gentoo, you do this:

mkdir /mnt/gentoo
mount /dev/sda1 /mnt/gentoo
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev

chroot /mnt/gentoo

Now you are 'inside' your installation :) Until now, you did practically no changes to the filesystem. Now, be careful what you change/modify/install, because this could wreck your grub setup!

Then you can modify grub:

nano /etc/grub/grub.conf

Or (more radical) reïnstall grub (assuming that /dev/sda is your primary disk):

grep -v rootfs /proc/mounts > /etc/mtab
grub-install --recheck /dev/sda

To correctly stop this repair session, do:

exit # to exit out of the chroot
umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo # this is needed to flush any remaining changes

Reboot and cross your fingers :)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21498

PostPosted: Sun Oct 04, 2009 5:07 pm    Post subject: Reply with quote

Rexilion wrote:
nano /etc/grub/grub.conf
This should be /boot/grub/grub.conf, not /etc.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun Oct 04, 2009 6:49 pm    Post subject: Reply with quote

or just
Code:
mkdir /mnt/gentoo
mount /dev/sda1 /mnt/gentoo
nano /mnt/gentoo/boot/grub/grub.conf

chroot not needed for this evolution
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Sun Oct 04, 2009 9:21 pm    Post subject: Reply with quote

Hi,

thanks for the great replies i managed to get onto my grub.conf, however im not so sure whats causing the problem i have, this is my grub.conf. (sorry i had to type it out manually but this is basically what i can see)



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

#title Gentoo Linux 2.6.24-r5
#root (hd0,0)
#kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

# vim:ft=conf:


Any advice?

cheers

Al
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sun Oct 04, 2009 9:24 pm    Post subject: Reply with quote

Just un-comment the lines. Change this
Code:
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

#title Gentoo Linux 2.6.24-r5
#root (hd0,0)
#kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

to this
Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.24-r5
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Sun Oct 04, 2009 9:39 pm    Post subject: Reply with quote

hey,

thanks for the replies they worked, i cant believe i was so stupid lol, anyway i am sorry to report i know have another error after i choose which OS i want, heres what comes up;


Booting 'Gentoo Linux 2.6.24-r5'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3

Error 15: File not found

Press any key to continue..._

when i press any key it takes me back to where i choose the OS, im guessing its got something to do with the grub.conf, iv uncommented everything though, so its something iv propably left out, i decided to put this problem i have on the same topic as my last problem so you can see my grub.conf, its basically the same, except i commented out the stuff that needed commenting out.

Thanks for the help

Al
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun Oct 04, 2009 10:07 pm    Post subject: Reply with quote

Quote:
mkdir /mnt/gentoo
mount /dev/sda1 /mnt/gentoo
ls -l /mnt/gentoo/boot/


the values for kernel and initramfs produced must be exactly matched in /mnt/gentoo/boot/grub/grub.conf

post result here if you don't see the problem
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sun Oct 04, 2009 10:16 pm    Post subject: Reply with quote

... and also the partitions must exactly match /mnt/gentoo/etc/fstab

post the output of fdisk -l please
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Sun Oct 04, 2009 10:25 pm    Post subject: Reply with quote

Hi

thanks for the reply, im not too sure what the results i got mean, this is what i got:


Code:
livecd gentoo # ls -l /mnt/gentoo/boot/
total 6865
-rw-r--r--    1 root root  1306014  Oct  3  23:25  System.map-genkernel-x86-2.6.30-gentoo-r6
lrwxrwxrwx 1 root root             1  Oct  3  20:05  boot -> .
drwxr-xr-x  2 root root        1024  Oct  4  02:05  grub
-rw-r--r--    1 root root  2994716  Oct   3  23:49  initramfs-genkernel-x86-2.6.30-gentoo-r6
-rw-r--r--    1 root root  2682608  Oct   3  23:25  kernel-genkernel-x86.2.6.30-gentoo-r6
drwx------   2 root root      12288  Oct   3  18:39  lost+found


thats what i got,

thanks

Al


Last edited by alwise17 on Sun Oct 04, 2009 10:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Sun Oct 04, 2009 10:33 pm    Post subject: Reply with quote

Hi

results of fdisk -l are:

Code:
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x50000000

    Device Boot               Start                     End                      Blocks            Id          System
/dev/hda1   *                        1                        5                        40131          83          Linux
/dev/hda2                             6                      68                    506047+          82          Linux swap / Solaris
/dev/hda3                            69                 19457              155742142+          83          Linux

Cheers
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sun Oct 04, 2009 10:43 pm    Post subject: Reply with quote

your /mnt/gentoo/boot/grub/grub.conf should be this for genkernel:

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

title Gentoo Linux 2.6.30-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86.2.6.30-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3
initrd /boot/initramfs-genkernel-x86-2.6.30-gentoo-r6


Maybe you forgot that part in the Gentoo Handbook
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Mon Oct 05, 2009 4:27 pm    Post subject: Reply with quote

Hi,

Thanks for the great help, it worked, however yet another error, im wondering whether its worth to just reinstall it again and follow the manual closer, what do u think?

anyway heres the error which pops up after i choose the OS and during it is scanning my system:

Code:
>> activating mdev
>>Determining root device...
!! Block device /dev/hda3 is not a valid root device...
!! Could not find the root block device in .
   Please specify another value or: press Enter for the same, type "shell" for a shell, or "q" to skip...
root block device() ::_


Iv tried skipping but it just does nothing and gives me the same error. Also, ill say again if you think reinstalling is the way to go, im happy to do that.

Thanks

Al
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 05, 2009 4:56 pm    Post subject: Reply with quote

boot cd, mount gentoo partitions, run
Code:
cat /mnt/gentoo/etc/fstab

post result
what cd did you use when running fdisk -l?


Last edited by DONAHUE on Mon Oct 05, 2009 5:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Oct 05, 2009 4:58 pm    Post subject: Reply with quote

... also try this instead in your /mnt/gentoo/boot/grub/grub.conf:

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

title Gentoo Linux 2.6.30-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86.2.6.30-gentoo-r6 root=/dev/hda3 init=/linuxrc
initrd /boot/initramfs-genkernel-x86-2.6.30-gentoo-r6
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Mon Oct 05, 2009 5:19 pm    Post subject: Reply with quote

Hi,

DONAHUE wrote:
what cd did you use when running fdisk -l?


what do you mean the CD i used i.e. minimal cd or change directory which was
Code:
livecd gentoo #
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 05, 2009 5:56 pm    Post subject: Reply with quote

Code:
cat /mnt/gentoo/etc/fstab

and post result please

which cd as in a 2008.0 version name is like install-x86-minimal-2008.0.iso
or
a current version , name is like install-x86-minimal-20090915.iso
or
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Mon Oct 05, 2009 6:13 pm    Post subject: Reply with quote

DONAHUE wrote:
Code:
cat /mnt/gentoo/etc/fstab

and post result please

which cd as in a 2008.0 version name is like install-x86-minimal-2008.0.iso
or
a current version , name is like install-x86-minimal-20090915.iso
or


hi im using the 2008.0 version i.e. the first option and im just doing the cat /mnt/gentoo/etc/fstab now, will reply with results soon

Al
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Mon Oct 05, 2009 6:27 pm    Post subject: Reply with quote

Hi,

there was a lot of stuff in the results of cat /mnt/gentoo/etc/fstab but the following is the stuff that wasn't commented out


Code:
# <fs>                                        <mountpoint>          <type>                <opts>                    <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail optio to opts.
/dev/BOOT                                  /boot                         ext2                 noauto,noatime           1 2
/dev/ROOT                                  /                              ext3                 noatime               0 1
/dev/SWAP                                 none                            swap                 sw                        0 0
/dev/cdrom                                 /mnt/cdrom                     auto                  noauto,ro                   0 0
#/dev/fd0                                   /mnt/floppy                  auto                  noauto                    0 0

(A lot of commented out information)

shm                                           /dev/shm                     tmpfs                 nodev,nosuid,noexec      0 0


Just looking at the results i can see
Code:
#/dev/fd0                                   /mnt/floppy                  auto                  noauto                       0 0


is commented out, i think this may be because im using a laptop so i don't have a floppy drive.

Anyway as always thanks for the help

Al
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 05, 2009 7:26 pm    Post subject: Reply with quote

boot cd, mount gentoo partitions, run:
Code:
nano /mnt/gentoo/etc/fstab

edit fstab to read:
Quote:
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0


try a reboot
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Mon Oct 05, 2009 7:56 pm    Post subject: Reply with quote

DONAHUE wrote:
boot cd, mount gentoo partitions, run:
Code:
nano /mnt/gentoo/etc/fstab

edit fstab to read:
Quote:
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0


try a reboot


Hi,

nope it didn't work

by the way i changed my /mnt/gentoo/grub/grub.conf to

Quote:
Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.30-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86.2.6.30-gentoo-r6 root=/dev/hda3 init=/linuxrc
initrd /boot/initramfs-genkernel-x86-2.6.30-gentoo-r6


like mike hunt suggested, whether that would have made a difference

Al
Back to top
View user's profile Send private message
alwise17
n00b
n00b


Joined: 03 Oct 2009
Posts: 28

PostPosted: Mon Oct 05, 2009 8:01 pm    Post subject: Reply with quote

Also,

i got the same error message and it offered me the chance to skip, which it did before when i tried to skip it said:

Code:
** Skipping step, this will likely cause a boot failure.
>> Mounting root...
mount: can't find /newroot in /etc/fstab
!! Could not mount specified ROOT, try again
!! Could not find the root block device in.
Please sqecify another value or: press Enter for the same, type "shell" for a shell, or "q" to skip...
root block device() ::_
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 05, 2009 8:24 pm    Post subject: Reply with quote

let us assume that whereas the obsolescent 2008.0 cd uses the legacy drivers and calls your drive hda; the new kernel you made is using the new libata drivers and calls the hard drive sda; so

boot cd, mount gentoo partitions, run:

Code:
nano /mnt/gentoo/etc/fstab


edit fstab to read:

Quote:
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0


Code:
nano /mnt/gentoo/boot/grub/grub.conf


edit grub.conf to read: (returns it to handbook model as well as changes root drive name)

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

title Gentoo Linux 2.6.30-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.30-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.30-gentoo-r6


try a reboot
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
Goto page 1, 2  Next
Page 1 of 2

 
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