Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I swapped from a 128GB disk to a 256GB disk. The 128GB was (almost completely) full. By that, I mean I'm not able to download any updates for the 11.04. This is a dual boot setup. Win7 & Ubuntu 11.04. I believe Ubuntu was installed on the disk w/ wubi, as I see this at the root of the Win7 C:, and I have a ubuntu folder there as well.

I clonezilla'd the 128GB to the larger 256GB. I ran gparted and added a chunk to the original 128GB.

I found this didn't help my full-disk Ubuntu situation.

I tried to move the ubuntu to its own partition w/ MigrateWubi I ran the script and the screen very quickly went black. The machine still boots to the WinBootloader, where the "ubuntu" selection brings up Grub (ver1.99). GParted is showing that there is ~1GB in the migrated partition. (I think it worked.) When I look at the Disk Usage Analyzer, I get confused. Total fileSys cap= 100% @ 176GB Total fileSys usage= 46% @ 80GB. Nautilus is telling me there is 500MB of free space.

I'm fairly certain I'm still booting to the "old" win/ubuntu disk. Did MigrateWubi just move the OS, or the whole machine?

1) How can I get more disk space into Ubuntu on the old Win/Ubuntu partition?
or
2) How can I get the machine to boot the "new" Ubuntu-only partition? (To see if my stuff is there.)

I don't care which,... I just want to get Ubuntu updated, so I can get back to doing some real work. (Thanks)

              Boot Info Script 0.61      [1 April 2012]



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

 => Windows is installed in the MBR of /dev/sda.
 => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

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

sda2/Wubi: _____________________________________________________________________

    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: 

sda4: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.06 2012-10-23
    Boot sector info:  Syslinux looks at sector 32772 of /dev/sdb1 for its 
                       second stage. SYSLINUX is installed in the  directory. 
                       The integrity check of the ADV area failed. No errors 
                       found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux/syslinux.cfg 
                       /efi/boot/bootx64.efi /ldlinux.sys

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 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       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/sda2             206,848   327,886,847   327,680,000   7 NTFS / exFAT / HPFS
/dev/sda3         327,886,848   344,469,503    16,582,656  82 Linux swap / Solaris
/dev/sda4         344,469,504   483,733,503   139,264,000  83 Linux


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 4013 MB, 4013948928 bytes
5 heads, 32 sectors/track, 48998 cylinders, total 7839744 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    *          8,064     7,839,743     7,831,680   b W95 FAT32


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0       2a96c794-8761-4cb5-9aff-21f962f6621b   ext4       
/dev/sda1        D4DADAFDDADADB36                       ntfs       System Reserved
/dev/sda2        30E6E8FBE6E8C1E8                       ntfs       Win7_64
/dev/sda3        bd8be667-5909-4eef-996c-91fe74cd7599   swap       swapper
/dev/sda4        dc578365-832f-44c5-a776-f38dcba0d07b   ext4       MigratedUbuntu
/dev/sdb1        067C-0CB6                              vfat       PENDRIVE

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

Device           Mount_Point              Type       Options

/dev/loop0       /                        ext4       (rw,errors=remount-ro,commit=0)
/dev/sda2        /host                    fuseblk    (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sdb1        /media/PENDRIVE          vfat       (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)


======================== sda2/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,msdos2)'
search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
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=1
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-15-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-15-generic root=UUID=30E6E8FBE6E8C1E8 loop=/ubuntu/disks/root.disk ro acpi_osi=Linux acpi_backlight=vendor  quiet splash
    initrd /boot/initrd.img-2.6.38-15-generic
}
menuentry "Ubuntu, Linux 2.6.38-15-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-15-generic root=UUID=30E6E8FBE6E8C1E8 loop=/ubuntu/disks/root.disk ro single acpi_osi=Linux acpi_backlight=vendor
    initrd /boot/initrd.img-2.6.38-15-generic
}
menuentry "Ubuntu, Linux 2.6.38-14-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-14-generic root=UUID=30E6E8FBE6E8C1E8 loop=/ubuntu/disks/root.disk ro acpi_osi=Linux acpi_backlight=vendor  quiet splash
    initrd /boot/initrd.img-2.6.38-14-generic
}
menuentry "Ubuntu, Linux 2.6.38-14-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-14-generic root=UUID=30E6E8FBE6E8C1E8 loop=/ubuntu/disks/root.disk ro single acpi_osi=Linux acpi_backlight=vendor
    initrd /boot/initrd.img-2.6.38-14-generic
}
menuentry "Ubuntu, Linux 2.6.38-13-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-13-generic root=UUID=30E6E8FBE6E8C1E8 loop=/ubuntu/disks/root.disk ro acpi_osi=Linux acpi_backlight=vendor  quiet splash
    initrd /boot/initrd.img-2.6.38-13-generic
}
menuentry "Ubuntu, Linux 2.6.38-13-generic (recovery mode)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-13-generic root=UUID=30E6E8FBE6E8C1E8 loop=/ubuntu/disks/root.disk ro single acpi_osi=Linux acpi_backlight=vendor
    initrd /boot/initrd.img-2.6.38-13-generic
}
menuentry "Ubuntu, Linux 2.6.38-8-generic" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=30E6E8FBE6E8C1E8 loop=/ubuntu/disks/root.disk ro acpi_osi=Linux acpi_backlight=vendor  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,msdos2)'
    search --no-floppy --fs-uuid --set=root 30E6E8FBE6E8C1E8
    loopback loop0 /ubuntu/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-2.6.38-8-generic root=UUID=30E6E8FBE6E8C1E8 loop=/ubuntu/disks/root.disk ro single acpi_osi=Linux acpi_backlight=vendor
    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 D4DADAFDDADADB36
    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/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
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

  12.343776703 = 13.254029312   boot/grub/grub.cfg                             1
   3.910682678 = 4.199063552    boot/initrd.img-2.6.38-13-generic              1
  10.895057678 = 11.698479104   boot/initrd.img-2.6.38-14-generic              2
   3.687500000 = 3.959422976    boot/initrd.img-2.6.38-15-generic              2
   3.168514252 = 3.402166272    boot/initrd.img-2.6.38-8-generic               1
   3.351890564 = 3.599065088    boot/vmlinuz-2.6.38-13-generic                 2
   3.578453064 = 3.842334720    boot/vmlinuz-2.6.38-14-generic                 1
   7.246421814 = 7.780786176    boot/vmlinuz-2.6.38-15-generic                 1
  12.358371735 = 13.269700608   boot/vmlinuz-2.6.38-8-generic                  1
   3.687500000 = 3.959422976    initrd.img                                     2
  10.895057678 = 11.698479104   initrd.img.old                                 2
   7.246421814 = 7.780786176    vmlinuz                                        1
   3.578453064 = 3.842334720    vmlinuz.old                                    1

