Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 04/09/2011, à 11:41

insitu

Installer ubuntu 11.04 depuis wubi vers une partition

Bonjour,
J'ai installé Ubuntu 11.04 en utilisant Wubi, donc sur une partition Ntfs contenant Windows XP. Je ne connaissais pas ce mode d'installation... J'avais déjà installé ubuntu (8.04) sur une autre partition avec boot sur le MBR, mais j'ai foiré la mise à niveau et la partition est devenue inutilisable (c'est un autre problème...).

Désormais, quand je boot, j'ai 3 étapes de sélection  d'un OS, ce qui est assez peu pratique:
- étape 1: ancien grub sur le MBR -> choix entre ubuntu 8.04 et win XP
- étape 2: dual-boot win XP/Ubuntu sur /dev/sda1 (cela ressebmle à un utilitaire DOS donc j'imagine que c'est le résultat de l'installation wubi)
- étape 3: grub sur l'ubuntu dans windows (ouf !)

Je voudrais retrouver une configuration un peu plus saine et tout simplement réinstaller ubuntu sur la partition linux d'origine et pouvoir booter sur XP ou ubuntu en une seule étape. Petit problème: je n'ai pas de CD et je n'arrive pas à booter sur un device USB (j'ai tripoté le BIOS mais sans succès), donc il faudrait que l'installe se fasse depuis un ubuntu déjà lancé. Cela me parait assez simple et basique mais je n'arrive pas à trouver de tutoriel sur ce point.

Merci d'avance pour votre aide,

Arnaud

PS: ci-joint le reésultat de boot_info_script.sh.

                  Boot Info Script 0.60    from 17 May 2011


============================= Boot Info Summary: ===============================

 => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the 
    same drive in partition #2 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows XP
    Boot sector info:   No errors found in the Boot Parameter Block.
    Operating System:  Windows XP
    Boot files:        /boot.ini /ntldr /NTDETECT.COM /wubildr 
                       /ubuntu/winboot/wubildr /wubildr.mbr 
                       /ubuntu/winboot/wubildr.mbr /ubuntu/disks/root.disk 
                       /ubuntu/disks/swap.disk

sda1/Wubi: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 11.04
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda2: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 10.04.3 LTS
    Boot files:        /boot/grub/menu.lst /etc/fstab

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info:  

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:  

sda6: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info:  
    Operating System:  
    Boot files:        

sda7: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info:  
    Operating System:  
    Boot files:        

sda8: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info:  
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info:  
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disque /dev/sda: 82.0 Go, 81964302336 octets
255 têtes, 63 secteurs/piste, 9964 cylindres, total 160086528 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *             63    30,716,279    30,716,217   7 NTFS / exFAT / HPFS
/dev/sda2          30,716,280    69,786,359    39,070,080  83 Linux
/dev/sda3          89,321,400   160,071,659    70,750,260   5 Extended
/dev/sda5         154,754,208   160,071,659     5,317,452  82 Linux swap / Solaris
/dev/sda6          89,321,526    97,916,174     8,594,649  83 Linux
/dev/sda7          97,916,238   136,986,254    39,070,017  83 Linux
/dev/sda8         136,986,318   154,754,144    17,767,827  83 Linux
/dev/sda4          69,786,360    89,321,399    19,535,040  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0       9fa5de79-83a7-4456-93a0-2b8f04754543   ext4       
/dev/sda1        6270D99070D96AF5                       ntfs       
/dev/sda2        7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183   ext3       
/dev/sda4        7238a919-0782-4fed-9b18-555a928eb0b3   ext3       /home
/dev/sda5        20a0a769-de8a-4b6d-ab93-749dccf89f64   swap       
/dev/sda6        db9936ee-8c4d-49e5-8fa1-4a7f81ed2b8c   ext3       
/dev/sda7        e3d983f7-d74a-4482-9668-888c21fb0512   ext3       
/dev/sda8        c4ed604b-f6d9-46d4-a3ca-12af7ee0bada   ext3       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/loop0       /                        ext4       (rw,errors=remount-ro,commit=0)
/dev/sda1        /host                    fuseblk    (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)


================================ sda1/boot.ini: ================================

--------------------------------------------------------------------------------
[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect

C:\wubildr.mbr = "Ubuntu"

--------------------------------------------------------------------------------

======================== sda1/Wubi/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 {
true
}

insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 6270D99070D96AF5
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
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 ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.38-8-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 6270D99070D96AF5
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=6270D99070D96AF5 loop=/ubuntu/disks/root.disk ro   quiet splash
    initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry "Ubuntu, Linux 2.6.38-8-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 6270D99070D96AF5
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=6270D99070D96AF5 loop=/ubuntu/disks/root.disk ro single 
    initrd /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professionnel (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 6270D99070D96AF5
    drivemap -s (hd0) ${root}
    chainloader +1
}
menuentry "Ubuntu 8.04.1, kernel 2.6.24-21-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    linux /boot/vmlinuz-2.6.24-21-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro quiet splash
    initrd /boot/initrd.img-2.6.24-21-generic
}
menuentry "Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    linux /boot/vmlinuz-2.6.24-21-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro single
    initrd /boot/initrd.img-2.6.24-21-generic
}
menuentry "Ubuntu 8.04.1, kernel 2.6.24-19-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    linux /boot/vmlinuz-2.6.24-19-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro quiet splash
    initrd /boot/initrd.img-2.6.24-19-generic
}
menuentry "Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    linux /boot/vmlinuz-2.6.24-19-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro single
    initrd /boot/initrd.img-2.6.24-19-generic
}
menuentry "Ubuntu 8.04.1, kernel 2.6.22-14-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    linux /boot/vmlinuz-2.6.22-14-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
}
menuentry "Ubuntu 8.04.1, kernel 2.6.22-14-generic (recovery mode) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    linux /boot/vmlinuz-2.6.22-14-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro single
    initrd /boot/initrd.img-2.6.22-14-generic
}
menuentry "Ubuntu 8.04.1, kernel 2.6.20-16-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    linux /boot/vmlinuz-2.6.20-16-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro quiet splash
    initrd /boot/initrd.img-2.6.20-16-generic
}
menuentry "Ubuntu 8.04.1, kernel 2.6.20-16-generic (recovery mode) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    linux /boot/vmlinuz-2.6.20-16-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro single
    initrd /boot/initrd.img-2.6.20-16-generic
}
menuentry "Ubuntu 8.04.1, memtest86+ (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183
    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 ###
