Codice: Seleziona tutto
default 0
timeout 10
### 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=ac4576e8-1f11-423a-b501-c2983865ab0e ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=ac4576e8-1f11-423a-b501-c2983865ab0e
## 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=quiet splash
## 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=(recovery) single
# altoptions=(recovery 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=1
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## 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 Ubuntu 9.04, kernel 2.6.28-12-generic
kernel /boot/vmlinuz-2.6.28-12-generic root=UUID=ac4576e8-1f11-423a-b501-c2983865ab0e ro quiet splash
initrd /boot/initrd.img-2.6.28-12-generic
title Ubuntu 9.04, kernel 2.6.28-12-generic (recovery mode)
kernel /boot/vmlinuz-2.6.28-12-generic root=UUID=ac4576e8-1f11-423a-b501-c2983865ab0e ro single
initrd /boot/initrd.img-2.6.28-12-generic
title Ubuntu 9.04, memtest86+
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
title Other operating systems:
root
title Windows XP Professional x64 Edition
root (hd0,0)
chainloader +1
savedefault
makeactive
title Sabayon 4.1 x86_64
root (hd0,6)
kernel /boot/kernel-genkernel-x86_64-2.6.29-sabayon ro
initrd /boot/initramfs-genkernel-x86_64-2.6.29-sabayon
chainloader +1
savedefault
makeactive
Codice: Seleziona tutto
ru@ru-desktop:~$ sudo fdisk -l
Disco /dev/sda: 160.0 GB, 160041885696 byte
255 testine, 63 settori/tracce, 19457 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x11ae11ae
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 1 3187 25599546 7 HPFS/NTFS
/dev/sda2 3188 19160 128303122+ 5 Esteso
/dev/sda3 19161 19457 2385652+ 82 Linux swap / Solaris
/dev/sda5 3188 3735 4401778+ 7 HPFS/NTFS
/dev/sda6 3736 15335 93176968+ 83 Linux
/dev/sda7 15336 19160 30724281 83 Linux
ru@ru-desktop:~$ sudo /boot/grub/menu.lst
sudo: /boot/grub/menu.lst: command not found
ru@ru-desktop:~$ sudo gedit /boot/grub/menu.lst
ru@ru-desktop:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /boot/grub/stage1
find /boot/grub/stage1
(hd0,5)
(hd0,6)
grub> quit
quit
ru@ru-desktop:~$
