Jump to content

error 13 in grub


hawklord
 Share

Recommended Posts

hi all,

 

i have just installed a hdd in my tower, installed pclinuxos 2009 and alls working ok,

 

the problem is when i boot into my mandriva i cannot add pclos as a boot option in my grub bootloader,

i've tried everything that seems reasonable in mandriva to add it but all i get is error 13,

i have booted into pclos but the sound and networking was not detected, so this is not an option

 

the hdd in question is on my secondary ide, set to slave and on the middle connector,

its showing as sdc (/media/sdc3) in my disk management

 

i cannot add this drive to my primary ide, as i dual boot windows already and my windows hdd is currantly on my primary/slave

 

my motherboard supports the F11 option (choose boot device), so i know that pclos is running ok,

but i would prefer to have the boot option in grub

 

any ideas

 

ta

Link to comment
Share on other sites

hi all,

 

i have just installed a hdd in my tower, installed pclinuxos 2009 and alls working ok,

 

the problem is when i boot into my mandriva i cannot add pclos as a boot option in my grub bootloader,

i've tried everything that seems reasonable in mandriva to add it but all i get is error 13,

i have booted into pclos but the sound and networking was not detected, so this is not an option

 

the hdd in question is on my secondary ide, set to slave and on the middle connector,

its showing as sdc (/media/sdc3) in my disk management

 

i cannot add this drive to my primary ide, as i dual boot windows already and my windows hdd is currantly on my primary/slave

 

my motherboard supports the F11 option (choose boot device), so i know that pclos is running ok,

but i would prefer to have the boot option in grub

 

any ideas

 

ta

 

Have you tried chainloading it?

Put either:

 

title Pclos
root (hd2,2)
chainloader +1

 

or if that doesn't work then:

 

title Pclos
root (hd2,2)
configfile /boot/grub/menu.lst

 

Into the Mandriva menu.lst,

 

Before you do it though check that Pclos is actually on the third partition of your third disk (if it is not then alter (hd2,2) accordingly).

Edited by viking777
Link to comment
Share on other sites

the pclos hdd has only the root partition mounted in mandriva, swap and home are not mounted,

 

[dave@localhost ~]$ cat /etc/fstab
# Entry for /dev/sda1 :
UUID=f215643f-b7ad-4e91-b3fc-c7500a55b994 / ext3 defaults 1 1
# Entry for /dev/sda6 :
UUID=d9846411-a909-43f9-9c6f-8e52a67c80bf /home ext3 defaults 1 2
/dev/sr0 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
# Entry for /dev/sdb1 :
UUID=50E40580E4056994 /media/sdb1 ntfs-3g defaults 0 0
# Entry for /dev/sdb2 :
UUID=F8ECF289ECF24204 /media/sdb2 ntfs-3g defaults 0 0
# Entry for /dev/sdb4 :
UUID=DEF4F631F4F60B91 /media/sdb4 ntfs-3g defaults 0 0
# Entry for /dev/sdb5 :
UUID=3D17240729781B1D /media/sdb5 ntfs-3g defaults 0 0
# Entry for /dev/sdb6 :
UUID=144AB0BE6EAEF003 /media/sdb6 ntfs-3g defaults 0 0
# Entry for /dev/sdc1 :
UUID=0C243CB2243CA09E /media/sdc1 ntfs-3g defaults 0 0
# Entry for /dev/sdc2 :
UUID=6EE4732CE472F5A5 /media/sdc2 ntfs-3g defaults 0 0
# Entry for /dev/sdc1 :
UUID=511f3434-2bf6-4739-a53c-dde5055fe400 /media/sdc3 ext3 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=88fa5363-9636-45dc-9694-8ddf777abdab swap swap defaults 0 0

 

[dave@localhost ~]$ cat /boot/grub/menu.lst							   
timeout 10																
color black/cyan yellow/cyan											  
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=f215643f-b7ad-4e91-b3fc-c7500a55b994 resume=UUID=88fa5363-9636-45dc-9694-8ddf777abdab splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=f215643f-b7ad-4e91-b3fc-c7500a55b994 resume=UUID=88fa5363-9636-45dc-9694-8ddf777abdab splash=silent
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=f215643f-b7ad-4e91-b3fc-c7500a55b994 failsafe
initrd (hd0,0)/boot/initrd.img

title Windoze
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

