View previous topic :: View next topic |
Author |
Message |
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Mon Oct 17, 2005 9:40 pm Post subject: |
|
|
Cabalist wrote: | I am not sure how to phrase this succinctly. I have a partion scheme something like this:
Code: | hda1 == winXP
hdb1 == storage
hde1 == storage
hde2 == storage
hde3 == New Gentoo (experimental)
hdf1 == Old Gentoo
hdf2 == Swap
hdf3 == Home Directory
hdc == CDROM
hdd == CDROM |
I had previously used lilo and been booting fine. How do I install Grub on hda and have it boot hde3? Here is my grub.conf:
Code: |
timeout 10
default 0
splashimage=/boot/grub/splash.xpm.gz
title GentooNEW
root (hd2,2)
kernel /boot/vmlinuz quiet root=/dev/hde3 video=vesafb:ywrap,mtrr,1024x768-16@72 splash=silent,theme:emergence CONSOLE=/dev/tty1
initrd /boot/fbsplash-emergence-1024x768
title GentooOLD
root (hd3,0)
kernel /boot/vmlinuz root=/dev/hdf1
title Stupid
rootnoverify (hd0,0)
makeactive
chainloader +1
|
Also:
grub-install /dev/hda returns:
Could not find device for /boot: Not found or not a block device.
Ideas? It's something simple right? |
Hi.
You can try the following
Code: | timeout 10
default 0
splashimage=(hd2,2)/boot/grub/splash.xpm.gz
title GentooNEW
root (hd2,2)
kernel /boot/vmlinuz quiet root=/dev/hde3 video=vesafb:ywrap,mtrr,1024x768-16@72 splash=silent,theme:emergence CONSOLE=/dev/tty1
initrd /boot/fbsplash-emergence-1024x768
title GentooOLD
root (hd3,0)
kernel /boot/vmlinuz root=/dev/hdf1 |
To install GRUB you should do
Code: | # grub
grub> root(hd2,2)
grub> setup (hd0)
grub> quit
# |
By the way, it would be easier if you used a single /boot partition and didn't had the new /boot dir inside a / partition. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Mon Oct 17, 2005 9:42 pm Post subject: Re: I have a grub problem to... :( |
|
|
aaronamd wrote: | hello I'm currently a noob so be easy on me. ok first lets get this stuff outa the way; I run an athlon FX-55 system on an MSI K8N neo2 with 512megs of ram and a SATA Harddisk that is detected as /dev/sda. upon installing grub I used the genkernel settings because I used genkernel (duh ) anyway, when rebooting I get a file not found error, is this because I am using reiserfs as the filesystem on / ? if it is how can I solve this? I need to get this solved so that I can know how to install on my IBM T23 laptop, it only has 256megs of ram so I choose gentoo becuase I can optomize it. thank you |
Hi.
Can you post your grub.conf file? Check that your kernel and initrd filenames are correct. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
southpaw Guru
Joined: 11 Mar 2005 Posts: 375 Location: "Americas Toilet"(So.FL.)
|
Posted: Tue Oct 18, 2005 3:04 am Post subject: |
|
|
Hello All,
I don't know if anyone has had this problem before with Grub (whether it's Grub or not I'm not sure, but that's what I intend to find out) before, but anyway here goes .
I've done many Gentoo install's most of which have gone without a hitch, especially without any problems from Grub. However, this time Grub appears to have disappeared . Let me be a little more specific. I did everything that you had to do to install Grub including creating the "grub.conf" file that goes in the /boot directory. However, upon reboot I get the typical "Gentoo Linux Grub Splash" with the title and kernel image etc..etc.. But when I press enter and the system begins its initialization process I noticed that the emergence splash image that I added to the "grub.conf" file never shows up !!! So after I login, I go into the /boot directory to check my "grub.conf" file, but to my surprise it was nowhere to be found .
Does this sound familiar to anyone, if so I would appreciate a little guidence, THANX _________________ Legalize It |
|
Back to top |
|
|
jan.mrazek n00b
Joined: 30 Sep 2005 Posts: 37
|
Posted: Tue Oct 18, 2005 9:05 am Post subject: Find my fstab |
|
|
Hello,
I have the error :
Code: |
XFS: bad magic number
XFS: SB validate failed
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
|
I saw it was mentionned, but havn't succeeded yet to solve it. Therfor I would like to take a look on my fstab, but don't know how to find it?
Could somebody help me, please?
Best regards
Jan |
|
Back to top |
|
|
alanzilli n00b
Joined: 12 Oct 2005 Posts: 11
|
Posted: Tue Oct 18, 2005 3:57 pm Post subject: only get grub> |
|
|
I am having some problems with my grub. it seems to have installed without errors but when i reboot i get the
grub> command line
if i enter the kernel then boot i can get into my linux. or if i do configfile /boot/grub/grub.conf it will go black for a bit then load linux. but i never get a choice.
my fdisk looks like:
Disk /dev/hda: 40.0 GB, 40007761920 bytes
240 heads, 63 sectors/track, 5168 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3190 24116368+ 7 HPFS/NTFS
/dev/hda2 * 3191 3195 37800 83 Linux
/dev/hda3 3196 3262 506520 82 Linux swap / Solaris
/dev/hda4 3263 5168 14409360 83 Linux
and my config file is:
default 0
timeout 30
splashimage=(hd0,1) /grub/splash.xpm.gz
title=Gentoo Linux 2.6.13-r3
root (hd0,1)
kernel /kernel-genkernel-x86-2.6.13-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=$initrd /initramfs-genkernel-x86-2.6.13-gentoo-r3
title=Windows
root (hd0,0)
makeactive
chainloader +1
i have read this whole thread and i still cant figure it out.
help please |
|
Back to top |
|
|
southpaw Guru
Joined: 11 Mar 2005 Posts: 375 Location: "Americas Toilet"(So.FL.)
|
Posted: Tue Oct 18, 2005 8:59 pm Post subject: |
|
|
Hey guys, in reference to my earlier post, could my issue have anything to do with my CFLAGS??? _________________ Legalize It |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Wed Oct 19, 2005 2:03 am Post subject: |
|
|
southpaw wrote: | Hello All,
I don't know if anyone has had this problem before with Grub (whether it's Grub or not I'm not sure, but that's what I intend to find out) before, but anyway here goes .
I've done many Gentoo install's most of which have gone without a hitch, especially without any problems from Grub. However, this time Grub appears to have disappeared . Let me be a little more specific. I did everything that you had to do to install Grub including creating the "grub.conf" file that goes in the /boot directory. However, upon reboot I get the typical "Gentoo Linux Grub Splash" with the title and kernel image etc..etc.. But when I press enter and the system begins its initialization process I noticed that the emergence splash image that I added to the "grub.conf" file never shows up !!! So after I login, I go into the /boot directory to check my "grub.conf" file, but to my surprise it was nowhere to be found .
Does this sound familiar to anyone, if so I would appreciate a little guidence, THANX |
Hi.
Are you sure that your /boot partition is mounted? Try the following
Code: | # ls -l /boot
# ls -l /boot/grub
# mount /boot
# ls -l /boot/grub |
Your question regarding the emergence splash image is not related to GRUB! You need to look at the splashutils. You may need to create an initramsfs file with the splash theme. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Last edited by jmbsvicetto on Sat Oct 29, 2005 9:56 am; edited 1 time in total |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Wed Oct 19, 2005 2:06 am Post subject: Re: Find my fstab |
|
|
jan.mrazek wrote: | Hello,
I have the error :
Code: |
XFS: bad magic number
XFS: SB validate failed
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
|
I saw it was mentionned, but havn't succeeded yet to solve it. Therfor I would like to take a look on my fstab, but don't know how to find it?
Could somebody help me, please?
Best regards
Jan |
Hi.
You should look at /etc/fstab. Your error
Code: | Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) |
means that the kernel isn't able to read the ramdisk. Did you add the initrd line to grub.conf? Are you using genkernel or have you compiled the kernel manually?
Code: | atl64 atlantis # ls -l /dev/ra*
lrwxrwxrwx 1 root root 4 2005-10-18 21:46 /dev/ram0 -> rd/0
...
atl64 atlantis # ls -l /dev/rd/*
brw-rw---- 1 root disk 1, 0 2005-10-18 21:46 /dev/rd/0
...
atl64 atlantis # |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
NotQuiteSane Guru
Joined: 30 Jan 2005 Posts: 488 Location: Klamath Falls, Jefferson, USA, North America, Midgarth
|
Posted: Wed Oct 19, 2005 3:17 am Post subject: |
|
|
I'm having another one of those "Not found or not a block device." grub problems.
I had previously sucsesfully setup this box with a 2 gb drive (/dev/hdc) (it's slated to be a firewall /router only). After deciding that was too small, and that my / was too big, I added in a 3gb (hdb) drive, did a stage4 backup, repartitioned/formated and restored from backup, then edited /etc/fstab & grub.conf. that failed with the same error I am getting. attempt to use the grub shell, tab completion does not recognize any devices.
Today I swapped cdrom (hda) and hdb, making the cdrom the master slave, and verified tyhe boot order in the bios.
Here is a script from my unsucessfull attempt today:
Code: | Script started on Tue Oct 18 07:23:57 2005
sh-3.00# date 101817402005
Tue Oct 18 17:40:00 UTC 2005
sh-3.00# vgscan && vgchange -a y && mount /dev/hda1 /mnt/gentoo/ && mkswap /dev/hda2 && mkswap /dev/hdc1 && swapon /dev/hda2 && swapon hdc1
Reading all physical volumes. This may take a while...
Found volume group "vg" using metadata type lvm2
3 logical volume(s) in volume group "vg" now active
Setting up swapspace version 1, size = 259334 kB
Setting up swapspace version 1, size = 258011 kB
swapon: cannot stat hdc1: No such file or directory
sh-3.00# fdisk -l
Disk /dev/hda: 3239 MB, 3239792640 bytes
120 heads, 63 sectors/track, 837 cylinders
Units = cylinders of 7560 * 512 = 3870720 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9 33988+ 83 Linux
/dev/hda2 10 76 253260 82 Linux swap / Solaris
/dev/hda3 77 103 102060 83 Linux
/dev/hda4 104 837 2774520 8e Linux LVM
Disk /dev/hdc: 2111 MB, 2111864832 bytes
64 heads, 63 sectors/track, 1023 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 125 251968+ 82 Linux swap / Solaris
/dev/hdc2 126 1023 1810368 8e Linux LVM
sh-3.00# swapon /dev/hdc1
sh-3.00# umount /mnt/gentoo/
sh-3.00# mount /dev/sda3 /mnt/gentoo/
mount: special device /dev/sda3 does not exist
sh-3.00# mount /dev/hda3 /mnt/gentoo/
sh-3.00# mount /dev/hda1 /mnt/gentoo/boot/ && mount /dev/vg/opt /mnt/gentoo/opt/ && mount tmpfs /mnt/gentoo/tmp/ -t tmpfs -o size=32M && mount /dev/vg/usr /mnt/gentoo/usr/ && mount -t nfs 192.168.1.145:/usr/portage/ /mnt/gentoo/mnt/nfs_portage/ && mount /dev/vg/var /mnt/gentoo/var/ && mount -t proc none /mnt/gentoo/proc/ && chroot /mnt/gentoo/ /bin/bash
livecd/ # env-update && source /etc/profile && vi /etc/fstab && vi /boot/grub/grub.conf && cp /mnt/proc/mounts /etc/mtab && grub -install --no-floppy --recheck
/dev//hda
>>> Regenerating /etc/ld.so.cache...
"etc/fstab" [converted] 36L, 1489C
"/boot/grub/grub.conf" [converted] 6L, 86C
Probing devices to guess BIOS drives. This may take a long time.
/dev/hda: Not found or not a block device.
livecd/ # cat /etc/fstab && cat /boot/grub/grub.conf && grub-install --no-floppy --recheck /dev/hda
# /etc/fstab: static file system information.
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23:05:14 vapier Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda3 / xfs noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/hdc1 none swap sw 0 0
#/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /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)
shm /dev/shm tmpfs nodev,nosuid,noexec
0 0
/dev/vg/opt /opt xfs defaults
0 0
/dev/vg/usr /usr xfs defaults
0 0
/dev/vg/var /var xfs defaults
0 0
tmpfs /tmp tmpfs defaults,nosuid,size=32M,mode=1777 0 0
tmpfs /var/tmp/portage tmpfs defaults,nosuid,size=512M 0 0
# nfs mounts
192.168.1.14:/usr/portage /mnt/nfs_portage nfs rw 0 0
default 0
timeout 10
title Linux
title Linux
root (hd0,0)
kernel /kernel-teena-01 root=/dev/hda3
Probing devices to guess BIOS drives. This may take a long time.
/dev/hda: Not found or not a block device.
livecd/ # exit
sh-3.00# exit
Script done on Tue Oct 18 18:17:59 2005 |
I don't belive I missed any thing. What is going wrong?
NQS _________________ These opinions are mine, mine I say! Piss off and get your own.
As I see it -- An irregular blog, Improved with new location
To delete French language packs from system use 'sudo rm -fr /' |
|
Back to top |
|
|
NotQuiteSane Guru
Joined: 30 Jan 2005 Posts: 488 Location: Klamath Falls, Jefferson, USA, North America, Midgarth
|
Posted: Wed Oct 19, 2005 3:37 am Post subject: |
|
|
Whoops. Belay my last. I solved it with:
Code: | cp -vax /dev/* /mnt/gentoo/dev |
Maybe it was a stage 4 issue, maybe a udev issue (although without researching it, I belive the stage 4 script excludes /dev), but problem solved.
NQS _________________ These opinions are mine, mine I say! Piss off and get your own.
As I see it -- An irregular blog, Improved with new location
To delete French language packs from system use 'sudo rm -fr /' |
|
Back to top |
|
|
jan.mrazek n00b
Joined: 30 Sep 2005 Posts: 37
|
Posted: Wed Oct 19, 2005 9:49 am Post subject: |
|
|
Oh, sorry. I thought that I had checked my grub.conf enough. But when I begun to copy it in this reply, I saw my misspell error : initrid instead of initrd.
Sorry again for that, and thank you for your reply....
Best regards
Jan |
|
Back to top |
|
|
southpaw Guru
Joined: 11 Mar 2005 Posts: 375 Location: "Americas Toilet"(So.FL.)
|
Posted: Wed Oct 19, 2005 3:53 pm Post subject: |
|
|
Hey Jmbsvicetto,
I did what you said, and heres what I got:
Code: | # ls -l /boot
total 2734
lrwxrwxrwx 1 root root 27 Oct 7 21:36 System.map -> System.map-2.6.12-gentoo-r9
-rw-r--r-- 1 root root 919766 Oct 7 21:36 System.map-2.6.12-gentoo-r9
lrwxrwxrwx 1 root root 1 Oct 19 07:03 boot -> .
lrwxrwxrwx 1 root root 23 Oct 7 21:36 config -> config-2.6.12-gentoo-r9
-rw-r--r-- 1 root root 31873 Oct 7 21:36 config-2.6.12-gentoo-r9
-rwxr-xr-x 1 root root 1426 Oct 17 08:42 grub.conf
lrwxrwxrwx 1 root root 24 Oct 7 21:36 vmlinuz -> vmlinuz-2.6.12-gentoo-r9
-rw-r--r-- 1 root root 1835162 Oct 7 21:36 vmlinuz-2.6.12-gentoo-r9 |
...Then,
Code: | # ls -l /boot/grub
ls: /boot/grub: No such file or directory |
...Then,
Code: | # mount /boot
# ls -l /boot/grub
total 352
-rw-r--r-- 1 root root 8052 Oct 2 12:27 e2fs_stage1_5
-rw-r--r-- 1 root root 7812 Oct 2 12:27 fat_stage1_5
-rw-r--r-- 1 root root 7060 Oct 2 12:27 ffs_stage1_5
-rw-r--r-- 1 root root 2921 Sep 18 2004 gentoo.xpm.gz
-rw-r--r-- 1 root root 684 Oct 2 14:11 grub.conf
-rw-r--r-- 1 root root 1624 Oct 2 12:27 grub.conf.sample
-rw-r--r-- 1 root root 7124 Oct 2 12:27 iso9660_stage1_5
-rw-r--r-- 1 root root 8576 Oct 2 12:27 jfs_stage1_5
lrwxrwxrwx 1 root root 9 Oct 2 12:27 menu.lst -> grub.conf
-rw-r--r-- 1 root root 7284 Oct 2 12:27 minix_stage1_5
-rw-r--r-- 1 root root 9556 Oct 2 12:27 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 Oct 2 12:27 splash.xpm.gz
-rw-r--r-- 1 root root 512 Oct 2 12:27 stage1
-rw-r--r-- 1 root root 105544 Oct 2 12:27 stage2
-rw-r--r-- 1 root root 105544 Oct 2 12:27 stage2_eltorito
-rw-r--r-- 1 root root 7368 Oct 2 12:27 ufs2_stage1_5
-rw-r--r-- 1 root root 6708 Oct 2 12:27 vstafs_stage1_5
-rw-r--r-- 1 root root 9404 Oct 2 12:27 xfs_stage1_5 |
...What do think Doctor? _________________ Legalize It |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Wed Oct 19, 2005 5:06 pm Post subject: |
|
|
southpaw wrote: | Hey Jmbsvicetto,
I did what you said, and heres what I got:
Code: | # ls -l /boot
total 2734
...
-rwxr-xr-x 1 root root 1426 Oct 17 08:42 grub.conf
... |
...
Code: | # mount /boot
# ls -l /boot/grub
total 352
...
-rw-r--r-- 1 root root 684 Oct 2 14:11 grub.conf
... |
...What do think Doctor? |
southpaw,
if you look at the previous listing, you'll see that your desired grub.conf file is probably in /boot, instead of /boot/grub where it should be. Check the contents of the files and if you want to use /boot/grub.conf do the following:
Code: | # umount /boot
# mv /boot/grub.conf /
# mount /boot
# mv /boot/grub/grub.conf /boot/grub/grub.old
# mv /grub.conf /boot/grub |
Does this solve your issue? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
empie n00b
Joined: 08 Oct 2005 Posts: 2
|
Posted: Wed Oct 19, 2005 8:14 pm Post subject: |
|
|
jmbsvicetto wrote: |
Hi.
Have you tried replacing
Code: | kernel /kernel-2.6.13-gentoo-r3 root=/dev/sda10
savedefault
boot |
with the following?
Code: | kernel /kernel-2.6.13-gentoo-r3 root=/dev/sda10 |
|
Tnx Jorge, that did the trick. |
|
Back to top |
|
|
DakkoN n00b
Joined: 29 Jun 2005 Posts: 3
|
Posted: Thu Oct 20, 2005 6:41 am Post subject: Grub does not recognize any hard disk... (SOLVED) |
|
|
First of all, sorry if this question has been resolved on another place but I have not been able to find it...
I am installing my beloved Gentoo 2005.1 on a Packard Bell 3GHz (I think is an iMedia) with a 200GB SATA hard disk (ST3200826AS). I had installed Gentoo without any problem in a wide spectrum of computers until now...
The problem is that I cannot install grub or lilo, when I chroot nor grub or lilo manage to recognize my hard disk, therefor when I type: "root (" on the grub console I don't get any options... By the way, my hard disk is on /dev/sde but in the chrooted environment there is no /dev/sde as there are only /dev/sda-/dev/sdd devices created. I don't know if this is related in any way...
running /sbin/lilo outputs: Fatal: raid_setup: stat("/dev/sde5"). sde5 is my /boot partition.
If you need more info please ask me, I'm quite depressed this is not working... :'(
Thanks in advance!!
SOLUTION: A lot of thanks to jmbsvicetto The trick succeeded (mount -o bind /dev /mnt/gentoo/dev), I guess that it was a problem with the number of device nodes available... Anyway, thanks!
Last edited by DakkoN on Thu Oct 20, 2005 12:09 pm; edited 1 time in total |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Thu Oct 20, 2005 11:18 am Post subject: |
|
|
Hi DakkoN and welcome to the forums.
Before you chroot do the following
Code: | # mount -o bind /dev /mnt/gentoo/dev |
Try to install GRUB or LILO now. Does it work? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
mash n00b
Joined: 21 Oct 2005 Posts: 2 Location: Finland
|
Posted: Fri Oct 21, 2005 5:08 pm Post subject: |
|
|
So, i'm having problems with grub and windows.
See, my windows doesn't boot. I've tried everything, but all it gives me is 'Error 13: Invalid or unsupported executable format'
Here's the complete output:
Code: |
Booting 'Windows 98'
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd0,0)
makeactive
chainloader +1
|
_________________ insert random fancy catchphrase here
mash @ ircnet |
|
Back to top |
|
|
steve_d555 Guru
Joined: 07 Nov 2004 Posts: 458 Location: Belmont, Massachusetts
|
Posted: Sat Oct 22, 2005 7:28 pm Post subject: Error 17 |
|
|
Hello,
I'm having some wierd Grub problems. I installed Gentoo around 3 months ago and grub dual-booting windows and gentoo has been perfect for that long. Then, today I finally decided to upgrade my kernel and did the normal things. But, right after installing and trying to reboot (2.6.13 kernel btw) I get Grub Error 17 which means it can't read my boot partition. Which is odd, because I've tried reinstalling grub in knoppix, and from the gentoo liveCD and it says it works perfectly, but I still keep getting error 17 (the partition is ext2). Do I move all my kernels and such out of /boot, wipe it, then reinstall grub and see if it works?
Thanks,
Steve
EDIT: also, if this matters, the partitions are on SATA drives, but that hasn't mattered before. _________________ rubyforums | blog | boxwhore |
|
Back to top |
|
|
steve_d555 Guru
Joined: 07 Nov 2004 Posts: 458 Location: Belmont, Massachusetts
|
Posted: Sat Oct 22, 2005 9:25 pm Post subject: Re: Error 17 |
|
|
steve_d555 wrote: | Hello,
I'm having some wierd Grub problems. I installed Gentoo around 3 months ago and grub dual-booting windows and gentoo has been perfect for that long. Then, today I finally decided to upgrade my kernel and did the normal things. But, right after installing and trying to reboot (2.6.13 kernel btw) I get Grub Error 17 which means it can't read my boot partition. Which is odd, because I've tried reinstalling grub in knoppix, and from the gentoo liveCD and it says it works perfectly, but I still keep getting error 17 (the partition is ext2). Do I move all my kernels and such out of /boot, wipe it, then reinstall grub and see if it works?
Thanks,
Steve
EDIT: also, if this matters, the partitions are on SATA drives, but that hasn't mattered before. |
Odd, it seems that grub is very, very sensitive. Turns out I unplugged my USB hard drive (which has no connection to my system, it's just for storing files) and grub goes beserk. _________________ rubyforums | blog | boxwhore |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Oct 23, 2005 1:55 am Post subject: |
|
|
steve_d555,
actually it isn't GRUB who's very sensitive to USB disks, it's your BIOS and kernel! The kernel creates for an USB disk a /dev/sdX device. If you also have SATA disks, which also get /dev/sdX devices, by taking the USB disks, you might be altering the disks partitions. The BIOS also gives ids to the disks that depend on the hardware present. If you look at
with and without the USB disk pluged-in, your disks should have different devices. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
steve_d555 Guru
Joined: 07 Nov 2004 Posts: 458 Location: Belmont, Massachusetts
|
Posted: Sun Oct 23, 2005 2:04 am Post subject: |
|
|
jmbsvicetto wrote: | steve_d555,
actually it isn't GRUB who's very sensitive to USB disks, it's your BIOS and kernel! The kernel creates for an USB disk a /dev/sdX device. If you also have SATA disks, which also get /dev/sdX devices, by taking the USB disks, you might be altering the disks partitions. The BIOS also gives ids to the disks that depend on the hardware present. If you look at
with and without the USB disk pluged-in, your disks should have different devices. |
Never knew that, thanks _________________ rubyforums | blog | boxwhore |
|
Back to top |
|
|
spOOwn Apprentice
Joined: 02 Nov 2002 Posts: 259 Location: Belgium
|
Posted: Sat Oct 29, 2005 9:14 am Post subject: |
|
|
i've got a new problem, i think it is related to grub configuration file, but i'm not sure, so here is my problem
when i want to boot my linux partition, some lines print out, and the last 2 lines say me this :
Code: | UDF-FS : No partition found (1)
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block(3,3) |
here is my grub file :
Code: | default 0default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel /kernel-2.6.13-gentoo root=/dev/hda3
title=Windows XP
root (hd0,3)
chaineloader (hd0,3)+1 |
here is my /etc/fstab file :
Code: | # /etc/fstab: static file system information.
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1
2005/01/31 23:05:14 vapier Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext3 noauto,noatime 1 2
/dev/hda3 / reiserfs noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /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)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
and finally , my kernel file is on /dev/hda1/kernel-2.6.13-gentoo
So, any idea ?? i don't understand why it don't boot my linux partition !!! |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Oct 29, 2005 10:10 am Post subject: |
|
|
spOOwn wrote: | i've got a new problem, i think it is related to grub configuration file, but i'm not sure, so here is my problem
when i want to boot my linux partition, some lines print out, and the last 2 lines say me this :
Code: | UDF-FS : No partition found (1)
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block(3,3) |
here is my grub file :
Code: | default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel /kernel-2.6.13-gentoo root=/dev/hda3
|
here is my /etc/fstab file :
Code: | # /etc/fstab: static file system information.
/dev/hda1 /boot ext3 noauto,noatime 1 2
/dev/hda3 / reiserfs noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
|
Hi.
Your system is complaining that it can't mount /dev/hda3.
Code: | UDF-FS : No partition found (1)
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block(3,3) |
Make sure that you compiled the support for reiserfs and the driver for your disk controller in the kernel <*> and not as a module <M>. Are you sure that you used reiserfs for /dev/hda3? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
spOOwn Apprentice
Joined: 02 Nov 2002 Posts: 259 Location: Belgium
|
Posted: Sat Oct 29, 2005 9:35 pm Post subject: |
|
|
you were right, i forget to enable reiserfs in my kernel |
|
Back to top |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Sat Oct 29, 2005 11:03 pm Post subject: |
|
|
I'm still having issues getting GRUB installed. When it didn't work the first time, I set the custom-cflags USE flag and re-emerged it, thinking that might help. It made no difference, I'm still getting the same issue. From the grub shell, it almost looks like it installs, but nothing is ever written to the MBR. Grub-install says it completed successfully but once again, nothing is written to the MBR. LILO works fine...I'm booting with it right now. This GRUB installation attempt does not overwrite LILO...LILO still works. I want to switch to GRUB though because I don't like LILO. I've used GRUB successfully on 3 other machines with no problems. I'm tearing my hair out over this...does anyone have any suggestions? Here's the output of the GRUB shell:
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.l
st "... succeeded
Done.
/dev/hda1 is ext2, /boot
/dev/hda2 is swap
/dev/hda3 is ext3, /
/dev/hda4 is ext3, /home
Here's the output of grub-install (which also does nothing, it doesn't overwrite LILO):
triforce akai # grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/hda
The only thing that I can even think of that it possibly could be is some kind of permissions issue, but I checked and they look okay. Here's /boot:
triforce akai # ls -l /boot
total 2206
lrwxrwxrwx 1 root root 19 Oct 5 14:56 System.map -> System.map-2.6.12.5
-rw-r--r-- 1 root root 868513 Oct 5 19:19 System.map-2.6.12.5
lrwxrwxrwx 1 root root 1 Oct 3 03:00 boot -> .
-rw-r--r-- 1 root root 512 Oct 4 11:08 boot.0300
lrwxrwxrwx 1 root root 16 Oct 5 14:56 bzImage -> bzImage-2.6.12.5
-rw-r--r-- 1 root root 1361956 Oct 5 19:20 bzImage-2.6.12.5
drwxr-xr-x 2 root root 1024 Oct 29 18:56 grub
drwx------ 2 root root 12288 Oct 3 02:56 lost+found
Here's /boot/grub:
triforce akai # ls -l /boot/grub
total 474
-rw-r--r-- 1 root root 197 Oct 4 17:45 default
-rw-r--r-- 1 root root 15 Oct 4 17:44 device.map
-rw-r--r-- 1 root root 8672 Oct 27 04:19 e2fs_stage1_5
-rw-r--r-- 1 root root 8368 Oct 27 04:19 fat_stage1_5
-rw-r--r-- 1 root root 7680 Oct 27 04:19 ffs_stage1_5
-rw-r--r-- 1 root root 330 Oct 5 14:57 grub.conf
-rw-r--r-- 1 root root 1624 Oct 27 04:19 grub.conf.sample
-rw-r--r-- 1 root root 7744 Oct 27 04:19 iso9660_stage1_5
-rw-r--r-- 1 root root 9344 Oct 27 04:19 jfs_stage1_5
lrwxrwxrwx 1 root root 9 Oct 4 10:45 menu.lst -> grub.conf
-rw-r--r-- 1 root root 7808 Oct 27 04:19 minix_stage1_5
-rw-r--r-- 1 root root 10368 Oct 27 04:19 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 Oct 27 04:19 splash.xpm.gz
-rw-r--r-- 1 root root 512 Oct 27 04:19 stage1
-rw-r--r-- 1 root root 119624 Oct 27 04:19 stage2
-rw-r--r-- 1 root root 108328 Oct 4 17:45 stage2.old
-rw-r--r-- 1 root root 119624 Oct 27 04:19 stage2_eltorito
-rw-r--r-- 1 root root 8052 Oct 27 04:19 ufs2_stage1_5
-rw-r--r-- 1 root root 7264 Oct 27 04:19 vstafs_stage1_5
-rw-r--r-- 1 root root 10440 Oct 27 04:19 xfs_stage1_5
And here's the output of df:
triforce akai # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 38456340 2310064 34192772 7% /
udev 453176 112 453064 1% /dev
/dev/hda4 118065484 23755364 88312656 22% /home
shm 453176 0 453176 0% /dev/shm
/dev/hda1 69995 2721 63660 5% /boot |
|
Back to top |
|
|
|
|
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
|
|