Page 21 of 69 FirstFirst ... 11192021222331 ... LastLast
Results 201 to 210 of 686

Thread: HOWTO: migrate wubi install to partition

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

    Re: HOWTO: migrate wubi install to partition

    @WeFY-KVQqr, first off, congrats on being #200

    So, this grub problem is still largely a mystery. It doesn't always affect everyone the same way. And I've had installs where it boots fine for a while, but then later stops booting. This latest problem you've found is a new wrinkle... there's nothing wrong with the grub.cfg, but it only shows a partial list of entries. But if you hit 'c' - drop to a grub command line - and manually load grub.cfg (configfile /boot/grub/grub.cfg) you'll probably see it reboot (mine does).

    Unfortunately the grub developers have declined to take an interest, so the best we can do is workaround the problem. That permanent fix I describe is to restore the /boot/grub to what it looks like on a fresh Wubi install (prior to any grub-pc updates). This does fix your problem, because - even though you don't have the 'classic' symptoms mentioned in the Wubi megathread, I believe it's still part of the same problem.

    Since you can still boot Wubi, you should boot it, go to terminal and apply the fix (those four commands I showed). Then also go into Synaptic and lock packages grub-pc and grub-common (locking is only required if you intend to keep using wubi).

    PS I didn't examine your grub.cfg in detail, but in my tests I did compare the before and after - and there was nothing wrong that I could see to explain it. Luckily I was able to reproduce the problem quickly so it makes it easier to diagnose/fix.

    Thanks for the feedback
    PS I updated post #1 to add it to the known issues.

  2. #202
    Join Date
    Jan 2011
    Beans
    5

    Re: HOWTO: migrate wubi install to partition

    bcbc, thanks man! It did the trick.
    However I had to deviate a little bit from your advise.

    The third command

    Code:
     
    sudo cp /boot/grubold /boot/grub
    refuses to work because boot/grub has been created in the previous command and after all this command would not make much sense because it boils down to copying the contents of grubold back to boot/grub which is the location where the contents did come from and which would mean no different situation than it was before.
    So I've looked it up in the original thread. There I saw this command:

    Code:
     
    sudo cp /boot/grubold/grubenv /boot/grub
    and that one does work although I don't quite understand why it works because the original grub folder has a lot of files and after this operation it misses most of them.


    This brings me to some other questions:

    - There are many updates for Ubuntu 10.04.1 including a new Linux kernel version (2.6.32-28 this time). Is it save to apply them or will they (and especially the new kernel version) once again not make it to the grub menu?
    I'm not planning to do this with the wubi installation but only with the new migrated installation.
    - Looking back on this complicated business. I rather get rid of the whole wubi stuff after all. Is it safe to perform a regular grub-install command now as pointed out in your first post and will it still be possible to boot into Windows after doing this?
    Last edited by WeFY-KVQqr; January 30th, 2011 at 02:57 AM.

  3. #203
    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 WeFY-KVQqr View Post
    bcbc, thanks man! It did the trick.
    However I had to deviate a little bit from your advise.

    The third command

    Code:
     
    sudo cp /boot/grubold /boot/grub
    refuses to work because boot/grub has been created in the previous command and after all this command would not make much sense because it boils down to copying the contents of grubold back to boot/grub which is the location where the contents did come from and which would mean no different situation than it was before.
    So I've looked it up in the original thread. There I saw this command:

    Code:
     
    sudo cp /boot/grubold/grubenv /boot/grub
    and that one does work although I don't quite understand why it works because the original grub folder has a lot of files and after this operation it misses most of them.


    This brings me to some other questions:

    - There are many updates for Ubuntu 10.04.1 including a new Linux kernel version (2.6.32-28 this time). Is it save to apply them or will they (and especially the new kernel version) once again not make it to the grub menu?
    I'm not planning to do this with the wubi installation but only with the new migrated installation.
    - Looking back on this complicated business. I rather get rid of the whole wubi stuff after all. Is it safe to perform a regular grub-install command now as pointed out in your first post and will it still be possible to boot into Windows after doing this?
    Sorry about that typo - I swear I checked it more than a couple of times
    Anyway... that command just copies the grubenv file to the new /boot/grub. That's the same as on a default wubi install.

    There's no issue I am aware of with running kernel updates etc. in wubi other than kernel updates automatically regenerate grub.cfg. But since you've made that permanent fix - it has no negative effect - and I'd be surprised if you see that same problem again.

    Yes it is safe to install grub2 - you can first boot into the migrated install, run "sudo update-grub" and confirm that it sees the windows install from the output or by looking at /boot/grub/grub.cfg.
    Then install it to the drive MBR as described.
    Last edited by bcbc; January 30th, 2011 at 03:29 AM.

  4. #204
    Join Date
    Aug 2010
    Location
    NB, Canada
    Beans
    17
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: migrate wubi install to partition

    using Ubuntu 10.10, I also tried this, I came up with several roadblocks.
    When I rebooted I got a grub> prompt only.
    after some searching I used my win XP cd to fixmbr and then I got my boot menu back..
    however Windows refused to boot and I ultimately wanted to get rid of wubi on the windows partition. I was able to boot to the wubi install or the newly created copy on sda5.
    I edited the boot loader and then it only tried to boot into Windows, which it wouldn't, I got a black screen and it locked up.. I said screw that and am cloning it back to the way it was right now..

    I assume the Ubuntu will still be on sda5, so my question is, how do I disable wubi without uninstalling it (until I get this working), and how do I go about getting the grub loader to pick up Ubuntu and XP so I can then uninstall wubi.

    I am sorry I used wubi now.. nice to tinker with but updates cause unending problems..
    If it wasn't such a pain to get my print server working I would just get the data and do a fresh install..

    Th@nX

  5. #205
    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 fubar65 View Post
    using Ubuntu 10.10, I also tried this, I came up with several roadblocks.
    When I rebooted I got a grub> prompt only.
    after some searching I used my win XP cd to fixmbr and then I got my boot menu back..
    however Windows refused to boot and I ultimately wanted to get rid of wubi on the windows partition. I was able to boot to the wubi install or the newly created copy on sda5.
    I edited the boot loader and then it only tried to boot into Windows, which it wouldn't, I got a black screen and it locked up.. I said screw that and am cloning it back to the way it was right now..

    I assume the Ubuntu will still be on sda5, so my question is, how do I disable wubi without uninstalling it (until I get this working), and how do I go about getting the grub loader to pick up Ubuntu and XP so I can then uninstall wubi.

    I am sorry I used wubi now.. nice to tinker with but updates cause unending problems..
    If it wasn't such a pain to get my print server working I would just get the data and do a fresh install..

    Th@nX
    Run the bootinfoscript and post the results. Did you do the manual conversion?

  6. #206
    Join Date
    Aug 2010
    Location
    NB, Canada
    Beans
    17
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: migrate wubi install to partition

    I used the script, not manual, it seemed to go fairly quickly and it looked like it worked..
    I cloned it back and Windows and Wubi are both working now, everything is on sda5 but when I try to update grub and reboot, even windows is gone from the loader, I get several versions of kernel for my wubi install to choose from, nothing more..

    thanks for the reply


    I ran the boot info script and this is the output
    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Windows is installed in the MBR of /dev/sda
    
    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/dirs:   /boot.ini /ntldr /NTDETECT.COM /wubildr.mbr 
                           /ubuntu/winboot/wubildr.mbr /wubildr 
                           /ubuntu/winboot/wubildr /ubuntu/disks/root.disk 
                           /ubuntu/disks/swap.disk
    
    sda1/Wubi: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab
    
    sda2: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *             63   167,782,859   167,782,797   7 HPFS/NTFS
    /dev/sda2         167,782,860   312,576,704   144,793,845   f W95 Ext d (LBA)
    /dev/sda5         167,782,923   305,395,649   137,612,727  83 Linux
    /dev/sda6         305,395,713   311,259,374     5,863,662  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/loop0       4d505caa-8c37-42a3-ad2a-397560ff7dd9   ext4                                     
    /dev/sda1        B874B77674B735CA                       ntfs                                     
    /dev/sda2: PTTYPE="dos" 
    /dev/sda5        e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79   ext4                                     
    /dev/sda6        8810c3fc-2171-426a-99ee-c3b56dcccc96   swap                                     
    /dev/sda: PTTYPE="dos" 
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    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 Professional" /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 {
      insmod vbe
      insmod vga
    }
    
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set b874b77674b735ca
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set b874b77674b735ca
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    set locale_dir=($root)/boot/grub/locale
    set lang=
    insmod gettext
    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
    ### 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.35-25-generic" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set b874b77674b735ca
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.35-25-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro   quiet splash
        initrd /boot/initrd.img-2.6.35-25-generic
    }
    menuentry "Ubuntu, Linux 2.6.35-25-generic (recovery mode)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set b874b77674b735ca
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.35-25-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro single 
        initrd /boot/initrd.img-2.6.35-25-generic
    }
    menuentry "Ubuntu, Linux 2.6.35-23-generic" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set b874b77674b735ca
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.35-23-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro   quiet splash
        initrd /boot/initrd.img-2.6.35-23-generic
    }
    menuentry "Ubuntu, Linux 2.6.35-23-generic (recovery mode)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set b874b77674b735ca
        loopback loop0 /ubuntu/disks/root.disk
        set root=(loop0)
        linux /boot/vmlinuz-2.6.35-23-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro single 
        initrd /boot/initrd.img-2.6.35-23-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/sda1)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set b874b77674b735ca
        drivemap -s (hd0) ${root}
        chainloader +1
    }
    menuentry "Ubuntu, with Linux 2.6.35-25-generic (on /dev/sda5)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux /boot/vmlinuz-2.6.35-25-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro quiet splash
        initrd /boot/initrd.img-2.6.35-25-generic
    }
    menuentry "Ubuntu, with Linux 2.6.35-25-generic (recovery mode) (on /dev/sda5)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux /boot/vmlinuz-2.6.35-25-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro single
        initrd /boot/initrd.img-2.6.35-25-generic
    }
    menuentry "Ubuntu, with Linux 2.6.35-23-generic (on /dev/sda5)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux /boot/vmlinuz-2.6.35-23-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro quiet splash
        initrd /boot/initrd.img-2.6.35-23-generic
    }
    menuentry "Ubuntu, with Linux 2.6.35-23-generic (recovery mode) (on /dev/sda5)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux /boot/vmlinuz-2.6.35-23-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro single
        initrd /boot/initrd.img-2.6.35-23-generic
    }
    menuentry "Ubuntu, with Linux 2.6.32-26-generic (on /dev/sda5)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux /boot/vmlinuz-2.6.32-26-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro quiet splash
        initrd /boot/initrd.img-2.6.32-26-generic
    }
    menuentry "Ubuntu, with Linux 2.6.32-26-generic (recovery mode) (on /dev/sda5)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux /boot/vmlinuz-2.6.32-26-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro single
        initrd /boot/initrd.img-2.6.32-26-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: =================
    
    
      15.4GB: boot/grub/grub.cfg
      16.9GB: boot/initrd.img-2.6.35-23-generic
        .6GB: boot/initrd.img-2.6.35-25-generic
       4.6GB: boot/vmlinuz-2.6.35-23-generic
       4.5GB: boot/vmlinuz-2.6.35-25-generic
        .6GB: initrd.img
      16.9GB: initrd.img.old
       4.5GB: vmlinuz
       4.6GB: vmlinuz.old
    
    =========================== sda5/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 part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    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
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux    /boot/vmlinuz-2.6.35-25-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro   quiet splash
        initrd    /boot/initrd.img-2.6.35-25-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        echo    'Loading Linux 2.6.35-25-generic ...'
        linux    /boot/vmlinuz-2.6.35-25-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.35-25-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux    /boot/vmlinuz-2.6.35-23-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro   quiet splash
        initrd    /boot/initrd.img-2.6.35-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        echo    'Loading Linux 2.6.35-23-generic ...'
        linux    /boot/vmlinuz-2.6.35-23-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.35-23-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux    /boot/vmlinuz-2.6.32-26-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro   quiet splash
        initrd    /boot/initrd.img-2.6.32-26-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.32-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        echo    'Loading Linux 2.6.32-26-generic ...'
        linux    /boot/vmlinuz-2.6.32-26-generic root=UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.32-26-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos5)'
        search --no-floppy --fs-uuid --set e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79
        linux16    /boot/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/sda1)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set b874b77674b735ca
        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 ###
    
    =============================== sda5/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/sda5 when wubi migrated
    UUID=e263e0ab-c60d-4ed3-8fa8-ec82a5e71d79    /    ext4    errors=remount-ro    0    1
    # swap was on /dev/sda6 when wubi migrated
    UUID=8810c3fc-2171-426a-99ee-c3b56dcccc96    none    swap    sw    0    0
    
    =================== sda5: Location of files loaded by Grub: ===================
    
    
      88.2GB: boot/grub/core.img
      94.6GB: boot/grub/grub.cfg
      86.0GB: boot/initrd.img-2.6.32-26-generic
      87.0GB: boot/initrd.img-2.6.35-23-generic
      86.1GB: boot/initrd.img-2.6.35-25-generic
      88.1GB: boot/vmlinuz-2.6.32-26-generic
      88.1GB: boot/vmlinuz-2.6.35-23-generic
      88.2GB: boot/vmlinuz-2.6.35-25-generic
      86.1GB: initrd.img
      87.0GB: initrd.img.old
      88.2GB: vmlinuz
      88.1GB: vmlinuz.old
    the biggest reasons for doing this is stability with updates, I don't want slow downs due to fragmentation and wireless has a lot of problems connecting, but I think that is the b43 driver..

    Th@nX

  7. #207
    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 fubar65 View Post
    I used the script, not manual, it seemed to go fairly quickly and it looked like it worked..
    I cloned it back and Windows and Wubi are both working now, everything is on sda5 but when I try to update grub and reboot, even windows is gone from the loader, I get several versions of kernel for my wubi install to choose from, nothing more..

    thanks for the reply
    I can't see any problems with either the wubi or the migrated install, although it seems like you upgraded your wubi to 10.10 from 10.04.1 - is this correct?
    The reason is that you have the 'extended wubi grub menu' and one of the symptoms of this as has recently been discovered is the 'missing' menu items on the Wubi grub menu. (Read back a few posts in this thread).

    But this shouldn't affect the normal Ubuntu...

    So if I understand you correctly, the migration seemed to go ok, but you ended up at a grub prompt when you rebooted.
    You restored back, but now the Windows and migrated install from the Wubi grub menu doesn't show? Is this correct?

    First thing I'd do is do the "Permanent Fix" shown (see post 1, known issues, or as described one or two posts back). That should get all your Wubi grub menu entries showing again. Then boot the migrated install from the wubi menu and check it's working fine.

    Then try and install the grub2 bootloader again - see if there is any error output from it. Sometimes Grub2 detects the presence of other software using the space between the master boot record and the first partition and outputs a message. In that case, it doesn't always work. But it's hard to know this during the migration as I believe the script suppresses that output (a newer version coming soon handles chroot errors better).

    So to do this, boot your migrated install from the Wubi grub menu (after applying that fix) and run:
    Code:
    sudo grub-install /dev/sda
    If you see any weird output or errors, then likely it won't boot - so just fix the MBR with lilo before restarting:
    Code:
    sudo apt-get install lilo
    sudo lilo -M /dev/sda mbr
    or boot from your windows repair disc and just run fixmbr (fixboot not required). If you use lilo, ignore the big warning screen.

    If everything looked good, then try booting it again.

  8. #208
    Join Date
    Aug 2010
    Location
    NB, Canada
    Beans
    17
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: migrate wubi install to partition

    how odd, I just booted it up and there it was in the boot menu, the install on sda5..

    I did indeed upgrade from 10.04 to 10.10 in the hopes it would fix the long login times to the wireless network.. it didn't help at all.

    I am not sure why this showed up in the boot menu but it did..
    first thing I did was edit my boot.ini file to remove the wubi reference, then I moved the 2 wubi boot files to another folder, then I ran the sudo update-grub and sudo install-grub /dev/sda

    then I rebooted and the proper boot menu showed up, I am now in Ubuntu 10.10 with a true dual boot system, thanks, the guide does work, I just had a few hiccups along the way!

    now if I can get the damn wireless to work better I'd be all set..


    Th@nX for the guide and info!


    edit - I uninstalled the network manager and am just using Wicd and it is working much better, 5 reboots and it logs right in to the wireless!
    it's the wife's laptop so she will be happy too, brownie points for me!!
    Last edited by fubar65; January 31st, 2011 at 09:14 PM. Reason: nfo

  9. #209
    Join Date
    Oct 2009
    Beans
    11

    Re: HOWTO: migrate wubi install to partition

    So i figured I would upgrade my wubi 10.04 to 10.10 in the process I found that I will need more disk space as my 30gig wubi just isn't cutting it.

    Extending the virtual disk for wubi requires making a larger virtual disk and migrating it over to that. So I figured I might as well just migrate to a real partition.

    My upgrade has already started and can not be stopped.

    My question is will I be able to migrate a 10.10 version of ubuntu to a actual partition on the physical disk using this script or not?

    Also... As it stands the computer has two physical disks. 500 gigs each.

    The first disk has windows and a few default partitions from manufacturer.

    Second disk has about 150 gigs free and my wubi virtual disk is on this disk.

    Is there anyway I can repartion this disk while booted into my wubi install to have 120 gigs for ubuntu and 2 gigs swap.

    Sorry i know I asked many questions. I just need to know if these are possible and i will hunt down appropriate threads for the off topic ones.

    Thanks!!!!

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

    Re: HOWTO: migrate wubi install to partition

    @Jack-87
    Yes you can migrate 10.10 with the script.

    No you cannot split a partition while the partition is mounted. You should do it while booted from a live CD. If you don't have an ubuntu cd (or usb) yet you should get one.

    It's also a good idea to back up your data, prior to upgrading, prior to partitioning.

Page 21 of 69 FirstFirst ... 11192021222331 ... 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
  •