Posts: 903
plvera
Joined: 11 Oct 2008
#1
I have 2 hard drives. I installed 8.5-beta3 in my second drive (hda) which has 2 partitions. Because I was concerned that installing grub from my 8.5-beta3 test would mess up my current grub, I skipped that part. So now I need to update my grub list so that it picks up the antix-8.5-beta3 install.

Oddly, pcmanfm sees that particular partition as /media/disk.

Here's the output of fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b4e0f

Device Boot Start End Blocks Id System
/dev/hda1 1 8425 67673781 83 Linux
/dev/hda2 8426 9729 10474380 83 Linux

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

Device Boot Start End Blocks Id System
/dev/hdb1 1 1401 11253501 83 Linux
/dev/hdb2 1402 1545 1156680 82 Linux swap / Solaris
/dev/hdb3 1546 19457 143878140 5 Extended
/dev/hdb5 1546 19457 143878108+ 83 Linux

The new antix test install is in hda2. directory structure looks ok.

Any suggestions?

thanks
Pedro
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Post the menu.lst from hdb
Posts: 903
plvera
Joined: 11 Oct 2008
#3
Note that there was sidux installation in hda1 before, but I did away with that. The last entry is my attempt to get antix8.5 to boot up.

Here it is:

timeout 15
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title antiX at hdb1, kernel 2.6.27-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.27-1-mepis-smp root=/dev/hdb1 nomce quiet nosplash vga=791 resume=/dev/hdb2
initrd /boot/initrd.img-2.6.27-1-mepis-smp
boot

title Debian GNU/Linux, kernel 2.6.28-5.slh.3-sidux-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-5.slh.3-sidux-686 root=UUID=45cf5ab8-fa30-4b50-a84c-faefd5119b33 ro quiet vga=791
initrd /boot/initrd.img-2.6.28-5.slh.3-sidux-686

title MEMTEST
kernel /boot/memtest86+.bin

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hdb1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.27-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.27-1-mepis-smp root=/dev/hdb1 ro
initrd /boot/initrd.img-2.6.27-1-mepis-smp

title Debian GNU/Linux, kernel 2.6.27-1-mepis-smp (single-user mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.27-1-mepis-smp root=/dev/hdb1 ro single
initrd /boot/initrd.img-2.6.27-1-mepis-smp

title Debian GNU/Linux, kernel memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

title antiX-8.5

root (hd0,0)
kernel /boot/vmlinuz-2.6.27-1-mepis-smp root=/dev/hdb1 nomce quiet nosplash vga=791 resume=/dev/hdb2
initrd /boot/initrd.img-2.6.27-1-mepis-smp
boot


thanks
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#4
Your"second" drive is hda???? that should be your first drive. No.

You could have just installed grub to /root then copied the few lines from it and added them to the menu.lst you are using.
Posts: 903
plvera
Joined: 11 Oct 2008
#5
it's complicated. My original drive with this sytem is hda, but I installed a second hd which is bigger and I wanted it to be my primary hardrive, that's hdb, and that's where I have my regular antix running.

I didnt think of the option of copying grub to root. Since I wasn't sure what all the options would do I was mostly concerned about hosing up my regular antix.

thanks.
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#6
Installing grub to root will not touch your default installation at all. Your default grub will not see the new install until you intervene by either adding a new line or reinstalling grub. Reinstalling grub should pick up all installs and add them to the menu.lst.
Posts: 903
plvera
Joined: 11 Oct 2008
#7
sounds like a plan. Should I reinstall grub from the live-cd then?

thanks.
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#8
You could use the mepis utilities on the live disc, they should work fine.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#9
You can boot the live cd and use the Mepis System tool to install grub to the / partition of your beta3 installation then copy the menu.lst entry to your main menu.lst.
That would be the easiest way that i know. As a side note, an advantage of grub2 is that it picks automatically any grub-legacy, grub or lilo installation.