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

Thread: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

  1. #1
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    Please use this thread for discussion regarding

    https://help.ubuntu.com/community/Re...licateWubiDisk

    Support threads should be posted in normal forums.

    Thank you.

  2. #2
    Join Date
    Aug 2012
    Beans
    1

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    I prefer following version:
    (Assuming target size is 10GiB=2621440x4KiB)
    Code:
    cat /host/ubuntu/disks/root.disk /dev/zero | dd iflag=fullblock bs=4K count=2621440 of=/host/ubuntu/disks/newroot.disk
    fsck -y -f /host/ubuntu/disks/newroot.disk
    resize2fs /host/ubuntu/disks/newroot.disk 10G
    Neither dd nor resize2fs, alone, changes the size of the image , so the concatenation part is mandatory.

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

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    I've updated the wiki for release 1.6 of the script.

    There are no specific changes required to support Ubuntu 12.10, but I've added support for grub-legacy users (original install on Ubuntu 9.04 or earlier), and there's some minor cleanup.

    I've also added signed checksums of the scripts so that users can verify them before using.

  4. #4
    Join Date
    Sep 2011
    Beans
    2

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    For the step 5 of manual resize, there's a missing quote(') at the rsync command(at the end of exclude /home)

    rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host/*' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/home/*/.cache/gvfs' --exclude '/root/.gvfs' --exclude '/var/lib/lightdm/.gvfs' / /media/newdisk
    It didn't worked for me then only I noticed that there's a missing quote and now the rsync works for me

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

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    Quote Originally Posted by wcypierre View Post
    For the step 5 of manual resize, there's a missing quote(') at the rsync command(at the end of exclude /home)



    It didn't worked for me then only I noticed that there's a missing quote and now the rsync works for me
    Thanks for pointing that out. I'll fix it!

  6. #6
    Join Date
    Sep 2011
    Beans
    2

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    Quote Originally Posted by bcbc View Post
    Thanks for pointing that out. I'll fix it!
    you're welcome . I was relatively surprised that it wasn't working until I found the missing quote then only I get what it doesn't works

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

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    Quote Originally Posted by wcypierre View Post
    you're welcome . I was relatively surprised that it wasn't working until I found the missing quote then only I get what it doesn't works
    Thankfully most people take my advice and use the script which I test on an ongoing basis.

    But I should have rerun the manual commands after each edit so my apologies for that.

  8. #8
    Join Date
    May 2015
    Beans
    4

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    Why do I have to switch the disk names? if they're copied then they should be identical, right?

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

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    Quote Originally Posted by nathan73 View Post
    Why do I have to switch the disk names? if they're copied then they should be identical, right?
    Grub boots by searching for a file on any partition named /ubuntu/disks/root.disk. It loads the boot menu directly from inside this file (/boot/grub/grub.cfg), and this boot menu also directly refers to it by name (and partition). By switching the disk names it will naturally start using the new copy. If you don't, it will just keep booting the old one.

  10. #10
    Join Date
    May 2015
    Beans
    4

    Re: Discussion - https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk

    Quote Originally Posted by bcbc View Post
    Grub boots by searching for a file on any partition named /ubuntu/disks/root.disk. It loads the boot menu directly from inside this file (/boot/grub/grub.cfg), and this boot menu also directly refers to it by name (and partition). By switching the disk names it will naturally start using the new copy. If you don't, it will just keep booting the old one.
    I did that, but it doesn't give me any more disk space. I was hoping to keep the old root as a back up, but do I have to delete it anyway? If so, how do I safely delete it? (assuming that the new root is confirmed to be working fine)

Page 1 of 2 12 LastLast

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
  •