Page 55 of 69 FirstFirst ... 545535455565765 ... LastLast
Results 541 to 550 of 686

Thread: HOWTO: migrate wubi install to partition

  1. #541
    Join Date
    Nov 2011
    Beans
    12

    Re: HOWTO: migrate wubi install to partition

    PS or if you want to wait a few days I'll probably have figured out how to get it in the wubi menu the first time.
    Sounds like a good plan for a lazy bloke like me!

    I'll have to delete my broken install and re-do the partitioning anyway and i've also got a few other things keeping me busy at the mo' too.

  2. #542
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: HOWTO: migrate wubi install to partition

    Quote Originally Posted by Rythmtech View Post
    Sounds like a good plan for a lazy bloke like me!

    I'll have to delete my broken install and re-do the partitioning anyway and i've also got a few other things keeping me busy at the mo' too.
    Cool. I'm debugging os-prober. Bit of a pain, but I've found some interesting stuff along the way.

  3. #543
    Join Date
    Nov 2011
    Beans
    2

    Re: HOWTO: migrate wubi install to partition

    hellow everyone.
    i'm new here so please forgive me if i made some mistakes...
    i have a question for you,
    i installed ubuntu via wubi on a separate partition.
    i used win7 disk management tool to shrink my C volume and
    used the new space in wubi installation.
    how can i migrate wubi into "real" dual boot system in this case?
    can i use this guide for that?

    thank you very much!

  4. #544
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: HOWTO: migrate wubi install to partition

    Quote Originally Posted by itayh1 View Post
    hellow everyone.
    i'm new here so please forgive me if i made some mistakes...
    i have a question for you,
    i installed ubuntu via wubi on a separate partition.
    i used win7 disk management tool to shrink my C volume and
    used the new space in wubi installation.
    how can i migrate wubi into "real" dual boot system in this case?
    can i use this guide for that?

    thank you very much!
    The nice thing about Wubi is that you don't need to partition - so it's good to try out Ubuntu. For most users they'd install on an existing partition (e.g C: ) and then when the time comes to migrate, you shrink C: and migrate to the new partition.

    In your case, you partitioned, and then placed the wubi install on the new partition. So it makes things a little more complicated.

    In general, it's best to create an extended partition when you free up space, so you have more flexibility (e.g. to create multiple partitions - it's recommended to have a minimum of two for linux, and if you don't create an extended you can run out of primary partitions (max 4 )). If you created a primary partition (and you are at the max) you will probably have to delete it before migrating. If you created an extended and are able to create more logical partitions, then you should do this and migrate to them.

    If you cannot create more logical partitions for the migration, then I can think of the following scenarios:
    1. Migrate to an external drive and then prepare your internal hard drives partitions and move the install back. (Note the wubi-move script also moves normal Ubuntu installs - so you can have bootable backups and move your install around after migrating)
    2. A root.disk migration: you can copy the wubi virtual disks back to C:, boot from an Ubuntu live CD, create the partitions you need and then migrate using the "--root-disk=" option.
    3. You could move the wubi install to the C: partition, get it booting and then create the partitions and migrate.

    Option 1 is probably the simplest.
    Option 2 isn't too complicated.
    Option 3 is actually fairly complex even though it sounds easy.

    So... it's possible - the choice is up to you.

  5. #545
    Join Date
    Nov 2011
    Beans
    2

    Re: HOWTO: migrate wubi install to partition

    thank you very much for your quick help!!
    i think i will try your first option

  6. #546
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: HOWTO: migrate wubi install to partition

    Quote Originally Posted by itayh1 View Post
    thank you very much for your quick help!!
    i think i will try your first option
    Okay... few things to note:

    With an external drive migration the grub2 bootloader is installed to the external, not the internal, drive MBR. To boot the migrated install, hit your bios boot options key and select to boot from the usb device. When you move it back to the internal you can install the grub2 bootloader at that time.

    Also, see this post for an issue that could happen if there is not enough room on the external drive's boot track for the grub bootloader.

  7. #547
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: HOWTO: migrate wubi install to partition

    Quote Originally Posted by Rythmtech View Post
    Sounds like a good plan for a lazy bloke like me!

    I'll have to delete my broken install and re-do the partitioning anyway and i've also got a few other things keeping me busy at the mo' too.
    I just wanted to stop by and let you know I haven't forgotten about this. My week was busier than I predicted so no final answer. However, I did spend some time debugging the os-prober and grub scripts. And I found this strange thing... I migrate, run update-grub and it fails to identify the boot partition. I open /etc/grub.d/30_os-prober and save it (no other modification). Then I run update-grub and it picks it up perfectly. Obviously this makes no sense, so I need to go back and test again when I have time and figure out exactly what is going on. I found this out while I was adding debug statements into 30_os-prober and then removed them. And found it was suddenly 'magically' working.

    So basically what I am saying is that the migration seems to be fine, and it's something obscure to do with grub. But clearly that's not good enough to leave it there, so I'll have to figure out what's up and get the script to bypass this.

  8. #548
    Join Date
    Nov 2011
    Beans
    12

    Re: HOWTO: migrate wubi install to partition

    Hi bcbc,
    Yeah I've had a busy week too, but I did try out your suggestion and found some strange things happening...
    Once I booted past the WinXP boot loader and got to Wubi's grub screen, I pressed "c" as suggested and entered "configfile (hd1,3)/grub/grub.cfg" (sdb3 is my new boot partition starting at sector 63) but I just got an empty screen with the grub> prompt. After much mucking around checking & re-checking I used the grub [TAB] auto fill feature and found that it is seeing my sdb drive as HD0 instead of Hd1! (what the?). Anyway, I then tried "configfile (hd0,3)/grub/grub.cfg", but I just get a blank screen and no prompt.... It's got me stumped...

    I've attached a new bootinfoscript file, if that may help.

    Also just to reiterate my physical drive configuration is...

    PATA (IDE) Drive - 400GB "DATA" (Holds data only, no O/S's) (Shows as HD1 but sda)

    sda1 (Data only)

    SATA Drive - 160GB "ACER" (Shows as HD0 but sdb)

    sdb3 (250MB boot partition.
    sdb1 (130GB WinXP)
    sdb2 (Extended partition)
    sdb5 (Ubuntu)
    sdb6 (swap)

    Code:
                      Boot Info Script 0.60    from 17 May 2011
    
    
    ============================= Boot Info Summary: ===============================
    
     => Windows is installed in the MBR of /dev/sda.
     => No known boot loader is installed in the MBR of /dev/sdb.
    
    sda1: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows XP
        Boot sector info:   No errors found in the Boot Parameter Block.
        Operating System: 
        Boot files:       
    
    sdb1: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        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
    
    sdb1/Wubi: _____________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 11.04
        Boot files:        /boot/grub/grub.cfg /etc/fstab
    
    sdb2: __________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info: 
    
    sdb5: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 11.04
        Boot files:        /etc/fstab
    
    sdb6: __________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info: 
    
    sdb3: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System: 
        Boot files:        /grub/grub.cfg
    
    ============================ Drive/Partition Info: =============================
    
    Drive: sda _____________________________________________________________________
    
    Disk /dev/sda: 400.1 GB, 400087375360 bytes
    16 heads, 63 sectors/track, 775218 cylinders, total 781420655 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                  63   781,419,743   781,419,681   7 NTFS / exFAT / HPFS
    
    
    Drive: sdb _____________________________________________________________________
    
    Disk /dev/sdb: 164.7 GB, 164696555520 bytes
    255 heads, 63 sectors/track, 20023 cylinders, total 321672960 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/sdb1    *        514,080   265,747,229   265,233,150   7 NTFS / exFAT / HPFS
    /dev/sdb2         265,747,230   321,671,167    55,923,938   f W95 Extended (LBA)
    /dev/sdb5         265,747,293   317,476,529    51,729,237  83 Linux
    /dev/sdb6         317,476,593   321,669,494     4,192,902  82 Linux swap / Solaris
    /dev/sdb3                  63       514,079       514,017  83 Linux
    
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/loop0       863ad177-206f-446c-afda-e47d67426c7f   ext4      
    /dev/sda1        0A8CB7218CB705EB                       ntfs       DATA
    /dev/sdb1        78DC33EADC33A0F4                       ntfs       ACER
    /dev/sdb3        dcd82c7a-52ff-4b50-b002-f699fb0a1485   ext4      
    /dev/sdb5        1573bc8f-b569-40c0-8b46-e6b2e21563bc   ext4      
    /dev/sdb6        911818b6-2a9a-4751-adb1-8bf753cf9a71   swap      
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/loop0       /                        ext4       (rw,errors=remount-ro,commit=0)
    /dev/sdb1        /host                    fuseblk    (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
    /dev/sr0         /media/HERE              udf        (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,umask=0077,dmode=0500)
    
    
    ================================ sdb1/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 Professional" /noexecute=optin /fastdetect
    C:\wubildr.mbr = "Ubuntu"
    --------------------------------------------------------------------------------
    
    ======================== sdb1/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/sdb,msdos1)'
    search --no-floppy --fs-uuid --set=root 78DC33EADC33A0F4
    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-12-generic" {
        insmod part_msdos
        insmod ntfs
        set root='(/dev/sdb,msdos1)'
        search --no-floppy --fs-uuid --set=root 78DC33EADC33A0F4
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.38-12-generic root=UUID=78DC33EADC33A0F4 loop=/ubuntu/disks/root.disk ro   quiet splash
        initrd /boot/initrd.img-2.6.38-12-generic
    }
    menuentry "Ubuntu, Linux 2.6.38-12-generic (recovery mode)" {
        insmod part_msdos
        insmod ntfs
        set root='(/dev/sdb,msdos1)'
        search --no-floppy --fs-uuid --set=root 78DC33EADC33A0F4
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.38-12-generic root=UUID=78DC33EADC33A0F4 loop=/ubuntu/disks/root.disk ro single
        initrd /boot/initrd.img-2.6.38-12-generic
    }
    menuentry "Ubuntu, Linux 2.6.38-8-generic" {
        insmod part_msdos
        insmod ntfs
        set root='(/dev/sdb,msdos1)'
        search --no-floppy --fs-uuid --set=root 78DC33EADC33A0F4
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.38-8-generic root=UUID=78DC33EADC33A0F4 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/sdb,msdos1)'
        search --no-floppy --fs-uuid --set=root 78DC33EADC33A0F4
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.38-8-generic root=UUID=78DC33EADC33A0F4 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 Professional (on /dev/sdb1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(/dev/sdb,msdos1)'
        search --no-floppy --fs-uuid --set=root 78DC33EADC33A0F4
        drivemap -s (hd0) ${root}
        chainloader +1
    }
    menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb5)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sdb,msdos5)'
        search --no-floppy --fs-uuid --set=root 9e990505-c39a-42ab-835f-9cc00a6b85e1
        linux /boot/vmlinuz-2.6.38-12-generic root=/dev/sdb5
        initrd /boot/initrd.img-2.6.38-12-generic
    }
    menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb5)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sdb,msdos5)'
        search --no-floppy --fs-uuid --set=root 9e990505-c39a-42ab-835f-9cc00a6b85e1
        linux /boot/vmlinuz-2.6.38-8-generic root=/dev/sdb5
        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 ###
    --------------------------------------------------------------------------------
    
    ============================= sdb1/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
    --------------------------------------------------------------------------------
    
    ================= sdb1/Wubi: Location of files loaded by Grub: =================
    
               GiB - GB             File                                 Fragment(s)
    
      14.417354584 = 15.480516608   boot/grub/grub.cfg                             1
       1.410411835 = 1.514418176    boot/initrd.img-2.6.38-12-generic              1
       1.004127502 = 1.078173696    boot/initrd.img-2.6.38-8-generic               2
       0.988590240 = 1.061490688    boot/vmlinuz-2.6.38-12-generic                 1
       6.799411774 = 7.300812800    boot/vmlinuz-2.6.38-8-generic                  1
       1.410411835 = 1.514418176    initrd.img                                     1
       1.004127502 = 1.078173696    initrd.img.old                                 2
       0.988590240 = 1.061490688    vmlinuz                                        1
       6.799411774 = 7.300812800    vmlinuz.old                                    1
    
    =============================== sdb5/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/sdb5 when migrated
    UUID=1573bc8f-b569-40c0-8b46-e6b2e21563bc    /    ext4    errors=remount-ro    0    1
    # swap was on /dev/sdb6 when migrated
    UUID=911818b6-2a9a-4751-adb1-8bf753cf9a71    none    swap    sw    0    0
    # /boot was on /dev/sdb3 when migrated
    UUID=dcd82c7a-52ff-4b50-b002-f699fb0a1485    /boot    ext4    errors=remount-ro    0    2
    --------------------------------------------------------------------------------
    
    ============================= sdb3/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/sdb,msdos5)'
    search --no-floppy --fs-uuid --set=root 9e990505-c39a-42ab-835f-9cc00a6b85e1
    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, with Linux 2.6.38-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod part_msdos
        insmod ext2
        set root='(/dev/sdb,msdos3)'
        search --no-floppy --fs-uuid --set=root dcd82c7a-52ff-4b50-b002-f699fb0a1485
        linux    /vmlinuz-2.6.38-12-generic root=/dev/sdb5 ro   quiet splash vt.handoff=7
        initrd    /initrd.img-2.6.38-12-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.38-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod part_msdos
        insmod ext2
        set root='(/dev/sdb,msdos3)'
        search --no-floppy --fs-uuid --set=root dcd82c7a-52ff-4b50-b002-f699fb0a1485
        echo    'Loading Linux 2.6.38-12-generic ...'
        linux    /vmlinuz-2.6.38-12-generic root=/dev/sdb5 ro single
        echo    'Loading initial ramdisk ...'
        initrd    /initrd.img-2.6.38-12-generic
    }
    submenu "Previous Linux versions" {
    menuentry 'Ubuntu, with 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/sdb,msdos3)'
        search --no-floppy --fs-uuid --set=root dcd82c7a-52ff-4b50-b002-f699fb0a1485
        linux    /vmlinuz-2.6.38-8-generic root=/dev/sdb5 ro   quiet splash vt.handoff=7
        initrd    /initrd.img-2.6.38-8-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod part_msdos
        insmod ext2
        set root='(/dev/sdb,msdos3)'
        search --no-floppy --fs-uuid --set=root dcd82c7a-52ff-4b50-b002-f699fb0a1485
        echo    'Loading Linux 2.6.38-8-generic ...'
        linux    /vmlinuz-2.6.38-8-generic root=/dev/sdb5 ro single
        echo    'Loading initial ramdisk ...'
        initrd    /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/sdb,msdos3)'
        search --no-floppy --fs-uuid --set=root dcd82c7a-52ff-4b50-b002-f699fb0a1485
        linux16    /memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sdb,msdos3)'
        search --no-floppy --fs-uuid --set=root dcd82c7a-52ff-4b50-b002-f699fb0a1485
        linux16    /memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(/dev/sdb,msdos1)'
        search --no-floppy --fs-uuid --set=root 78DC33EADC33A0F4
        drivemap -s (hd0) ${root}
        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 ###
    --------------------------------------------------------------------------------
    
    =================== sdb3: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
       0.133336544 = 0.143169024    grub/grub.cfg                                  1
       0.076708317 = 0.082364928    initrd.img-2.6.38-12-generic                   2
       0.047124386 = 0.050599424    initrd.img-2.6.38-8-generic                    2
       0.053071499 = 0.056985088    vmlinuz-2.6.38-12-generic                      1
       0.059175968 = 0.063539712    vmlinuz-2.6.38-8-generic                       1
    
    ======================== Unknown MBRs/Boot Sectors/etc: ========================
    
    Unknown MBR on /dev/sdb
    
    00000000  e8 12 01 b9 f0 01 be 10  7c bf 10 06 57 f3 a4 c3  |........|...W...|
    00000010  8b 4e 14 83 f9 0e 75 08  8d 5e 07 43 02 07 e2 fb  |.N....u..^.C....|
    00000020  8c 56 0c 8c 56 0e 75 69  8a 56 10 84 d2 79 62 e8  |.V..V.ui.V...yb.|
    00000030  f6 00 bb aa 55 cd 13 72  6f 3b 5e 5c 75 6a d1 e9  |....U..ro;^\uj..|
    00000040  73 66 b4 42 c6 46 02 01  eb 66 89 b6 f6 fe 8a 44  |sf.B.F...f.....D|
    00000050  04 84 c0 74 0f 3c 05 74  0b 3c 0f 74 07 8a 14 80  |...t.<.t.<.t....|
    00000060  e2 80 75 cb 83 c6 10 06  c4 5c 08 89 5e 08 8c 46  |..u......\..^..F|
    00000070  0a 07 fe 8e f9 fe 75 d2  b0 31 c6 46 d7 50 88 46  |......u..1.F.P.F|
    00000080  d4 be 6a 07 ac 84 c0 74  08 b4 0e b3 07 cd 10 eb  |..j....t........|
    00000090  f3 e8 81 00 88 46 11 be  ae 07 3c 05 75 c6 cd 16  |.....F....<.u...|
    000000a0  33 d2 89 56 08 89 56 0a  e8 7d 00 72 1b b8 01 02  |3..V..V..}.r....|
    000000b0  bf 05 00 8b dc 56 50 50  32 e4 cd 13 58 8b f5 cd  |.....VPP2...X...|
    000000c0  13 58 5e 73 03 4f 75 eb  b0 32 72 b2 40 8a 66 11  |.X^s.Ou..2r.@.f.|
    000000d0  9e 7b 04 c6 47 02 0e 72  35 75 0c 88 57 40 c4 4e  |.{..G..r5u..W@.N|
    000000e0  08 89 4f 1c 8c 47 1e 79  06 8a 4e 12 88 4f 25 80  |..O..G.y..N..O%.|
    000000f0  c7 02 81 7f fe 55 aa 75  85 81 7f fa cd 19 75 09  |.....U.u......u.|
    00000100  c6 47 fa e9 c7 47 fb 94  88 e8 1c 00 ff e4 74 ce  |.G...G........t.|
    00000110  88 57 24 eb c9 5d 33 c0  8e d8 8e c0 8e d0 bc 00  |.W$..]3.........|
    00000120  7c 55 bd a2 07 fc fb c3  b4 08 52 06 cd 13 07 72  ||U........R....r|
    00000130  33 33 db 8a de 8b 46 0a  33 d2 83 e1 3f f7 f1 91  |33....F.3...?...|
    00000140  97 8b 46 08 f7 f7 42 87  ca 3b da 72 17 43 f7 f3  |..F...B..;.r.C..|
    00000150  8a f2 86 c5 d1 e8 d1 e8  0a c8 d0 cc d0 cc 0a f4  |................|
    00000160  84 e4 74 02 b4 41 5b 8a  d3 c3 0d 0a 4d 42 52 20  |..t..A[.....MBR |
    00000170  45 72 72 6f 72 20 00 0d  0a 00 72 65 73 73 20 61  |Error ....ress a|
    00000180  6e 79 20 6b 65 79 20 74  6f 20 62 6f 6f 74 20 66  |ny key to boot f|
    00000190  72 6f 6d 20 66 6c 6f 70  70 79 2e 2e 2e 00 00 00  |rom floppy......|
    000001a0  00 00 10 00 01 00 00 7c  00 00 00 00 00 00 00 00  |.......|........|
    000001b0  00 00 00 00 00 00 00 00  a3 e8 8d 57 00 00 80 00  |...........W....|
    000001c0  01 20 07 fe ff fe 20 d8  07 00 fe 22 cf 0f 00 fe  |. .... ...."....|
    000001d0  ff fe 0f fe ff ff 1e fb  d6 0f e2 54 55 03 00 01  |...........TU...|
    000001e0  01 00 83 fe 3f 1f 3f 00  00 00 e1 d7 07 00 00 00  |....?.?.........|
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200
    Don't know if any of this helps, but it's all a bit over my head!
    Last edited by Rythmtech; November 12th, 2011 at 08:17 AM.

  9. #549
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Post Re: HOWTO: migrate wubi install to partition

    Rythmtech,
    Yeah there're a couple of things I noticed. The UUID on /dev/sdb5 is 1573bc8f-b569-40c0-8b46-e6b2e21563bc but the grub.cfg on /dev/sdb3 refers to it here as 9e990505-c39a-42ab-835f-9cc00a6b85e1:
    Code:
    set root='(/dev/sdb,msdos5)'
    search --no-floppy --fs-uuid --set=root 9e990505-c39a-42ab-835f-9cc00a6b85e1
    if loadfont /usr/share/grub/unicode.pf2 ; then
    Normally grub can handle the confusion between /dev/sda and /dev/sdb using the uuids, but in your grub.cfg it also uses root=/dev/sdb5 instead of root=UUID=xxx-xxx
    Not sure why as your wubi entries use the uuid notation.

    So... try this - manual boot from grub command prompt:
    Code:
        insmod part_msdos
        insmod ext2
        set root=(hd0,3)
        linux    /vmlinuz-2.6.38-12-generic root=/dev/sda5 ro   quiet splash
        initrd    /initrd.img-2.6.38-12-generic
    I switched to hd0 based on your experience, but you can try hd1 & /dev/sdb5 if that doesn't work. TAB will autocomplete /vmlinuz- and /initrd (and that will also confirm whether you got the correct partition).

    Try that and run "sudo update-grub" on both installs. Hopefully that'll be it.

  10. #550
    Join Date
    Nov 2011
    Beans
    12

    Re: HOWTO: migrate wubi install to partition

    Woohoo! Thanks bcbc!

    Just had to change /dev/sda5 to sdb5 and it booted straight up. All is working fine.

    To get rid of the wubi install, do I just need to uninstall it from the windows side? That won't uninstall the grub will it? (Only a small bit of worry here, given all the other issues it's thrown at me!)

    Many thanks for your help bcbc, again it is very much appreciated.


Page 55 of 69 FirstFirst ... 545535455565765 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •