topic title: Antix12 grub menu.lst
12 posts
• Page 1 of 1
-
Posts: 22
- Joined: 01 Mar 2010
#1
Hi everybody, after unsuccessfully trying to update from M11 to M12 ( viewtopic.php?f=16&t=3818 ), most probably because of my ignorance __{{emoticon}}__ . I decided to install AntiX.M12 on a new root partition (parallel to old root) on the same pc. Everything seemed to have worked fine, though asking the installer to install grub on PBR of the new root partition ended up in me not finding the new menu.lst entries I now want to feed to the old grub menu.lst in order to perform all transition steps (backing up old home's partition configs and so on), but I only can find a menu.lst.example file not helping me much . Could someone please post the standard entries for AntiX.M12 ? Thank you very much and againt very many thanks for the wonderful linux lessons I learn every day from AntiX .
-
Posts: 4,164
- Joined: 20 Feb 2009
#2
All I can do is post my test1 and test 2 64bit Menu.lst
2nd install of test 2 /bootgrub/menu.lst
1st aplha test 1 /boot/grub/menu.lst
Both are installed side by side on the same hardrive.
2nd install of test 2 /bootgrub/menu.lst
Code: Select all
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# Pretty colours
color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### 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=UUID=69f5ae2f-b286-455a-ab50-6440b01a21f4 ro
# kopt_2_6=root=UUID=69f5ae2f-b286-455a-ab50-6440b01a21f4 ro nosplash quiet
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,7)
## 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=(init-3) 3
## 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 3.6.6-antix.1-amd64-smp
root (hd1,7)
kernel /boot/vmlinuz-3.6.6-antix.1-amd64-smp root=UUID=69f5ae2f-b286-455a-ab50-6440b01a21f4 ro
initrd /boot/initrd.img-3.6.6-antix.1-amd64-smp
title Debian GNU/Linux, kernel 3.6.6-antix.1-amd64-smp (init-3)
root (hd1,7)
kernel /boot/vmlinuz-3.6.6-antix.1-amd64-smp root=UUID=69f5ae2f-b286-455a-ab50-6440b01a21f4 ro 3
initrd /boot/initrd.img-3.6.6-antix.1-amd64-smp
title Debian GNU/Linux, kernel memtest86+
root (hd1,7)
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
Code: Select all
imeout 10
color cyan/blue white/blue
foreground ffffff
background 0639a1
gfxmenu /boot/grub/message
title antiX at sdb7, kernel 3.6.0-antix.1-amd64-smp
kernel /boot/vmlinuz-3.6.0-antix.1-amd64-smp root=UUID=6439e2f7-c8a3-4ced-b422-0a29827738d4 nomce quiet nosplash init=/sbin/bootchartd
initrd /boot/initrd.img-3.6.0-antix.1-amd64-smp
boot
title Ubuntu, with Linux 2.6.32-44-generic
/bin/grep 'sdb' /mnt/antiX/boot/grub/device.mapkernel /boot/vmlinuz-2.6.32-44-generic root=UUID=676d70d7-1c41-449b-be0f-2e04df874d86 ro quiet splash
initrd /boot/initrd.img-2.6.32-44-generic
### 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=UUID=6439e2f7-c8a3-4ced-b422-0a29827738d4 ro
# kopt_2_6=root=UUID=6439e2f7-c8a3-4ced-b422-0a29827738d4 ro nosplash quiet
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,6)
## 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=(init-3) 3
## 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 3.6.4-gnu-antix.1-amd64-smp
root (hd1,6)
kernel /boot/vmlinuz-3.6.4-gnu-antix.1-amd64-smp root=UUID=6439e2f7-c8a3-4ced-b422-0a29827738d4 ro
initrd /boot/initrd.img-3.6.4-gnu-antix.1-amd64-smp
title Debian GNU/Linux, kernel 3.6.4-gnu-antix.1-amd64-smp (init-3)
root (hd1,6)
kernel /boot/vmlinuz-3.6.4-gnu-antix.1-amd64-smp root=UUID=6439e2f7-c8a3-4ced-b422-0a29827738d4 ro 3
initrd /boot/initrd.img-3.6.4-gnu-antix.1-amd64-smp
title Debian GNU/Linux, kernel 3.6.0-antix.1-amd64-smp
root (hd1,6)
kernel /boot/vmlinuz-3.6.0-antix.1-amd64-smp root=UUID=6439e2f7-c8a3-4ced-b422-0a29827738d4 ro
initrd /boot/initrd.img-3.6.0-antix.1-amd64-smp
title Debian GNU/Linux, kernel 3.6.0-antix.1-amd64-smp (init-3)
root (hd1,6)
kernel /boot/vmlinuz-3.6.0-antix.1-amd64-smp root=UUID=6439e2f7-c8a3-4ced-b422-0a29827738d4 ro 3
initrd /boot/initrd.img-3.6.0-antix.1-amd64-smp
title Debian GNU/Linux, kernel memtest86+
root (hd1,6)
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
-
Posts: 4
- Joined: 15 Nov 2012
#3
Elsewhere I posted my problem with grub and inability to boot after first install. After I fixed it I found (only after 2 days) that my Win XP partition can not booth. Grub help discovered a strange entry for Windows recovery and win XP partition. They were the same except for line" rootverify ,1 )"
*********
map (hd0)
map (hd0)
rootnoverify ,0)
chainloader +1
***********
I changed it to just
" root (hd0,0)
chainloader +1" and it worked. Later I dissabled boot from repair partition.Now I see in this example I must make partition active. Thanks. I just wanted to show what happened to me. Maybe somebody else will have a simmilar problem. ( Netbook Acer Aspire One)
*********
map (hd0)
map (hd0)
rootnoverify ,0)
chainloader +1
***********
I changed it to just
" root (hd0,0)
chainloader +1" and it worked. Later I dissabled boot from repair partition.Now I see in this example I must make partition active. Thanks. I just wanted to show what happened to me. Maybe somebody else will have a simmilar problem. ( Netbook Acer Aspire One)
-
Posts: 26
- Joined: 11 Mar 2012
#4
Yes, I had a similar issue with two different devices, one a laptop with Windows 7 and other distros on it as well as with a desktop PC with Windows XP and other distros on it. I could not find a resolution initially and then tried installing Linux Mint, including GRUB, and all was fine. Not sure what LM was doing that antiX was not at this point.
-
anticapitalista
Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
#5
The issue is due to the 'automatic' detection of existing OS. It doesn't work properly with antiX-12 series.
Trying to find a fix that will still keep grub-legacy rather than grub2.
Trying to find a fix that will still keep grub-legacy rather than grub2.
-
Posts: 26
- Joined: 11 Mar 2012
#6
Thank you for the update and confirmation, I am a antiX convert and would prefer to continue using it as my primary distro. It is fantastic.
-
Posts: 22
- Joined: 01 Mar 2010
#7
I think everybody for their support, but I still need the correct grub options (mainly kernel options) that are installed with the stock antix 3.5.0-antix.2-486-smp kernel on AntiXM.12 . Again sorry for your time. __{{emoticon}}__
-
Posts: 1,445
- Joined: 09 Feb 2012
#8
Found on usb pen after writing antiX-12-base-486.iso using unetbootin:
the loooooong menu (from syslinux.cfg) is displayed when I boot.
/boot/grub/menu.lst
/boot/isolinux/isolinux.cfg
/syslinux.cfg
the loooooong menu (from syslinux.cfg) is displayed when I boot.
/boot/grub/menu.lst
.default 0
timeout 10
color cyan/blue white/blue
foreground ffffff
background 003f7d
gfxmenu /boot/grub/message
## ISO boot
title antiX-base-686 (LiveUSB)
kernel /antiX/vmlinuz quiet lean noxorg vga=791
initrd /antiX/initrd.gz
## ISO boot
title antiX-base-686 (Home Persistence)
kernel /antiX/vmlinuz quiet lean noxorg vga=791 persist=home
initrd /antiX/initrd.gz
## ISO boot
title antiX-base-686 (Root Persistence)
kernel /antiX/vmlinuz quiet lean noxorg vga=791 persist
initrd /antiX/initrd.gz
title antiX-memtest (test system memory)
kernel /boot/memtest
/boot/isolinux/isolinux.cfg
.UI gfxboot bootlogo isolinux.msg
LABEL antiX-base-desktop
KERNEL /antiX/vmlinuz
APPEND quiet noxorg nomodeset nouveau.modeset=0 antiX=MLXD
INITRD /antiX/initrd.gz
LABEL antiX-fluxbox-no-icons
KERNEL /antiX/vmlinuz
APPEND quiet noxorg noRox nomodeset nouveau.modeset=0 antiX=MLXD
INITRD /antiX/initrd.gz
LABEL antiX-base-desktop-nouveau
KERNEL /antiX/vmlinuz
APPEND quiet noxorg antiX=MLXD
INITRD /antiX/initrd.gz
LABEL antiX-add-cheats-xorg
KERNEL /antiX/vmlinuz
INITRD /antiX/initrd.gz
LABEL antiX-cli-install
KERNEL /antiX/vmlinuz
APPEND quiet noxorg antiX=MLXD nomodeset nouveau.modeset=0 3
INITRD /antiX/initrd.gz
LABEL antiX-home-persist
KERNEL /antiX/vmlinuz
APPEND quiet noxorg nomodeset nouveau.modeset=0 antiX=MLXD persist=home
INITRD /antiX/initrd.gz
LABEL antiX-root-persist
KERNEL /antiX/vmlinuz
APPEND quiet noxorg nomodeset nouveau.modeset=0 antiX=MLXD persist
INITRD /antiX/initrd.gz
LABEL Boot_from_Hard_Disk
localboot 0x80
LABEL Memory_test_(memtest86+)
KERNEL /boot/memtest
/syslinux.cfg
.default menu.c32
prompt 0
menu title UNetbootin
timeout 100
label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit quiet noxorg nomodeset nouveau.modeset=0 antiX=MLXD
label ubnentry0
menu label antiX-base-686 (LiveUSB)
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet lean noxorg vga=791
label ubnentry1
menu label antiX-base-686 (Home Persistence)
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet lean noxorg vga=791 persist=home
label ubnentry2
menu label antiX-base-686 (Root Persistence)
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet lean noxorg vga=791 persist
label ubnentry3
menu label antiX-memtest (test system memory)
kernel /boot/memtest
append initrd=/ubninit
label ubnentry4
menu label antiX-base-desktop
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet noxorg nomodeset nouveau.modeset=0 antiX=MLXD
label ubnentry5
menu label antiX-fluxbox-no-icons
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet noxorg noRox nomodeset nouveau.modeset=0 antiX=MLXD
label ubnentry6
menu label antiX-base-desktop-nouveau
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet noxorg antiX=MLXD
label ubnentry7
menu label antiX-add-cheats-xorg
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz
label ubnentry8
menu label antiX-cli-install
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet noxorg antiX=MLXD nomodeset nouveau.modeset=0 3
label ubnentry9
menu label antiX-home-persist
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet noxorg nomodeset nouveau.modeset=0 antiX=MLXD persist=home
label ubnentry10
menu label antiX-root-persist
kernel /antiX/vmlinuz
append initrd=/antiX/initrd.gz quiet noxorg nomodeset nouveau.modeset=0 antiX=MLXD persist
label ubnentry11
menu label Memory_test_(memtest86+)
kernel /boot/memtest
append initrd=/ubninit
-
Posts: 22
- Joined: 01 Mar 2010
#9
Here! I installed AntiX.M12 on a virtual machine and now, just for my vm, the standard grub menu.lst entry:
title antiX at sda1, kernel 3.5.0-antix.2-486-smp
kernel /boot/vmlinuz-3.5.0-antix.2-486-smp root=/dev/sda1 nomce quiet nosplash nouveau.modeset=0 vga=791
initrd /boot/initrd.img-3.5.0-antix.2-486-smp
boot
title antiX at sda1, kernel 3.5.0-antix.2-486-smp
kernel /boot/vmlinuz-3.5.0-antix.2-486-smp root=/dev/sda1 nomce quiet nosplash nouveau.modeset=0 vga=791
initrd /boot/initrd.img-3.5.0-antix.2-486-smp
boot
-
anticapitalista
Posts: 5,956
- Site Admin
- Joined: 11 Sep 2007
#10
LOL! You found it yourself!
-
Posts: 26
- Joined: 11 Mar 2012
#11
Anti,
I was wondering if there had been any further developments on the grub issue you referenced in this thread / post with antix12. I figured I would double check before proceeding with the installation on some additional dual boot devices.
Thanks.
I was wondering if there had been any further developments on the grub issue you referenced in this thread / post with antix12. I figured I would double check before proceeding with the installation on some additional dual boot devices.
Thanks.
-
Posts: 4
- Joined: 25 Feb 2013
#12
FWIW while we keep grub legacy can I make the following suggestion
open a root terminal or open a terminal and sudo su or whatever to get root.
I assume you still have bash-completion to press TAB key to autocomplete vm or init entries
For each kernel upgrade try.
discover your kernels with ls vm* or initrds with ls init*
(b) Then your menu never changes...will I don't mean never I don't use your kernel but it looks like this for proof of concept
root=LABEL=partone
where you have used root powers to create such label with # e2label /dev/sda1 partone
2) Better still use smxi to remove old kernels and their directories after rebooting into new one.
That way bash-completion autocompletes the line as it finds only one entry.
open a root terminal or open a terminal and sudo su or whatever to get root.
I assume you still have bash-completion to press TAB key to autocomplete vm or init entries
For each kernel upgrade try.
Code: Select all
# cd /boot
ls -al (if single kernel names or initrds found then)
rm -rf vmlinuz initrd
ln -s vmlinuz-latest-version vmlinuz
ln -s initrd.img-latest initrd.img
(b) Then your menu never changes...will I don't mean never I don't use your kernel but it looks like this for proof of concept
Better still use e2label to create labels and convert from /dev/sda1 totimeout 5
default 0
color cyan/blue white/blue
foreground ffffff
background 0639a1
title liq
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 quiet nouveau.modeset=0 nomodeset
initrd /boot/initrd.img
title single
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 quiet nouveau.modeset=0 nomodeset single
initrd /boot/initrd.img
root=LABEL=partone
where you have used root powers to create such label with # e2label /dev/sda1 partone
2) Better still use smxi to remove old kernels and their directories after rebooting into new one.
That way bash-completion autocompletes the line as it finds only one entry.