--------------------------------------------------------------------------------

============================= sda1/Wubi/etc/fstab: =============================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/host/ubuntu/disks/root.disk /               ext4    loop,errors=remount-ro 0       1
/host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0
--------------------------------------------------------------------------------

================= sda1/Wubi: Location of files loaded by Grub: =================

           GiB - GB             File                                 Fragment(s)

   2.393089294 = 2.569560064    boot/grub/grub.cfg                             1
   1.926296234 = 2.068344832    boot/initrd.img-2.6.38-8-generic               1
   1.228515625 = 1.319108608    boot/vmlinuz-2.6.38-8-generic                  2
   1.926296234 = 2.068344832    initrd.img                                     1
   1.228515625 = 1.319108608    vmlinuz                                        2

=========================== sda2/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 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        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=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

## 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

## 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 8.04.1, kernel 2.6.24-21-generic
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.24-21-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro quiet splash
initrd        /boot/initrd.img-2.6.24-21-generic
quiet

title        Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.24-21-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro single
initrd        /boot/initrd.img-2.6.24-21-generic

title        Ubuntu 8.04.1, kernel 2.6.24-19-generic
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.24-19-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro quiet splash
initrd        /boot/initrd.img-2.6.24-19-generic
quiet

title        Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.24-19-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro single
initrd        /boot/initrd.img-2.6.24-19-generic

title        Ubuntu 8.04.1, kernel 2.6.22-14-generic
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro quiet splash
initrd        /boot/initrd.img-2.6.22-14-generic
quiet

title        Ubuntu 8.04.1, kernel 2.6.22-14-generic (recovery mode)
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro single
initrd        /boot/initrd.img-2.6.22-14-generic

title        Ubuntu 8.04.1, kernel 2.6.20-16-generic
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro quiet splash
initrd        /boot/initrd.img-2.6.20-16-generic
quiet

title        Ubuntu 8.04.1, kernel 2.6.20-16-generic (recovery mode)
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 ro single
initrd        /boot/initrd.img-2.6.20-16-generic

title        Ubuntu 8.04.1, memtest86+
root        (hd0,1)
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 a non-linux OS
# on /dev/hdc1
title        Microsoft Windows XP Professionnel
root        (hd0,0)
savedefault
makeactive
chainloader    +1

--------------------------------------------------------------------------------

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hdc2
UUID=7fab4fc1-e1b4-4ba6-b1d8-1982c8bda183 /               ext3    defaults,errors=remount-ro 0       1
# /dev/hdc4
UUID=7238a919-0782-4fed-9b18-555a928eb0b3 /home           ext3    defaults        0       2
# /dev/hdc1
UUID=6270D99070D96AF5 /media/hdc1     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
# /dev/hdc6
UUID=db9936ee-8c4d-49e5-8fa1-4a7f81ed2b8c /media/hdc6     ext3    defaults        0       2
# /dev/hdc7
UUID=e3d983f7-d74a-4482-9668-888c21fb0512 /usr            ext3    defaults        0       2
# /dev/hdc8
UUID=c4ed604b-f6d9-46d4-a3ca-12af7ee0bada /var            ext3    defaults        0       2
# /dev/hdc5
UUID=20a0a769-de8a-4b6d-ab93-749dccf89f64 none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
proc /var/sandbox/benefit/proc proc none 0 0
--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

  23.102935791 = 24.806588416   boot/grub/menu.lst                             1
  23.023719788 = 24.721530880   boot/grub/stage2                               2
  24.294349670 = 26.085859328   boot/initrd.img-2.6.20-16-generic              8
  23.098705292 = 24.802045952   boot/initrd.img-2.6.20-16-generic.bak          3
  25.427112579 = 27.302154240   boot/initrd.img-2.6.22-14-generic             106
  25.370300293 = 27.241152512   boot/initrd.img-2.6.22-14-generic.bak          6
  23.130809784 = 24.836517888   boot/initrd.img-2.6.24-19-generic              6
  25.449459076 = 27.326148608   boot/initrd.img-2.6.24-19-generic.bak         28
  26.995712280 = 28.986425344   boot/initrd.img-2.6.24-21-generic             32
  27.605533600 = 29.641216000   boot/initrd.img-2.6.24-21-generic.bak         10
  29.331863403 = 31.494848512   boot/vmlinuz-2.6.20-16-generic                 2
  23.480430603 = 25.211920384   boot/vmlinuz-2.6.22-14-generic                 8
  25.696727753 = 27.591651328   boot/vmlinuz-2.6.24-19-generic                 4
  23.125030518 = 24.830312448   boot/vmlinuz-2.6.24-21-generic                 3
  26.995712280 = 28.986425344   initrd.img                                    32
  23.130809784 = 24.836517888   initrd.img.old                                 6
  23.125030518 = 24.830312448   vmlinuz                                        3
  25.696727753 = 27.591651328   vmlinuz.old                                    4

Hors ligne

#2 Le 04/09/2011, à 12:50

pappou640

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Bonjour
Disque /dev/sda: 82.0 Go, il va falior mettre de l'ordre dans tout ça.

Disque /dev/sda:[b] 82.0 Go[/b], 81964302336 octets
255 têtes, 63 secteurs/piste, 9964 cylindres, total 160086528 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *             63    30,716,279    30,716,217   7 NTFS / exFAT / HPFS
/dev/sda2          30,716,280    69,786,359    39,070,080  83 Linux
/dev/sda3          89,321,400   160,071,659    70,750,260   5 Extended
/dev/sda5         154,754,208   160,071,659     5,317,452  82 Linux swap / Solaris
/dev/sda6          89,321,526    97,916,174     8,594,649  83 Linux
/dev/sda7          97,916,238   136,986,254    39,070,017  83 Linux
/dev/sda8         136,986,318   154,754,144    17,767,827  83 Linux
/dev/sda4          69,786,360    89,321,399    19,535,040  83 Linux

Donne nous le type d'ordinateur ,et ta façon d"installer , car tu peux récupérer les anciennes partitions pour faire une installation correcte et qui marchera bien.

Si tu as un disque dur usb sauvegarde tes données personnelle en première opération ,

Ensuite comment as tu monté Ubuntu si tu n'a pas de Cd-live Ubuntu


Ordi:Dell reco Win10 Ubuntu 20.04/Linux Hybryde13.10/Emabuntu deb 3.  http://voyagerlive.org/    Essentiel=> [Accueil Ubuntu=>url=https://doc.ubuntu-fr.org/
Penses à passer ton sujet en  [Résolu] en éditant le titre de ton 1er post (message)

Hors ligne

#3 Le 04/09/2011, à 13:02

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

C'est une machine assez ancienne, oui. Pour l'installation d'ubuntu avec Wubi, j'ai juste monté un disque dur USB et démarrer l'installeur. Je n'ai pas de CD parce que je n'ai pas de nappe IDE en rab', et du coup c'est un peu pénible, mais bon, je devrais pouvoir lancer l'installeur d'ubuntu depuis ubuntu non ? Et lui indiquer la partition root en utlisant un partitionnement manuel.

Merci
Arnaud

Hors ligne

#4 Le 04/09/2011, à 13:11

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

insitu a écrit :

mais bon, je devrais pouvoir lancer l'installeur d'ubuntu depuis ubuntu non ?

Pour installer Ubuntu sur un disque dur, ça ne peut pas se faire depuis un Ubuntu installé par Wubi sur ce même disque dur, ni même par une autre installation de Ubuntu sur ce même disque dur : il faut que le Ubuntu "installateur" soit sur un autre lecteur que le disque dur destinataire de l'install. Sinon, l'installateur va bloquer à l'étape du partitionnement. Cet autre lecteur, ça peut être un lecteur de CD avec le live-CD Ubuntu, une clé live-USB Ubuntu, un disque dur externe ou un deuxième disque dur interne sur lequel tu as installé un Ubuntu par un autre moyen.

Dernière modification par malbo (Le 04/09/2011, à 13:13)

Hors ligne

#5 Le 04/09/2011, à 14:28

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Ah. La source et la cible doivent être deux périphériques physiquement différents, c'est ça ? Ca ne marche pas si ce sont deux *partitions* d'un même périphérique ? Je suis obligé de passer par l'étape du partitionnement ? Je ne peux pas demander à installer un système / puis configurer à la main le boot ? Ca me parait assez étrange... Quelle en est la raison ?

Merci,
Arnaud

Hors ligne

#6 Le 04/09/2011, à 16:12

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

A l'étape de partitionnement, l'installateur de Ubuntu exige que toutes les partitions du disque dur soient démontées. A partir du moment où tu es en train de faire tourner un Ubuntu qui se trouve sur une autre partition du même disque dur, cette dernière partition ne peut pas être démontée et l'installateur de Ubuntu refuse de bosser.

Dernière modification par malbo (Le 04/09/2011, à 16:12)

Hors ligne

#7 Le 04/09/2011, à 16:42

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Oui, je comprends. Mais si je suis content avec les partitions que j'ai actuellement, est-il possible de passer cette étape lors de l'installation ? Si mes souvenirs sont bons, c'était possible dans d'anciennes versions : je pouvais demander à passer l'étape de partitionnement et manuellement assigner les partitions au système.

