Re: Moving Away from Wubi
Your output shows unallocated space. If you create an extended partition, then you can create a swap partition as well (You can have multiple logical partitions in an extended partition).
But since you haven't posted the details on how big the partitions are, it's unclear whether you'd have enough space (or even if /dev/sda4 is big enough).
The command as you have it will work. You are supposed to change the partition to be for your situation, i.e. /dev/sda4.
(And provided you used the same mountpoint as showed in the example)
The only issue with running from a live environment is that the architecture has to match the install (i.e. if you have a 64-bit wubi install, you need to run the migration from a 64-bit live CD).
The migration script will check the target partition (and architecture) and various other things to make sure it can proceed - before it makes any changes. (It's generally easier to run it from the Wubi install itself, but the live environment migration works fine too).
Re: Moving Away from Wubi
Quote:
Originally Posted by
bcbc
Your output shows unallocated space. If you create an extended partition, then you can create a swap partition as well (You can have multiple logical partitions in an extended partition).
But since you haven't posted the details on how big the partitions are, it's unclear whether you'd have enough space (or even if /dev/sda4 is big enough).
The command as you have it will work. You are supposed to change the partition to be for your situation, i.e. /dev/sda4.
(And provided you used the same mountpoint as showed in the example)
The only issue with running from a live environment is that the architecture has to match the install (i.e. if you have a 64-bit wubi install, you need to run the migration from a 64-bit live CD).
The migration script will check the target partition (and architecture) and various other things to make sure it can proceed - before it makes any changes. (It's generally easier to run it from the Wubi install itself, but the live environment migration works fine too).
Looks like I have to do some upgrading on my live USB (I put it in 32 bit so it would work on any computer).
Here are my partitions:
Code:
Partition - Label/Name - Size - Notes (from me) - Flags (from GParted, not me)
/dev/sda1 - SYSTEM - 33.59/100.00 MB - to be left untouched - boot
/dev/sda2 - HP - 223.40/761.68 GB - where Ubuntu currently is - none
/dev/sda3 - FACTORY_IMAGE - 9.69/11.32 GB - to be destroyed, resized, and merged with unallocated space - none
/dev/sda4 - Ubuntu - 2.67/158.22 GB - where I want to move Ubuntu to - none
unallocated - 196.71 MB - to be merged with sda3 - none
I'm going to delete sda3, rezise the unallocated space, and reserve 16 GB for swap space (I will also resize HP and Ubuntu to meet 16 GB, because swap space is supposed to be the same amount as the RAM you have or double-I have the space to double it).
sda3 is no longer needed-it's for Windows recovery. I don't need Windows anymore. I have VirtualBox taking care of my every need for Windows (which are very few, might I add).
Also, sda3 is displayed after sda4 on GParted, so I won't have any trouble with sda4 getting in the way, if you're wondering that.
I'm just going to use my x64 live DVD, as I don't have enough space to turn my live USB into x64, as I don't have the space to download it all.
Re: Moving Away from Wubi
I have gotten my filesystem the way I want now.
Code:
Partition - Name - Size (used/total) - Filesystem - Flags (GParted) - Notes (from me)
/dev/sda1 - SYSTEM - 33.59/100.00 MB - ntfs - boot - not going to mess with this
/dev/sda2 - HP - 223.40/755.42 GB - ntfs - none - where Ubuntu currently is
/dev/sda4 - Ubuntu - 2.60/160 GB - ext3 - none - where Ubuntu is going to be moved to
/dev/sda3 - Swap - NA/16 GB - linux-swap - none - swap space
sda3 used to be FACTORY_IMAGE. Well, I don't use Windows anymore, so I deleted the recovery partition and made it my swap space. I'm probably going to delete sda2 fairly soon, and go all Ubuntu (in which case I might also delete SYSTEM on sda1, as I'm pretty sure that is a Lozedoze required partition).
So, this is the command I will use to move my Wubi drive to my new Ubuntu partition on sda4:
Code:
sudo bash wubi-move-2.2.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda4 /dev/sda3
In the command, /dev/sda4 is the target, and /dev/sda3 is the swap. My command is modified from this command:
Code:
sudo bash wubi-move-2.2.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda5 /dev/sda6
The command is from here. sda5 is the target, and sda6 is the swap. I am going to run this from my DVD, as making my flash drive 64 bit is going to be a real pain since I have no real room left on my Wubi drive.
Am I ready to go?
Re: Moving Away from Wubi
Looks good...
16 GB is really a lot of swap. The 2x recommendation is good if you have a small amount of RAM. But it's not needed if you have e.g. 8 GB of RAM. I tend to add 500MB to the size of my RAM when it's over 2GB e.g. 3GB RAM -> 3.5GB swap.
But it won't hurt if that's what you want.
Re: Moving Away from Wubi
Quote:
Originally Posted by
bcbc
Looks good...
16 GB is really a lot of swap. The 2x recommendation is good if you have a small amount of RAM. But it's not needed if you have e.g. 8 GB of RAM. I tend to add 500MB to the size of my RAM when it's over 2GB e.g. 3GB RAM -> 3.5GB swap.
But it won't hurt if that's what you want.
Yeah, I read that after I partitioned the swap space. But, I haven't heard of having TOO much swap space, so I guess I'm alright.
Re: Moving Away from Wubi
I will now perform the command. If something goes wrong, I have everything backed up.
Code:
sudo bash wubi-move-2.2.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda4 /dev/sda3
For some reason, I copied and pasted the command, and this is what I get:
Code:
ubuntu@ubuntu:~$ sudo bash wubi-move-2.2.sh --root-disk=/media/New\ Volume/ubuntu/disks/root.disk /dev/sda4 /dev/sda3
bash: wubi-move-2.2.sh: No such file or directory
Also, I'm trying to do this via a live DVD.
Edit: I realized I needed to change the directory, and that worked-sorta.
Code:
ubuntu@ubuntu:~$ cd /home/ubuntu/Downloads/wubi-move-2.2/
ubuntu@ubuntu:~/Downloads/wubi-move-2.2$ sudo bash wubi-move-2.2.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda4 /dev/sda3
wubi-move-2.2.sh: Validating migration source...
wubi-move-2.2.sh: root disk not found: /media/win/ubuntu/disks/root.disk
wubi-move-2.2.sh: Validation of migration source failed
wubi-move-2.2.sh: Migration did not complete successfully.
ubuntu@ubuntu:~/Downloads/wubi-move-2.2$
Do I need to have my hard drive show up on the Unity launcher for this to work?
How to I find the root.disk file?
Re: Moving Away from Wubi
That /media/win is a mount point. It's what the partition holding the root.disk is mounted on.
e.g.
Code:
sudo mkdir /media/win
sudo mount /dev/sda2 /media/win
sudo bash wubi-move-2.2.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda4 /dev/sda3
Now it will work. If you already have /dev/sda2 mounted then use the existing mountpoint e.g. if it's mounted on /media/HP then use:
Code:
sudo bash wubi-move-2.2.sh --root-disk=/media/HP/ubuntu/disks/root.disk /dev/sda4 /dev/sda3
It depends on the actual mountpoint... and only you can know what it is :)
Re: Moving Away from Wubi
Quote:
Originally Posted by
bcbc
That /media/win is a mount point. It's what the partition holding the root.disk is mounted on.
e.g.
Code:
sudo mkdir /media/win
sudo mount /dev/sda2 /media/win
sudo bash wubi-move-2.2.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda4 /dev/sda3
Now it will work. If you already have /dev/sda2 mounted then use the existing mountpoint e.g. if it's mounted on /media/HP then use:
Code:
sudo bash wubi-move-2.2.sh --root-disk=/media/HP/ubuntu/disks/root.disk /dev/sda4 /dev/sda3
It depends on the actual mountpoint... and only you can know what it is :)
I realized that-mine was /mnt/ubuntu/disks/root.disk
Anyway, I did it. However, it claims the swap space can't be made. I have read that, if the swap is on the same disk as the Ubuntu partition, it is automatically recognized as swap space. Is this correct?
Re: Moving Away from Wubi
Quote:
Originally Posted by
Ubun2to
I realized that-mine was /mnt/ubuntu/disks/root.disk
Anyway, I did it. However, it claims the swap space can't be made. I have read that, if the swap is on the same disk as the Ubuntu partition, it is automatically recognized as swap space. Is this correct?
The live CD will find and use any existing swap partition... I don't think a normal install will do the same thing.
Also, it won't be set up for hibernation - you'll have to do that manually which is a (little bit of a) pain.
What was the error?
Anyway - with that much RAM you won't notice it at first. Once you've got everything working fine I can assist with your setup of the swap if you need help. Kind of curious though why it didn't work though!