You are not logged in.

#1 2006-08-25 12:42:35

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

lilo 2 grub

Hi,

read wiki on install of grub ... but its for hda (ide drives!) is it possble to install to a sata drive?

I need to change to grub to make changes when rebooting into new system

TIA


Mr Green

Offline

#2 2006-08-25 12:53:44

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: lilo 2 grub

but its for hda (ide drives!) is it possble to install to a sata drive?

no problem

ide = hd[a-z]
sata = sd[a-z]


Have you tried to turn it off and on again?

Offline

#3 2006-08-25 12:59:14

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: lilo 2 grub

grub> setup sd(0)

Error 11: Unrecognized device string

grub> setup (sd0)

Error 23: Error while parsing number

grub> 

:?


Mr Green

Offline

#4 2006-08-25 13:00:17

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: lilo 2 grub

Please post your menu.lst

By the way... it's sda not sd(0)

And why you don't use the

grub-install

command?


Have you tried to turn it off and on again?

Offline

#5 2006-08-25 13:08:20

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: lilo 2 grub

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz]
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/hda1 vga=773 ro
initrd /boot/initrd26.img

got to change that I know .....

grub-install /dev/sda ?

 grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.

:cry:


Mr Green

Offline

#6 2006-08-25 13:12:14

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: lilo 2 grub

you have completly sata no ide?

Then must it be so

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz]
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 vga=773 ro
initrd /boot/initrd26.img

grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.

you must

grep -v rootfs /proc/mounts > /etc/mtab && grub-instal l/dev/sda

Edit: The grub  article in the wiki is strong outdated...


Have you tried to turn it off and on again?

Offline

#7 2006-08-25 13:25:13

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: lilo 2 grub

I have got an ide drive (second boot) ... primary is sata ...

 grep -v rootfs /proc/mounts > /etc/mtab && grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.

emm makes me think I am booting off ide drive again  :? 

had this problem before ...

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root             19686836   4721852  13964940  26% /
none                    517900         0    517900   0% /dev/shm
tmpfs                   517900         8    517892   1% /tmp
/dev/hda1             50000708  22101356  27899352  45% /media
/dev/sda1                93307     24577     63913  28% /boot
/dev/sda2              4917680   2208880   2458992  48% /var
/dev/sda4            215663968   3363756 201345088   2% /home
none                    517900         0    517900   0% /dev/shm
none                    517900         0    517900   0% /dev/shm
/dev/ipod             29165200   3633840  25531360  13% /mnt/ipod

Mr Green

Offline

#8 2006-08-25 13:28:49

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: lilo 2 grub

Have you set the boot flag to sda1?

Please post fdisk -l /dev/sda


Have you tried to turn it off and on again?

Offline

#9 2006-08-25 13:35:54

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: lilo 2 grub

 fdisk -l /dev/sda

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          12       96358+  83  Linux
/dev/sda2              13         634     4996215   83  Linux
/dev/sda3             635        3124    20000925   83  Linux
/dev/sda4            3125       30401   219102502+  83  Linux

Mr Green

Offline

#10 2006-08-25 13:38:26

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: lilo 2 grub

Have you set in the Bios the first boot device to the sata disk?

Edit:

Try this

# (0) Arch Linux
title Arch Linux [/boot/vmlinuz]
root (hd1,0)
kernel /boot/vmlinuz26 root=/dev/sda1 vga=773 ro
initrd /boot/initrd26.img


Have you tried to turn it off and on again?

Offline

#11 2006-08-25 13:43:49

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: lilo 2 grub

yes .... I have

but to check I will need to reboot (of course!)

goes

all I have in bios is boot hard drive ...

grub-install copies GRUB images into the DIR/boot directory specfied by
--root-directory, and uses the grub shell to install grub into the boot
sector.

Report bugs to <bug>.
[root@Arch kevin]# grub-install --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
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'.

(fd0)   /dev/fd0
(hd0)   /dev/hda
(hd1)   /dev/sda

grub-install --recheck sda


Mr Green

Offline

#12 2006-08-25 14:50:08

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: lilo 2 grub

Ok grub up & running but now I cannot boot into system as menu.lst is wrong ooops

Now in Knoppix going to try to fix it ....

:oops:

menu.lst

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz]
root   (hd1,0)
kernel /boot/vmlinuz26 root=/dev/sda3 vga=773 ro
initrd /boot/initrd26.img

looks ok ?


I'm back in lilo ... & Arch under chroot lilo complains sda is not first disc so maybe thats the problem..... could remove ide drive & try again


Mr Green

Offline

#13 2006-08-25 17:50:44

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: lilo 2 grub

Hm , which  drive is the sata disk?

what is /dev/root?

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root             19686836   4721852  13964940  26% /
none                    517900         0    517900   0% /dev/shm
tmpfs                   517900         8    517892   1% /tmp
/dev/hda1             50000708  22101356  27899352  45% /media
/dev/sda1                93307     24577     63913  28% /boot
/dev/sda2              4917680   2208880   2458992  48% /var
/dev/sda4            215663968   3363756 201345088   2% /home
none                    517900         0    517900   0% /dev/shm
none                    517900         0    517900   0% /dev/shm
/dev/ipod             29165200   3633840  25531360  13% /mnt/ipod

Look in menu.lst


# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz]
root   (hd1,0)
kernel /boot/vmlinuz26 root=/dev/sda3 vga=773 ro
initrd /boot/initrd26.img

root(0,0) = first device first partition
root(1,0) = second device first partition

and  root=/dev/sda3 is your root partition

I think you should read this:
http://www.gentoo.org/doc/en/handbook/h … ap=10#grub


Have you tried to turn it off and on again?

Offline

#14 2006-08-25 21:58:06

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: lilo 2 grub

fk wrote:

what is /dev/root?

Might be his root partition if he's been messing with the udev rules or something.

Offline

#15 2006-08-26 05:46:30

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: lilo 2 grub

thanks for all your help ...


df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda3     ext3     19G  4.6G   14G  26% /
none         tmpfs    506M     0  506M   0% /dev/shm
tmpfs        tmpfs    506M   72K  506M   1% /tmp
/dev/hda1 reiserfs     48G   22G   27G  45% /media
/dev/sda1     ext3     92M   25M   63M  28% /boot
/dev/sda2     ext3    4.7G  2.2G  2.4G  48% /var
/dev/sda4     ext3    206G  3.4G  192G   2% /home

that looks better

 fdisk -l

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          12       96358+  83  Linux
/dev/sda2              13         634     4996215   83  Linux
/dev/sda3             635        3124    20000925   83  Linux
/dev/sda4            3125       30401   219102502+  83  Linux

Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        6225    50002281   83  Linux
/dev/hda2            6226        9219    24049305   83  Linux
/dev/hda3            9873        9964      738990   82  Linux swap / Solaris
/dev/hda4            9220        9872     5245222+  83  Linux

Partition table entries are not in disk order

Not a problem .... I'll set up new box see what happens ... going to convert ide to sata ;-)


Mr Green

Offline

Board footer

Powered by FluxBB