Hors ligne

#8 Le 04/09/2011, à 16:55

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Ta mémoire doit te faire défaut : tu devais utiliser un live-CD Ubuntu ou une clé live-USB Ubuntu à l'époque.

Hors ligne

#9 Le 04/09/2011, à 17:07

Babdu89

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Bonjour...
Si je peu me permettre...

@ malbo ...
On peut installé un Ubuntu ,depuis une session  installée (partition ext* et swap) sur un media, sur un autre média ,sans passer par une iso?....
Je n'ai jamais essayé cela, Ça marche....

Edit ,pas vu ton post ,merci ça m'étonnait ça...

@+.  Babdu89

Dernière modification par Babdu89 (Le 04/09/2011, à 17:08)


J'ai découvert Ubuntu avec la 07.10.... Et alors?!...  Depuis je regarde de temps en temps si Windows marche toujours....

Hors ligne

#10 Le 04/09/2011, à 17:11

Babdu89

Re : Installer ubuntu 11.04 depuis wubi vers une partition

insitu ,dit qu'il n'a pas de cd ...
Pas grave si il a un graveur qui marche ,il en refais un...


J'ai découvert Ubuntu avec la 07.10.... Et alors?!...  Depuis je regarde de temps en temps si Windows marche toujours....

Hors ligne

#11 Le 04/09/2011, à 18:30

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

@Babdu89 J'ai utilisé un raccourci. Quand je dis que je n'ai pas de CD, je veux dire que je n'ai pas de "lecteur CD".

@malbo C'est ça quand on prend de l'âge... "La vieillesse est un naufrage" disait l'autre. Bon, je crois que je vais essayer de booter l'USB ou de trouver une nappe IDE pour raccorder le lecteur CD. Ca m'agaçe un peu quand même cette histoire. Je ne vois pas de raison logique pour laquelle ce ne serait pas possible : j'arrives bien à construire une image de distribution complète pour faire une machine virtuelle, il ne doit pas manquer grand'chose pour construire un bootloader.

En tout cas merci. Si je trouves quelque chose, je le posterai.

A+

Arnaud

Hors ligne

#12 Le 04/09/2011, à 20:57

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Bon, j'ai réussi à faire ce que je voulais en suivante les indications sur cette page: http://ubuntuforums.org/showthread.php?t=1519354

C'est assez trivial finalement, surtout avec le script qui va bien :-)

Bonne soirée

Arnaud

Hors ligne

#13 Le 05/09/2011, à 04:42

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

insitu,
Tu es arrivé à tes fins. Félicitations. Est-ce que tu as utilisé l'option --no-bootloader et que tu passes toujours par Wubi pour démarrer ou bien est-ce que tu as procédé autrement ?

Hors ligne

#14 Le 05/09/2011, à 04:45

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Non, je n'ai pas utilisé cette option, j'ai fait l'installation directement et la mise à jour de grub. Bien sûr j'ai remodifié le /etc/fstab pour remonter mes anciennes partitions. Le post détaille la procédure manuelle d'ailleurs, c'est intéressant.

Arnaud

Hors ligne

#15 Le 05/09/2011, à 04:55

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Je pense que tu n'as pas fait le bon choix en laissant Grub s'installer dans le MBR du disque dur. Si Ubuntu ne démarre plus un de ces jours, tu ne pourras plus démarrer ni sur Ubuntu ni sur Windows, et tu ne pourras pas dépanner parce que tu n'auras plus aucun outil de dépannage. Alors que si tu avais utilisé l'option --no-bootloader, tu aurais pu continuer à avoir deux installations de Ubuntu : ton installation classique de Ubuntu (celle que tu viens de réaliser) et ton install par Wubi qui t'aurait servi pour dépanner la première.

Hors ligne

#16 Le 05/09/2011, à 04:58

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

J'ai toujours mon dual-boot ubuntu/windows, sauf que mon ancienne installation (qui de toute façon était plantée) a été remplacée par la nouvelle. Je peux toujours rebooté sur windows et probablement sur le wubi (je n'ai pas essayé mais je ne vois pas pourquoi cela ne fonctionnerait pas).

Arnaud

Hors ligne

#17 Le 05/09/2011, à 05:04

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Moi j'ai cru comprendre en lisant le lien que tu as donné dans le post #12 et en lisant tes explications des derniers posts que tu as à présent Grub dans le MBR du disque dur. Si c'est le cas, ça fait une différence fondamentale par rapport à ce que tu avais auparavant puisque c'est Grub qui gère le démarrage : au lieu de voir en premier le menu proposé par le gestionnaire de démarrage de Windows, tu vois en premier le menu Grub. C'est bien comme ça que ça se passe ?

Hors ligne

#18 Le 05/09/2011, à 05:09

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Hmmm, oui c'est comme ça. Mais en fait, c'était déjà le cas avant, c'est le problème que je décris dans mon premier post. Le boot était le suivant:
1. d'abord grub (l'ancien) avec le choix entre ubuntu 8.04 et Win XP
2. ensuite le bootloader windows, avec le choix entre Windows XP et ubuntu installé par wubi
3. ensuite de nouveau grub (le nouveau), avec le choix entre ubuntu 11.04 (le wubi donc), ubuntu 8.04 automagiquement détecté à l'installation je suppose, et toujours windows xp.

