Results 1 to 8 of 8

Thread: [Script] Mount Wubi Disk from Linux

  1. #1
    Join Date
    Oct 2008
    Location
    England
    Beans
    960
    Distro
    Ubuntu 8.04 Hardy Heron

    [Script] Mount Wubi Disk from Linux

    Just posting this for people who are converting their wubi install to a dedicated partition with LVPM. Once done you may want to access your old setup in the event you modify something or whatever.

    In the following examples you may need to edit some of the paths to match your system setup. The following scripts assume your Windows partition is on /dev/sda1.

    Make a new text file:
    Code:
    #!/bin/sh
    sudo mkdir -p /media/WindowsXP
    echo "Mounting NTFS Partition"
    sudo mount -t ntfs /dev/sda1 /media/WindowsXP
    sleep 1
    sudo mkdir -p /media/root.disk
    echo "Mounting Wubi Disk"
    sudo mount -o loop /media/WindowsXP/ubuntu/disks/root.disk /media/root.disk
    sleep 1
    echo "Done :)"
    gksu nautilus /media/root.disk
    exit 0 &
    Save this as mountwubi.sh. Right click this new file, select Permissions tab and put a tick in the Execute box.

    Create another text file:
    Code:
    #!/bin/sh
    echo "Unmounting Wubi Disk"
    sudo umount /media/root.disk
    sleep 1
    echo "Unmounting NTFS Partition"
    sudo umount /media/WindowsXP
    sleep 1
    echo "Done :)"
    exit 0 &
    Save this as umountwubi.sh. Right click this new file, select Permissions tab and put a tick in the Execute box.


    Double clicking mountwubi.sh and selecting Run in Terminal will mount your old wubi install and open a root nautilus for full access to the files.
    The function of umountwubi.sh is pretty obvious
    Last edited by Yashiro; January 12th, 2009 at 06:00 PM.

  2. #2
    Join Date
    Jun 2009
    Beans
    19
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [Script] Mount Wubi Disk from Linux

    sorry to bump this old thread,
    but, does this assume ubuntu is installed to C:\Ubuntu (default) ?
    and, can i simply copy everything from the disk and paste it
    into my file system, reboot, and magically have my system exactly
    as my wubi was?

    lol can i, can i, pleasssse?

  3. #3
    Join Date
    Apr 2008
    Location
    California Republic
    Beans
    2,657

    Re: [Script] Mount Wubi Disk from Linux

    Quote Originally Posted by Aaron.A View Post
    sorry to bump this old thread,
    but, does this assume ubuntu is installed to C:\Ubuntu (default) ?
    and, can i simply copy everything from the disk and paste it
    into my file system, reboot, and magically have my system exactly
    as my wubi was?

    lol can i, can i, pleasssse?
    nope.

    but you can copy all the hidden files/folders from your old home into/over the ones in your new home.

    the .mozilla directory in /home, for example, has all your firefox bookmarks, settings, etc
    Last edited by earthpigg; January 8th, 2011 at 11:54 PM.
    Semper Fi

    My Non-Ubuntu Blog.
    All posts by me are Public Domain.

  4. #4
    Join Date
    Jun 2009
    Beans
    19
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [Script] Mount Wubi Disk from Linux

    Quote Originally Posted by earthpigg View Post
    nope.

    but you can copy all the hidden files/folders from your old home into/over the ones in your new home.

    the .firefox directory in /home, for example, has all your firefox bookmarks, settings, etc
    thanks a lot mate
    i only had to modify sda1 to sda2 so no problems there.
    i'm moving the files now.

  5. #5
    Join Date
    Apr 2010
    Location
    Barnsley, South Yorks. UK
    Beans
    6
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: [Script] Mount Wubi Disk from Linux

    Just gotta say thanks for this, been spending a lot of time looking for an answer like this...

    It never occured to me to mount the NTFS partition first

    Many thanks

    Jimmy

  6. #6
    Join Date
    Mar 2007
    Location
    Dallas, TX
    Beans
    55
    Distro
    Ubuntu Studio 10.10 Maverick Meerkat

    Re: [Script] Mount Wubi Disk from Linux

    just another note to say thank you

  7. #7
    Join Date
    Jan 2011
    Beans
    2

    Re: [Script] Mount Wubi Disk from Linux

    Thank you very much. I had lot of struggle trying to do this and the answer is simple!

  8. #8
    Join Date
    Oct 2011
    Beans
    1

    Wink Re: [Script] Mount Wubi Disk from Linux

    Sorry for interrupting.. How can i use my root.disk file (or entire C:\ubuntu\ folder) from a WUBI installation to replace entirely for the same version of UBUNTU installed on a different partition inside the same drive as C:\?? REASON: i'm tired of using the root.disk (WUBI install) because UBUNTU has become too slow as Windows (C:\) has that fragmentation handicap.... So, i installed a fresh UBUNTU of the same version on a partition inside the same drive with live CD but i don't wanna configure all again and just thought of mounting entire root.disk file on the partition of new UBUNTU and replace all files if needed. IS that possible? I know i have to change a bit the grub.cfg file for booting questions. CAN this be DONE this way?? THANKS my friends!

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
  •