title play hdd
rootnoverify (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
makeactive
chainloader +1

title linux-0
kernel (hd0,0)/boot/gfxmenu BOOT_IMAGE=linux-0 root=UUID=511f3434-2bf6-4739-a53c-dde5055fe400

 

[dave@localhost ~]$ sudo fdisk -l											   
Password:																	   

Disk /dev/sda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1e281e27					 

  Device Boot	  Start		 End	  Blocks   Id  System
/dev/sda1   *		   1		1019	 8185086   83  Linux 
/dev/sda2			1020		4998	31961317+   5  Extended
/dev/sda5			1020		1528	 4088511   82  Linux swap / Solaris
/dev/sda6			1529		4998	27872743+  83  Linux

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

  Device Boot	  Start		 End	  Blocks   Id  System
/dev/sdb1   *		   1		2550	20482843+   7  HPFS/NTFS
/dev/sdb2			2551		5130	20723850	7  HPFS/NTFS
/dev/sdb3			5131	   16573	91915897+   5  Extended
/dev/sdb4		   16574	   24321	62235810	7  HPFS/NTFS
/dev/sdb5			5131		7693	20587266	7  HPFS/NTFS
/dev/sdb6			7694	   16573	71328568+   7  HPFS/NTFS

Disk /dev/sdc: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x89108910

  Device Boot	  Start		 End	  Blocks   Id  System
/dev/sdc1   *		   1		1019	 8185086   83  Linux
/dev/sdc2			1020		4998	31961317+   5  Extended
/dev/sdc5			1020		1528	 4088511   82  Linux swap / Solaris
/dev/sdc6			1529		4998	27872743+  83  Linux

Disk /dev/sdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001365e

  Device Boot	  Start		 End	  Blocks   Id  System
/dev/sdd1   *		   1	   12748   102398278+   7  HPFS/NTFS
/dev/sdd2		   12749	   30401   141797722+   7  HPFS/NTFS

Link to comment
Share on other sites

Looks like /dev/sdc1 is your PCLOS root partition, and /dev/sdc6 its /home one.

You didn't really have to create a new swap partition (you could use the one for Mandriva without issues), but anyway...

 

title play hdd

rootnoverify (hd2,0)

map (hd0) (hd2)

map (hd2) (hd0)

makeactive

chainloader +1

 

Change it to

 

title PCLOS

root (hd2,0)

kernel /boot/{name-your-kernel-image-here} root=/dev/sdc1 ro

initrd /boot/{name-your-initrd-image-here}

No need for chainloading and makeactive- only windoze needs these adjustments.

 

And, as you can see from comparing the output of fdisk -l and cat/etc/fstab, your fstab entry has several wrong entries ( /dev/sdc*)- you must fix them.

Link to comment
Share on other sites

hi scarecrow,

 

i was just about to unmount my sata drive and new drive then re-mount as sdd and sdc,

 

the new drive is a 'mess around' drive, so i would like to keep the 2nd windows option (play hdd) as i know this entry works with windows on the drive,

would there be any problem keeping the entry ?

 

could i just edit menu.lst to add your suggestion to the end ?

 

would this same line work with any flavour of linux installed on the hdd ?

(with kernel image edited)

Link to comment
Share on other sites

this is the message i got, there was quite a bit but this is the end

 

creating root device

mounting root filesystem

mount: could not find filesystem '/dev/root'

setting up other filesystems

setuproot: moving /dev failed: no such file or directory

setuproot: error mounting /proc: no such file or directory

setuproot: error mounting /sys: no such file or directory

switching to new root and running init

switchroot: /dev does not exist in new root

booting has failed

Link to comment
Share on other sites

progress so far,

 

i've been working on this a while now, this entry

 

title PCLOS

root (hd2,0)

kernel /boot/{name-your-kernel-image-here} root=/dev/sdc1 ro

initrd /boot/{name-your-initrd-image-here}

 

only gives me error 17, i have tried adding and editing lines - nothing works

 

when i use this entry

 

title pclos

kernel (hd0,0)/boot/vmlinuz root=/dev/sdc1 ro

initrd (hd0,0)/boot/initrd.img

 

i can boot into pclinuxos without sound or networking (and maybe a few others, but i want to resolve this issue first)

 

is there anything else i should be adding to my entry in menu.lst

 

(ps, my disks are now all in order)

 

thanks

Link to comment
Share on other sites

Hiya,

I guess you have understood that {name-your-kernel-image-here} should be replaced by the actual kernel image name, and {name-your-initrd-image-here} with the analogouws initrd binary.

But- since you can boot PCLOS using (hd0,0) instead of (hd2,0) it's rather obvious that it sees the disks under a different sequence than Mandriva does.

The solution used most of the times for booting multiple linux distros (which may be kinky in different ways) is using a COMMON /boot partition, and also a common swap. Another solution would be replacing the /dev/sd* entries with UUID's, which are unique, and have no dependence on how the booted kernel enumerates the harddisks.

Link to comment
Share on other sites

replacing the /dev/sd* entries with UUID's

 

AAAGGHH!

 

UUID's - you cannot be serious!

 

Replace with

root=LABEL=xxxxx

for ultimate peace of mind.

 

And you set the labels with

e2label

or gparted.

 

Do it in fstab too (LABEL=xxxx), that way you will actually understand what you are booting/mounting.

Link to comment
Share on other sites

i understand that a little,

 

i replaced the {name-your-????-image-here} with the relevant images from boot/ in pclinuxos,

 

does it make any difference that i installed pclos 'fully' - ie. with no other disks installed and grub installed to the mbr,

so in reality i have 2 versions of grub - 1 x mandriva and 1 x pclos,

(if i boot via F11 and choose the pclos disk then i am presented with grub, with 2 options, pclos and failsafe)

 

so i would be booting from mdv's grub into pclos's grub - not straight into the operating system

 

could this be the confusing hd2 and hd0 ?

 

do i need to boot to pclos's grub from mandriva ?

 

be aware that i am no stretch of the imagination a linux expert - but i learn fast, and forgive me if i'm talking rubbish

 

thanks for all your help so far

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...