Je n'ai pas fait l'expérience mais j'imagine que si j'avais choisi win xp à l'étape 3 ci-dessus, je me serais retrouvé à l'étape 2.

Bref, c'est beaucoup mieux qu'avant, non ?

Arnaud

Hors ligne

#19 Le 05/09/2011, à 05:37

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

J'ai du mal à comprendre comment marche le script que tu as utilisé. Et je n'arrive même pas à savoir si l'ancienne install d'Ubuntu faite par Wubi continue d'exister après l'éxécution du script ou bien si elle est supprimée. L'essentiel, c'est que tu as conservé ta gestion du démarrage comme avant (tu démarres sur l'ancien Grub) donc je pense que tu n'as pas dégradé la sécurité de ton démarrage (contrairement à ce que je pensais)

Hors ligne

#20 Le 05/09/2011, à 06:21

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

En réexaminant le Boot Info Script de ton post #1, j'ai un gros doute. Pourrais-tu refaire un Boot Info Script et le poster pour que je puisse bien étudier les différences ?

Hors ligne

#21 Le 05/09/2011, à 06:31

insitu

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Pas de problème, mais ce sera ce soir.

Arnaud

Hors ligne

#22 Le 05/09/2011, à 11:30

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Je crois que depuis le post #4 je raconte des grosses conneries par rapport à la possibilité d'installer Ubuntu "en dur" (c'est à dire sur partitions Linux) depuis Wubi.
Je viens de faire des essais dans un PC virtuel avec VirtualBox et il ressort qu'il est possible de réaliser ce que tu souhaitais au départ et que tu as semble-t-il réalisé. Tout ça avec un seul disque dur alors que je pensais que c'était impossible de tout faire depuis un unique lecteur.
Ce que j'ai fait : j'ai installé dans Win7 par Wubi la version encore instable de Ubuntu (la future Ubuntu 11.10) dans 5 Go (taille min proposée) puis le PC étant démarré sur le Ubuntu installé par Wubi, j'ai installé Gparted et (sans retoucher à la taille de sda1 : c'est impossible parce que cette partition est montée du fait qu'elle est la partition hôte de ubuntu installé par Wubi) j'ai créé la partition sda2 et la partition sda3 dédiées respectivement à recevoir la future partition racine de l'install en dur et à la partition swap. Puis j'ai lancé le script proposé dans la procédure  : http://ubuntuforums.org/showthread.php?t=1519354
J'ai donc passé cette commande :

sudo bash wubi-move-2.0.sh /dev/sda2 /dev/sda3

en répondant "non" pour le bootloader (sinon il aurait installé Grub dans le MBR de sda et ce n'est pas ce que je voulais obtenir) et en répondant "oui" pour le formatage de la partition destinée à devenir la partition racine (sda2 chez moi) et tout s'en bien installé conformément au Boot Info Script que je viens de faire une fois tout terminé (lancé depuis le Ubuntu installé sur sda2) :

                  Boot Info Script 0.60    from 17 May 2011


============================= Boot Info Summary: ===============================

 => Windows is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:   No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe 
                       /wubildr /ubuntu/winboot/wubildr /wubildr.mbr 
                       /ubuntu/winboot/wubildr.mbr /ubuntu/disks/root.disk

sda1/Wubi: _____________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu oneiric (development 
                       branch)
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu oneiric (development 
                       branch)
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda3: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:  

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 32.1 GB, 32115785728 bytes
255 heads, 63 sectors/track, 3904 cylinders, total 62726144 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048    46,335,999    46,333,952   7 NTFS / exFAT / HPFS
/dev/sda2          46,336,000    60,678,143    14,342,144  83 Linux
/dev/sda3          60,678,144    62,726,143     2,048,000  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        30558EF8214AD264                       ntfs       win7
/dev/sda2        d042ec13-2e3f-4d4e-a447-344612588468   ext4       
/dev/sda3        72a54109-a6d2-4505-b9dc-5d9020a33d11   swap       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda2        /                        ext4       (rw,errors=remount-ro,commit=0)
/dev/sr0         /media/Ubuntu 11.04 amd64 iso9660    (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks)


======================== sda1/Wubi/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 ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 30558EF8214AD264
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ntfs
  set root='(/dev/sda,msdos1)'
  search --no-floppy --fs-uuid --set=root 30558EF8214AD264
  loopback loop0 /ubuntu/disks/root.disk
  set root=(loop0)
  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=10
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 ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
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, with Linux 3.0.0-10-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux    /boot/vmlinuz-3.0.0-10-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-3.0.0-10-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-10-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    echo    'Loading Linux 3.0.0-10-generic ...'
    linux    /boot/vmlinuz-3.0.0-10-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro single 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-3.0.0-10-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-9-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux    /boot/vmlinuz-3.0.0-9-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-3.0.0-9-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-9-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    echo    'Loading Linux 3.0.0-9-generic ...'
    linux    /boot/vmlinuz-3.0.0-9-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro single 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-3.0.0-9-generic
}
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, with Linux 3.0.0-10-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    linux /boot/vmlinuz-3.0.0-10-generic root=UUID=d042ec13-2e3f-4d4e-a447-344612588468 ro quiet splash vt.handoff=7
    initrd /boot/initrd.img-3.0.0-10-generic
}
menuentry "Ubuntu, with Linux 3.0.0-10-generic (recovery mode) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    linux /boot/vmlinuz-3.0.0-10-generic root=UUID=d042ec13-2e3f-4d4e-a447-344612588468 ro single nomodeset
    initrd /boot/initrd.img-3.0.0-10-generic
}
menuentry "Ubuntu, with Linux 3.0.0-9-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    linux /boot/vmlinuz-3.0.0-9-generic root=UUID=d042ec13-2e3f-4d4e-a447-344612588468 ro quiet splash vt.handoff=7
    initrd /boot/initrd.img-3.0.0-9-generic
}
menuentry "Ubuntu, with Linux 3.0.0-9-generic (recovery mode) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    linux /boot/vmlinuz-3.0.0-9-generic root=UUID=d042ec13-2e3f-4d4e-a447-344612588468 ro single nomodeset
    initrd /boot/initrd.img-3.0.0-9-generic
}
### 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 ###
--------------------------------------------------------------------------------

