Page 1 of 2 12 LastLast
Results 1 to 10 of 23

Thread: Resizing the wubi partition in lucid

Hybrid View

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

    Re: Resizing the wubi partition in lucid

    Quote Originally Posted by durand View Post
    Thats ok, I appreciate it. I don't use wubi either but I might have to install it to see what works.

    Thanks.
    You can resize the root.disk. It's not strictly speaking a resize - you have to create a new bigger one and copy the data across (i.e. to make a 5GB disk 7GB, you need 7GB free space, not 2GB). It might be better to split the /home into a new virtual disk.

    The problem with lvpm is that it requires grub-legacy due to the way the transfer to partition part works (or doesn't work anymore, to be precise). The resize part is fairly simple. I've just run a test on it and it works (I made my new.disk 5GB):

    Code:
    sudo -i
    cd /host/ubuntu/disks
    dd if=/dev/zero of=new.disk bs=1M count=5000
    mkfs.ext4 -F new.disk  # use ext4 with new installs on 9.10 or later
    mkdir /media/extra
    mount -o loop,sync /host/ubuntu/disks/new.disk /media/extra
    rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host/*' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/root/.gvfs' / /media/extra
    umount /media/extra
    rmdir /media/extra
    exit
    #reboot to windows, rename root.disk to root.disk.old and new.disk to root.disk
    Caution should be used getting someone to run commands as root or using dd and mkfs - but you could easily put it in a shell script.
    Last edited by bcbc; September 9th, 2010 at 04:43 AM. Reason: remove extra "s from count param

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Resizing the wubi partition in lucid

    For the effort it takes to resize a wubi installation I suggest you go ahead and perform a standard installation, it is much easier to maintain and IMO wubi is for trial only.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

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

    Re: Resizing the wubi partition in lucid

    Quote Originally Posted by bodhi.zazen View Post
    For the effort it takes to resize a wubi installation I suggest you go ahead and perform a standard installation, it is much easier to maintain and IMO wubi is for trial only.
    The user can decide what they want to do. I don't think it's a large effort - maybe because it's not in a program or script, but it's a lot less 'real' effort (and risk) than resizing partitions.

  4. #4
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Resizing the wubi partition in lucid

    Quote Originally Posted by bcbc View Post
    The user can decide what they want to do. I don't think it's a large effort - maybe because it's not in a program or script, but it's a lot less 'real' effort (and risk) than resizing partitions.
    You are of course welcome to do as you wish. I think we will have to agree to disagree on this topic.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

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

    Re: Resizing the wubi partition in lucid

    Quote Originally Posted by bodhi.zazen View Post
    You are of course welcome to do as you wish. I think we will have to agree to disagree on this topic.
    I can do that

    The way I see it, people chose wubi for a reason. They deserve help if they need it, the same as any other forum user. When they're ready, they can move on to a real install. I don't think that we need to force their hand whenever they have a problem - but sure it's a good idea to suggest it, especially if its simpler than the fix.

  6. #6
    Join Date
    Nov 2005
    Location
    Leeds, UK
    Beans
    1,634
    Distro
    Ubuntu Development Release

    Re: Resizing the wubi partition in lucid

    Hmm, well, bcbc, thanks a lot for that! I'll tell my friend about the code but she's completely new to linux so I think it might be easier to just get her to reinstall it. I personally don't like using wubi because you're tied to windows that way. But anyway. Thanks bodhi.zazen as well

  7. #7
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Resizing the wubi partition in lucid

    Quote Originally Posted by bcbc View Post
    I can do that

    The way I see it, people chose wubi for a reason. They deserve help if they need it, the same as any other forum user. When they're ready, they can move on to a real install. I don't think that we need to force their hand whenever they have a problem - but sure it's a good idea to suggest it, especially if its simpler than the fix.
    You raise a good point, I would just say we do support wubi here.

    We just differ on when to advise one to do a "standard" install. I know the loop mounted file or virtual HD can be resized, but, IMO, most people who install wubi find that task to be more difficult then a standard installation.

    There are many support questions that are no more or less difficult on wubi then a standard install, and in those cases wubi is supported.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  8. #8
    Join Date
    Nov 2005
    Location
    Leeds, UK
    Beans
    1,634
    Distro
    Ubuntu Development Release

    Re: Resizing the wubi partition in lucid

    It should be pretty easy to support wubi resizes by just making a windows program to do all that.

  9. #9
    beew is offline I Ubuntu, Therefore, I Am
    Join Date
    Jun 2010
    Beans
    2,783

    Re: Resizing the wubi partition in lucid

    Quote Originally Posted by bcbc View Post
    The user can decide what they want to do. I don't think it's a large effort - maybe because it's not in a program or script, but it's a lot less 'real' effort (and risk) than resizing partitions.
    There will be no risk if OP gets an old external hard disk and install Ubuntu on it (a full install, not a live usb) . He can get a real Ubuntu installation and try that out by booting into it without altering anything in his internal drive (while WUBI does change his Windows install, like you would by installing any Windows program) As an added bonus it is portable so it can be used with almost any machine.

    I am with Bodhi, I am no fan of WUBI, it is a diminished shawdow of the real thing that works under the limitation of Windows,
    Last edited by beew; March 3rd, 2011 at 08:05 PM.

  10. #10
    Join Date
    Jan 2011
    Location
    Texas (United States)
    Beans
    29
    Distro
    Ubuntu UNR

    Re: Resizing the wubi partition in lucid

    I'm actually very fond of Wubi/loop-mounted installs.

    And it is VERY EASY to resize the disks...

    Just boot up using a LiveCD (preferably Maverick, though Lucid may work as well).

    Find the disk file (back it up first if you're wary).

    And use the resize2fs tool from the command line on it:
    http://manpages.ubuntu.com/manpages/...size2fs.8.html

    You may have to use the -f flag to force it to proceed on a file as opposed to a block device, but I'm not even sure this is necessary (and don't want to test it again right now).

    It will often tell you to run e2fsck first to check the filesystem before doing this, so just do what it says and then you should be able to try the resize2fs command again.

    It will automatically enlarge the file too, no need to use dd to append to the file or anything like that. You can also use it to shrink the disk, in which case it will automatically truncate the file too. The -M option is very handy for this to find the minimum size to shrink it down to. This is handy if you want to transfer it somewhere (and re-enlarge it later) or archive it somewhere.

    I've done this numerous times, as I've been fiddling around quite a bit with loop-mounted installs on various devices lately.

    Alternatively, you might even be able to do it from Windows, following this guide written for resizing casper-rw images (which are just ext3 filesystems in a file, which are overlaid over a Live CD image in order to allow changes to persist):
    http://www.pendrivelinux.com/how-to-...per-rw-images/

    It uses a tool called TopoResize.

    Hope all this helps and let me know if you have any questions! I'm quite fond of Wubi (or at least loop-mounted installs, I usually end up getting rid of all traces of the installation from Windows anyway). I love the ability to juggle partitions as files instead of repartitioning.

    EDIT: Didn't notice this thread had shifted more toward the topic of migration from a Wubi/loop-mounted install to a partition-based install. For that, I've been wondering how straight dd-ing the file into a partition would differ from a normal install (I know for one you'd need to go in and edit the fstab file to no longer mount from the file). Interestingly enough, I've done the opposite of this for testing out Natty on one of my devices. I installed the alpha 2 release on to a thumb drive using the normal install method to set it up on the thumb drive just as if it were a hard drive. I then dd'ed the thumb drive's partition into a file and went in and modified the fstab file to indicate the filesystem now being loopmounted, and it works (I setup GRUB by hand), though it is not quite the same as a wubi-install (mainly in the absence of the "host" folder).

    I'm also quite disappointed with the general pessimistic attitude toward Wubi installs and implications that they are not "real" installs (and maybe they aren't, depends on your definition of real, but why such pessimism?). I know it complicates things and makes things harder in terms of support, but from an idealistic sense, why should Ubuntu care so much what layers of filesystems are running under it? There are conveniences to having an install entirely housed in a file, and some users will enjoy those conveniences (I know I do, and I've run pure-Linux systems as well as Windows and hybrid multibooting systems).

    ~Troop
    Last edited by Trooper_Max; March 3rd, 2011 at 08:33 PM.

Page 1 of 2 12 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
  •