4 - GRUB legacy boots Oneiric - resume OK.txt uname -a Linux moi-Amilo-M7405 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:25:36 UTC 2011 i686 i686 i386 GNU/Linux (just vérified the important thing : resume WORKS in Oneiric !!!!!!!: from pm-suspend.log /usr/lib/pm-utils/sleep.d/000kernel-change resume suspend: success. Wed Nov 23 11:00:59 CET 2011: Finished.) moi@moi-Amilo-M7405:~$ /usr/sbin/grub-probe -t device //dev/sda1 moi@moi-Amilo-M7405:~$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=5f0839d7-7b2f-41d3-a635-927a7861308d none swap sw 0 0 moi@moi-Amilo-M7405:~$ sudo blkid [sudo] password for moi: /dev/sda1: UUID="d1565e0c-2dcb-4ebf-8326-0a28127b78f0" TYPE="ext4" /dev/sda5: UUID="5f0839d7-7b2f-41d3-a635-927a7861308d" TYPE="swap" /dev/sda6: UUID="78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa" SEC_TYPE="ext2" TYPE="ext3" /dev/sda7: UUID="cc611fc4-d6fb-4634-9f91-a695e1af737e" TYPE="swap" moi@moi-Amilo-M7405:~$ cat /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi set default="0" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi } function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root d1565e0c-2dcb-4ebf-8326-0a28127b78f0 if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=auto load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root d1565e0c-2dcb-4ebf-8326-0a28127b78f0 set locale_dir=($root)/boot/grub/locale set lang=fr_FR insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ]; then set timeout=-1 else set timeout=3 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/light-gray if background_color 44,0,30; then clear fi ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### if [ ${recordfail} != 1 ]; then if [ -e ${prefix}/gfxblacklist.txt ]; then if hwmatch ${prefix}/gfxblacklist.txt 3; then if [ ${match} = 0 ]; then set linux_gfx_mode=keep else set linux_gfx_mode=text fi else set linux_gfx_mode=text fi else set linux_gfx_mode=keep fi else set linux_gfx_mode=text fi export linux_gfx_mode if [ "$linux_gfx_mode" != "text" ]; then load_video; fi menuentry 'Ubuntu, avec Linux 3.0.0-13-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root d1565e0c-2dcb-4ebf-8326-0a28127b78f0 linux /boot/vmlinuz-3.0.0-13-generic root=UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 ro initrd /boot/initrd.img-3.0.0-13-generic } menuentry 'Ubuntu, avec Linux 3.0.0-13-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root d1565e0c-2dcb-4ebf-8326-0a28127b78f0 echo 'Chargement de Linux 3.0.0-13-generic ...' linux /boot/vmlinuz-3.0.0-13-generic root=UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 ro recovery nomodeset echo 'Chargement du disque mémoire initial ...' initrd /boot/initrd.img-3.0.0-13-generic } menuentry 'Ubuntu, avec Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail set gfxpayload=$linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root d1565e0c-2dcb-4ebf-8326-0a28127b78f0 linux /boot/vmlinuz-3.0.0-12-generic root=UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 ro initrd /boot/initrd.img-3.0.0-12-generic } menuentry 'Ubuntu, avec Linux 3.0.0-12-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root d1565e0c-2dcb-4ebf-8326-0a28127b78f0 echo 'Chargement de Linux 3.0.0-12-generic ...' linux /boot/vmlinuz-3.0.0-12-generic root=UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 ro recovery nomodeset echo 'Chargement du disque mémoire initial ...' initrd /boot/initrd.img-3.0.0-12-generic } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root d1565e0c-2dcb-4ebf-8326-0a28127b78f0 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root d1565e0c-2dcb-4ebf-8326-0a28127b78f0 linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Ubuntu 9.04, kernel 2.6.28-11-generic (on /dev/sda6)" --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa linux /boot/vmlinuz-2.6.28-11-generic root=UUID=78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa ro quiet splash initrd /boot/initrd.img-2.6.28-11-generic } menuentry "Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode) (on /dev/sda6)" --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa linux /boot/vmlinuz-2.6.28-11-generic root=UUID=78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa ro single initrd /boot/initrd.img-2.6.28-11-generic } menuentry "Ubuntu 9.04, memtest86+ (on /dev/sda6)" --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa linux /boot/memtest86+.bin } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### moi@moi-Amilo-M7405:~$ cat /boot/grub/device.map cat: /boot/grub/device.map: Aucun fichier ou dossier de ce type moi@moi-Amilo-M7405:~$ cat /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT= GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=3 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT= GRUB_CMDLINE_LINUX= # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" moi@moi-Amilo-M7405:~$ mount Jaunty FS wth nautilus mount : seul le superutilisateur peut exécuter cette commande moi@moi-Amilo-M7405:~$ cat /media/78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa/boot/grub/menu.lst # 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-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 use 'savedefault' 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 10 ## hiddenmenu # Hides the menu by default (press ESC to see the menu) #hiddenmenu # 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=78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa ro ## default grub root device ## e.g. groot=(hd0,0) # groot=78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa ## 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=all ## 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-11-generic uuid 78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa ro quiet splash initrd /boot/initrd.img-2.6.28-11-generic quiet title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode) uuid 78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa ro single initrd /boot/initrd.img-2.6.28-11-generic title Ubuntu 9.04, memtest86+ uuid 78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa kernel /boot/memtest86+.bin quiet ### END DEBIAN AUTOMAGIC KERNELS LIST # This is a divider, added to separate the menu items below from the Debian # ones. title Other operating systems: root # This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda1. title 'Ubuntu, avec Linux 3.0.0-13-generic' --class ubuntu --class gnu-linux --class gnu --class os { (on /dev/sda1) root (hd0,0) kernel /boot/vmlinuz-3.0.0-13-generic root=UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 ro initrd /boot/initrd.img-3.0.0-13-generic savedefault boot # This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda1. title 'Ubuntu, avec Linux 3.0.0-13-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os { (on /dev/sda1) root (hd0,0) kernel /boot/vmlinuz-3.0.0-13-generic root=UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 ro recovery nomodeset initrd /boot/initrd.img-3.0.0-13-generic savedefault boot # This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda1. title 'Ubuntu, avec Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os { (on /dev/sda1) root (hd0,0) kernel /boot/vmlinuz-3.0.0-12-generic root=UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 ro initrd /boot/initrd.img-3.0.0-12-generic savedefault boot # This entry automatically added by the Debian installer for an existing # linux installation on /dev/sda1. title 'Ubuntu, avec Linux 3.0.0-12-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os { (on /dev/sda1) root (hd0,0) kernel /boot/vmlinuz-3.0.0-12-generic root=UUID=d1565e0c-2dcb-4ebf-8326-0a28127b78f0 ro recovery nomodeset initrd /boot/initrd.img-3.0.0-12-generic savedefault boot moi@moi-Amilo-M7405:~$ /usr/sbin/grub-probe -t device / /dev/sda1 moi@moi-Amilo-M7405:~$ cat /etc/initramfs-tools/conf.d/resume RESUME=UUID=5f0839d7-7b2f-41d3-a635-927a7861308d moi@moi-Amilo-M7405:~$ cat /media/78e4a6bf-ecb4-40c6-b822-0ebd3567cdaa/etc/initramfs-tools/conf.d/resume RESUME=UUID=cc611fc4-d6fb-4634-9f91-a695e1af737e moi@moi-Amilo-M7405:~$ et voilà ????? could it be GRUB passing different parameter to the same kernel wether it is GRUB1 or GRUB2 ????