============================= sda1/Wubi/etc/fstab: =============================

--------------------------------------------------------------------------------
# UNCONFIGURED FSTAB FOR BASE SYSTEM
--------------------------------------------------------------------------------

================= sda1/Wubi: Location of files loaded by Grub: =================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/grub.cfg                             2
               =                boot/initrd.img-3.0.0-10-generic              169
               =                boot/initrd.img-3.0.0-9-generic               55
               =                boot/vmlinuz-3.0.0-10-generic                 20
               =                boot/vmlinuz-3.0.0-9-generic                  20
               =                initrd.img                                     1
               =                initrd.img.old                                 1
               =                vmlinuz                                       20
               =                vmlinuz.old                                   20

=========================== sda2/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='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(/dev/sda,msdos2)'
  search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
  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=10
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, with Linux 3.0.0-10-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='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    linux    /boot/vmlinuz-3.0.0-10-generic root=UUID=d042ec13-2e3f-4d4e-a447-344612588468 ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-3.0.0-10-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-10-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    echo    'Loading Linux 3.0.0-10-generic ...'
    linux    /boot/vmlinuz-3.0.0-10-generic root=UUID=d042ec13-2e3f-4d4e-a447-344612588468 ro single nomodeset 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-3.0.0-10-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-9-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='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    linux    /boot/vmlinuz-3.0.0-9-generic root=UUID=d042ec13-2e3f-4d4e-a447-344612588468 ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-3.0.0-9-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-9-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    echo    'Loading Linux 3.0.0-9-generic ...'
    linux    /boot/vmlinuz-3.0.0-9-generic root=UUID=d042ec13-2e3f-4d4e-a447-344612588468 ro single nomodeset 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-3.0.0-9-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='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    linux16    /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root d042ec13-2e3f-4d4e-a447-344612588468
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    chainloader +1
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
# UNCONFIGURED FSTAB FOR BASE SYSTEM
# root was on /dev/sda2 when migrated
UUID=d042ec13-2e3f-4d4e-a447-344612588468    /    ext4    errors=remount-ro    0    1
# swap was on /dev/sda3 when migrated
UUID=72a54109-a6d2-4505-b9dc-5d9020a33d11    none    swap    sw    0    0
--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/grub.cfg                             1
               =                boot/initrd.img-3.0.0-10-generic               1
               =                boot/initrd.img-3.0.0-9-generic                1
               =                boot/vmlinuz-3.0.0-10-generic                  1
               =                boot/vmlinuz-3.0.0-9-generic                   1
               =                initrd.img                                     1
               =                initrd.img.old                                 1
               =                vmlinuz                                        1
               =                vmlinuz.old                                    1

=============================== StdErr Messages: ===============================

awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

C'est donc bien Windows qui gère le démarrage en proposant un menu avec possibilité de démarrer Win7 ou ubuntu. Si je choisis ubuntu je tombe dans le menu proposé par le Ubuntu installé par Wubi (on peut voir ce menu dans la partie "sda1/Wubi/boot/grub/grub.cfg" du résultat du Boot Info Script), c'est à dire que je peux démarrer soit le Ubuntu installé par Wubi dans les deux premières lignes du menu soit le Ubuntu installé classiquement (sur sda2) :

Ubuntu, with Linux 3.0.0-10-generic
Ubuntu, with Linux 3.0.0-10-generic (recovery mode) 
Previous Linux versions
Ubuntu, with Linux 3.0.0-10-generic (on /dev/sda2)
Ubuntu, with Linux 3.0.0-10-generic (recovery mode) (on /dev/sda2)
Ubuntu, with Linux 3.0.0-9-generic (on /dev/sda2)
Ubuntu, with Linux 3.0.0-9-generic (recovery mode) (on /dev/sda2)

Une petite remarque : ce n'était pas le cas ici mais si Win7 occupe la totalité du disque dur, il faut depuis Win7 (avec la fonction "gérer") réduire la taille de la partition C: pour dégager de la place pour les futures partitions Linux. Ensuite, installer Ubuntu avec Wubi dans sda1 (le disque C: vu sous Win7) puis on peut suivre la procédure que j'ai indiquée au début du post (installer Gparted, créer les partitions Linux, etc...)

Dernière modification par malbo (Le 04/10/2011, à 11:23)

Hors ligne

#23 Le 06/09/2011, à 10:59

malbo

Re : Installer ubuntu 11.04 depuis wubi vers une partition

Dans le post #22, j'ai installé Ubuntu version instable 11.10. Dans le présent post, je vérifie que ça marche aussi bien pour une installation de Ubuntu 11.04 faite par Wubi.
Déroulement des opérations :
- Win7 installé sur une partition unique (disque C: vu par Win7) qui occupe tout le disque dur
- installation de Ubuntu par Wubi dans C: (je demande 7 Go pour la taille de Ubuntu)
- Depuis Win7 , "gérer", "gestion des disques", réduction de la taille de C: pour faire de la place pour partitions futures Linux destinées au Ubuntu "migré"
- Démarrage sur Ubuntu (Wubi), installation gparted, lancement gparted et création des partitions :
     - sda2 destinée à devenir la partition racine du ubuntu "migré". J'adopte 5,38 Gio parce que j'ai vu qu'il fallait une taille min de 5 Go sinon le script ne veut pas bosser mais je veux une taille très réduite quand même, exprès pour montrer au passage qu'une "Wubi-install" de 7 Go peut s'installer dans une partition plus petite.
     - sda3 destinée à devenir la swap
- Lancement du script depuis Ubuntu installé par Wubi (je ne veux pas que Grub soit installé dans le MBR) :

$ sudo bash wubi-move-2.0.sh --no-bootloader /dev/sda2 /dev/sda3
[sudo] password for malbo: 

wubi-move-2.0.sh: Please close all open files before continuing.
wubi-move-2.0.sh: About to format the target partition (/dev/sda2).
wubi-move-2.0.sh: Proceed with format (Y/N)
y
wubi-move-2.0.sh: Formatting /dev/sda2 with ext4 file system

wubi-move-2.0.sh: Copying files - please be patient - this takes some time
wubi-move-2.0.sh: Creating swap...

wubi-move-2.0.sh: Starting chroot to the target install.
wubi-move-2.0.sh: Removing lupin-support on target...
wubi-move-2.0.sh: Updating the target grub menu...
wubi-move-2.0.sh: Exiting from chroot on target install...

wubi-move-2.0.sh: Updating current grub menu to add new install...
Generating grub.cfg ...
cat: /boot/grub/video.lst: Aucun fichier ou dossier de ce type
Found linux image: /boot/vmlinuz-2.6.38-11-generic
Found initrd image: /boot/initrd.img-2.6.38-11-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found Windows 7 (loader) on /dev/sda1
Found Ubuntu 11.04 (11.04) on /dev/sda2
done

wubi-move-2.0.sh: Operation completed successfully.

Après la fin de l'opération, je démarre le PC sur Ubuntu tout chaudement migré sur sda2 et je lance le Boot Info Script depuis cette session :

                  Boot Info Script 0.60    from 17 May 2011


============================= Boot Info Summary: ===============================

 => Windows is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:   No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe 
                       /wubildr /ubuntu/winboot/wubildr /wubildr.mbr 
                       /ubuntu/winboot/wubildr.mbr /ubuntu/disks/root.disk 
                       /ubuntu/disks/swap.disk

sda1/Wubi: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 11.04
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 11.04
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda3: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:  

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disque /dev/sda: 32.1 Go, 32115785728 octets
255 têtes, 63 secteurs/piste, 3904 cylindres, total 62726144 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048    48,386,047    48,384,000   7 NTFS / exFAT / HPFS
/dev/sda2          48,386,048    59,658,239    11,272,192  83 Linux
/dev/sda3          59,658,240    62,726,143     3,067,904  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        30558EF8214AD264                       ntfs       win7
/dev/sda2        b0695797-13b6-47e2-ac0e-c4bc9ea09171   ext4       
/dev/sda3        1e9439cb-dab0-4553-9651-ede09a4d6c50   swap       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda2        /                        ext4       (rw,errors=remount-ro,commit=0)


======================== sda1/Wubi/boot/grub/grub.cfg: =========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#menuentry "Ubuntu, Linux 2.6.38-11-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-11-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro   quiet splash
    initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry "Ubuntu, Linux 2.6.38-11-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-11-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro single 
    initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry "Ubuntu, Linux 2.6.38-8-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro   quiet splash
    initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry "Ubuntu, Linux 2.6.38-8-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro single 
    initrd /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    chainloader +1
}
menuentry "Ubuntu, avec Linux 2.6.38-11-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux /boot/vmlinuz-2.6.38-11-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro quiet splash vt.handoff=7
    initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry "Ubuntu, avec Linux 2.6.38-11-generic (mode de dépannage) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux /boot/vmlinuz-2.6.38-11-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro single
    initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry "Ubuntu, avec Linux 2.6.38-8-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro quiet splash vt.handoff=7
    initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry "Ubuntu, avec Linux 2.6.38-8-generic (mode de dépannage) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro single
    initrd /boot/initrd.img-2.6.38-8-generic
}
### 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 ###
# 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 {
true
}

insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 30558EF8214AD264
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
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 ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.38-11-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-11-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro   quiet splash
    initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry "Ubuntu, Linux 2.6.38-11-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-11-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro single 
    initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry "Ubuntu, Linux 2.6.38-8-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro   quiet splash
    initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry "Ubuntu, Linux 2.6.38-8-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=30558EF8214AD264 loop=/ubuntu/disks/root.disk ro single 
    initrd /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    chainloader +1
}
menuentry "Ubuntu, avec Linux 2.6.38-11-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux /boot/vmlinuz-2.6.38-11-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro quiet splash vt.handoff=7
    initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry "Ubuntu, avec Linux 2.6.38-11-generic (mode de dépannage) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux /boot/vmlinuz-2.6.38-11-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro single
    initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry "Ubuntu, avec Linux 2.6.38-8-generic (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro quiet splash vt.handoff=7
    initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry "Ubuntu, avec Linux 2.6.38-8-generic (mode de dépannage) (on /dev/sda2)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro single
    initrd /boot/initrd.img-2.6.38-8-generic
}
### 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 ###
--------------------------------------------------------------------------------

============================= sda1/Wubi/etc/fstab: =============================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/host/ubuntu/disks/root.disk /               ext4    loop,errors=remount-ro 0       1
/host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0
--------------------------------------------------------------------------------

================= sda1/Wubi: Location of files loaded by Grub: =================

           GiB - GB             File                                 Fragment(s)

   4.381099701 = 4.704169984    boot/grub/grub.cfg                             1
   2.929687500 = 3.145728000    boot/initrd.img-2.6.38-11-generic              2
   1.754421234 = 1.883795456    boot/initrd.img-2.6.38-8-generic               3
   2.527656555 = 2.714050560    boot/vmlinuz-2.6.38-11-generic                 1
   5.110904694 = 5.487792128    boot/vmlinuz-2.6.38-8-generic                  1
   2.929687500 = 3.145728000    initrd.img                                     2
   1.754421234 = 1.883795456    initrd.img.old                                 3
   2.527656555 = 2.714050560    vmlinuz                                        1
   5.110904694 = 5.487792128    vmlinuz.old                                    1

=========================== sda2/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 {
true
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos2)'
search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
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 2.6.38-11-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux    /boot/vmlinuz-2.6.38-11-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-2.6.38-11-generic
}
menuentry 'Ubuntu, avec Linux 2.6.38-11-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    echo    'Loading Linux 2.6.38-11-generic ...'
    linux    /boot/vmlinuz-2.6.38-11-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro single 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-2.6.38-11-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, avec Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux    /boot/vmlinuz-2.6.38-8-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, avec Linux 2.6.38-8-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    echo    'Loading Linux 2.6.38-8-generic ...'
    linux    /boot/vmlinuz-2.6.38-8-generic root=UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171 ro single 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-2.6.38-8-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='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux16    /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root b0695797-13b6-47e2-ac0e-c4bc9ea09171
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 30558EF8214AD264
    chainloader +1
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0


# root was on /dev/sda2 when migrated
UUID=b0695797-13b6-47e2-ac0e-c4bc9ea09171    /    ext4    errors=remount-ro    0    1
# swap was on /dev/sda3 when migrated
UUID=1e9439cb-dab0-4553-9651-ede09a4d6c50    none    swap    sw    0    0
--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

  24.128917694 = 25.908228096   boot/grub/grub.cfg                             1
  24.181640625 = 25.964838912   boot/initrd.img-2.6.38-11-generic              2
  23.225124359 = 24.937787392   boot/initrd.img-2.6.38-8-generic               1
  25.341194153 = 27.209900032   boot/vmlinuz-2.6.38-11-generic                 1
  25.345409393 = 27.214426112   boot/vmlinuz-2.6.38-8-generic                  1
  24.181640625 = 25.964838912   initrd.img                                     2
  23.225124359 = 24.937787392   initrd.img.old                                 1
  25.341194153 = 27.209900032   vmlinuz                                        1
  25.345409393 = 27.214426112   vmlinuz.old                                    1

Comme dans l'essai du post #22, c'est Windows qui gère le démarrage (c'est confirmé par le résultat du Boot Info Script ci-dessus où on peut lire : "Windows is installed in the MBR of /dev/sda."). Si on choisit ubuntu, on arrive à ce menu présenté par le Ubuntu installé par Wubi et qui permet d'atteindre le Ubuntu migré qui se trouve sur sda2 :

Ubuntu, Linux 2.6.38-11-generic
Ubuntu, Linux 2.6.38-11-generic (recovery mode)
Ubuntu, Linux 2.6.38-8-generic
Ubuntu, Linux 2.6.38-8-generic (recovery mode)
Windows 7 (loader) (on /dev/sda1)
Ubuntu, avec Linux 2.6.38-11-generic (on /dev/sda2)
Ubuntu, avec Linux 2.6.38-11-generic (mode de dépannage) (on /dev/sda2)
Ubuntu, avec Linux 2.6.38-8-generic (on /dev/sda2)
Ubuntu, avec Linux 2.6.38-8-generic (mode de dépannage) (on /dev/sda2

Dernière modification par malbo (Le 06/09/2011, à 13:18)

Hors ligne