=========================== sdb1/boot/grub/grub.cfg: ===========================

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

if loadfont /boot/grub/font.pf2 ; then
    set gfxmode=auto
    insmod efi_gop
    insmod efi_uga
    insmod gfxterm
    terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Try Ubuntu without installing" {
    set gfxpayload=keep
    linux   /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
    initrd  /casper/initrd.lz
}
menuentry "Install Ubuntu" {
    set gfxpayload=keep
    linux   /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash --
    initrd  /casper/initrd.lz
}
menuentry "Check disc for defects" {
    set gfxpayload=keep
    linux   /casper/vmlinuz  boot=casper integrity-check quiet splash --
    initrd  /casper/initrd.lz
}
--------------------------------------------------------------------------------

========================= sdb1/syslinux/syslinux.cfg: ==========================

--------------------------------------------------------------------------------
# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50

# If you would like to use the new menu and be presented with the option to install or run from USB at startup, remove # from the following line. This line was commented out (by request of many) to allow the old menu to be presented and to enable booting straight into the Live Environment! 
# ui gfxboot bootlogo
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

            ?? = ??             boot/grub/grub.cfg                             1

================= sdb1: Location of files loaded by Syslinux: ==================

           GiB - GB             File                                 Fragment(s)

            ?? = ??             ldlinux.sys                                    1
            ?? = ??             syslinux/chain.c32                             1
            ?? = ??             syslinux/gfxboot.c32                           1
            ?? = ??             syslinux/menu.c32                              1
            ?? = ??             syslinux/syslinux.cfg                          1
            ?? = ??             syslinux/vesamenu.c32                          1

============== sdb1: Version of COM32(R) files used by Syslinux: ===============

 syslinux/chain.c32                 :  COM32R module (v4.xx)
 syslinux/gfxboot.c32               :  COM32R module (v4.xx)
 syslinux/menu.c32                  :  COM32R module (v4.xx)
 syslinux/vesamenu.c32              :  COM32R module (v4.xx)

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

./bootinfoscript: line 1646: [: 2.73495e+09: integer expression expected
share|improve this question
What do you mean when you say that you ran the script and the screen very quickly went black? It's a bash script that runs from a terminal - how did you run it? How about posting the rest of the bootinfoscript or pastebin it? But based on the bit shown you did not migrate the Wubi install. – bcbc Dec 6 '12 at 20:11
I ran the "move" script w/: sudo bash wubi-move.sh /dev/sda4 /dev/sda3 (I'm looking at the possible-dup now.) – John Dec 6 '12 at 20:35
I ran the "move" script w/: sudo bash wubi-move.sh /dev/sda4 /dev/sda3 sda4 is the "new" ubuntu partition. It was blank, formated @ ext4. sda3 is a 'swap' partition. The screen went black in lsec into the script. I ran it from the ubuntu that I was "moving". – John Dec 6 '12 at 20:42
Answer to 1) help.ubuntu.com/community/ResizeandDuplicateWubiDisk Answer to 2) the migration script does nothing until you answer "Y" after the initial checks... so you did not migrate anything. – bcbc Dec 6 '12 at 20:54
show 13 more comments

closed as off topic by fossfreedom Feb 2 at 10:19

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.