-
4 Attachment(s)
HOWTO: migrate wubi install to partition
The information in this thread have been moved to https://help.ubuntu.com/community/MigrateWubi
A thread for discussion of the wiki page only can be found here http://ubuntuforums.org/showthread.php?t=2012400
Thread closed.
This HOWTO has been moved to a community-maintained Wiki: https://help.ubuntu.com/community/MigrateWubi
For the reason why, see here.
================================================== ===========
This HOWTO describes how to migrate a Wubi install to partition. The partition(s) must be created already - this is not covered in this guide (but see here). The examples shown below assume the target partition is /dev/sda5 and the swap partition (if required) is /dev/sda6.
Automatic migration
The migration supports Wubi installs from 8.04 to 12.04, with Grub2 or grub-legacy.
First download the attached file wubi-move-2.2.tar.gz to your Downloads directory, right-click and choose "Extract here".
The rest of the migration is run from the terminal. See How to migrate in pictures
To migrate to /dev/sda5 with swap on /dev/sda6
Code:
sudo bash wubi-move-2.2.sh /dev/sda5 /dev/sda6
To migrate to /dev/sda5 without swap
Code:
sudo bash wubi-move-2.2.sh /dev/sda5
If you don't want to install the grub bootloader, use the --no-bootloader option. You can boot from the Wubi install's grub menu temporarily and manually install the grub bootloader later.
Code:
sudo bash wubi-move-2.2.sh --no-bootloader /dev/sda5 /dev/sda6
To migrate from the root.disk when running from a live CD/USB:
Code:
sudo bash wubi-move-2.2.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda5 /dev/sda6
The path to the root.disk is case-sensitive and if it contains spaces they must be escaped e.g.
Code:
sudo bash wubi-move-2.2.sh --root-disk=/media/New\ Volume/ubuntu/disks/root.disk /dev/sda5 /dev/sda6
You can migrate to separate partitions for /boot, /usr and /home
Code:
sudo bash wubi-move-2.2.sh /dev/sda5 /dev/sda6 --boot=/dev/sda1 --usr=/dev/sda7 --home=/dev/sda8
For full usage instructions and notes:
Code:
bash wubi-move-2.2.sh --help
bash wubi-move-2.2.sh --notes
The code is now hosted on GitHub. You can keep track of new development or contribute. See https://github.com/bcbc/Wubi-move
Known issues with script:
1. Running "update-grub" in the chroot doesn't pick up other linux installations on the same drive (same running the script or manual commands listed above). This is unlikely an issue for wubi users. Run sudo update-grub after booting the new install for the first time.
2. Only the current kernel's initrd.img is updated on the migrated install; if you require others you can update them with "sudo update-initramfs -u -k <kernel version>".
3. End of life releases that have grub-legacy must be upgraded to a supported release before migrating.
Other known issues:
1. Many older BIOSes cannot address more than 137GB from the start of the disk. If you try migrating to a partition that falls outside of this, then Grub2 will fail to load it's boot files. Even if only a part of the partition falls outside this range there is a possibility of grub failure in the future. Therefore, either confirm your BIOS is unaffected prior to partitioning, or ensure your target partition falls within this limit, or migrate to a separate boot partition within this limit.
2. The process that Wubi uses to boot (wubildr.mbr) cannot read ext3/4 partitions prior to release 11.10. It reads partitions in BIOS order looking for the wubildr file, so if finds an ext3/4 partiton before it finds the wubildr file - it will hang up. So, make sure you install the grub2 bootloader if you migrate to a partition lower than the one containing wubildr i.e. if Windows is on /dev/sda2 and you migrate to /dev/sda1
A note on hibernation:
The migration script will enable hibernation automatically, provided you migrate with a swap partition and the swap partition is large enough (must be > the size of your RAM).
For those interested, I've included the steps required to manually migrate in another post.
-
Re: HOWTO: migrate wubi install to partition
I used this to migrate an installation on a Dell Inspiron 9400. Worked with no problems.
Thanks very much for this, especially since the LVPM approach does not work for 10.04.
Will be trying this on an MSI Wind next..
Steve
-
Re: HOWTO: migrate wubi install to partition
The MSI WInd worked as well. It has netbook edition installed, with Win7 as the other OS.
In both cases, I had to manually install grub to the MBR after booting up the new installation. Other than that it worked as advertised.
Thanks again.
Steve
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
SteveGoTex
The MSI WInd worked as well. It has netbook edition installed, with Win7 as the other OS.
In both cases, I had to manually install grub to the MBR after booting up the new installation. Other than that it worked as advertised.
Thanks again.
Steve
Great - thanks for the feedback. :)
Regarding needing to install grub afterwards, are you saying that the command 'grub-install /dev/sda' didn't work (if you ran it manually) or that the script failed to install it (and you didn't specify --no-bootloader)?
-
Re: HOWTO: migrate wubi install to partition
It did not work from the script, while i was still running in the Wubi installation. Once I had rebooted the new installation (from the Wubi boot list), was able to install grub to the MBR.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
SteveGoTex
It did not work from the script, while i was still running in the Wubi installation. Once I had rebooted the new installation (from the Wubi boot list), was able to install grub to the MBR.
It seems to be working for me... you should have been prompted:
Code:
wubi-move.sh: The grub2 bootloader will be installed to drive (/dev/sda)
wubi-move.sh: If you select no, you have to boot your new install
wubi-move.sh: from the wubi menu and install it later manually.
wubi-move.sh: Install the grub bootloader to /dev/sda? (Y/N)
Then, unless, you enter 'n' or 'N' it proceeds to install it.
Note, if you migrate your wubi to a partition on another drive, the script will only permit installing the bootloader on that drive, which may not necessarily be the drive you boot from.
The only exception to this is if you use the --no-bootloader option. But I'll run some more tests anyway to make sure.
EDIT:
After further testing I've discovered that the package lupin-support (required for Wubi installs) modifies the grub-install command, but this isn't consistent across releases. For 10.04 the command 'grub-install --root-directory=xxx /dev/sda' was not actually updating the MBR, whereas on a 9.10 install it works fine. So I've modified the script to run grub-install within the target install (using chroot) as the lupin-support is already removed and the results should be consistent across releases.
Thanks again for the feedback.
Further EDIT:
In fact there is a bug in lupin-support in 10.04 Ubuntu that makes grub-install act differently depending on whether the wubi is installed on the same partition as windows or not. In my case, the --root-directory option was working, but when I tried the same command on a more typical install on the same partition as windows, it did not work.
It's not relevant for the migration anymore as the script is doing grub-install in chroot, however, might impact other wubi users. Here is the bug report: https://bugs.launchpad.net/ubuntu/+s...in/+bug/604417
-
Re: HOWTO: migrate wubi install to partition
Hi
Apologies, I'm very new to Ubuntu and terminology etc.
I have a hard drive that is partitioned into 2 seperate partitions i.e. looks like 2 seperate drives. I'll call these drive 1 and drive 2.
Drive 1 is where my XP is installed, and I believe my Ubuntu 'wubi' is installed here too. Drive 2 is literally just used as a store for all my pictures, music and videos.
What I want to do is remove XP, merge the partitions into a single drive and use Ubuntu only (migrate away from wubi?).
Can this be done using the method above?
I can copy all of the files in 'Drive 2' to and external HD so after that, I dont mind deleting everything on the drive.
Thanks,
Rich
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
sav25
Hi
Apologies, I'm very new to Ubuntu and terminology etc.
I have a hard drive that is partitioned into 2 seperate partitions i.e. looks like 2 seperate drives. I'll call these drive 1 and drive 2.
Drive 1 is where my XP is installed, and I believe my Ubuntu 'wubi' is installed here too. Drive 2 is literally just used as a store for all my pictures, music and videos.
What I want to do is remove XP, merge the partitions into a single drive and use Ubuntu only (migrate away from wubi?).
Can this be done using the method above?
I can copy all of the files in 'Drive 2' to and external HD so after that, I dont mind deleting everything on the drive.
Thanks,
Rich
The method here is a straightforward migration of wubi to a new partition. It's intended for users who want to keep all the customization they've done on a wubi install, but would like to move to a 'traditional' dual boot.
It's possible to use it as part of a strategy to accomplish what you want, but I think you should create a separate thread for this as it's going beyond the scope of the topic. You can edit your post above with a link to the thread and I'll find it.
-
Re: HOWTO: migrate wubi install to partition
Thank you sooo much! Awesome Guide! Finally i could migrate my Kubuntu 10.04!
I only had to reinstall my nvidia (proprietary) drivers. Everything else worked perfectly!
Thank you!
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
fbtb
Thank you sooo much! Awesome Guide! Finally i could migrate my Kubuntu 10.04!
I only had to reinstall my nvidia (proprietary) drivers. Everything else worked perfectly!
Thank you!
Great, you're welcome :)
I'll take a look at the driver issue when I get a moment. I don't use proprietary graphics drivers, but I don't see any reason why this wouldn't be included in the migration.
-
Re: HOWTO: migrate wubi install to partition
can I re-publish your guide with my native language and share it to my friends?
:D
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
rainazure
can I re-publish your guide with my native language and share it to my friends?
:D
Feel free :)
Note that the script is under GNU GPL, as it is based on the original wubi-move-to-partition from the Wubi Guide
-
Re: HOWTO: migrate wubi install to partition
Just want to say thanks for this thread. I migrated a wubi partition a year or two ago and it was hectic, but this method was astonishingly easy. For anyone that's interested, here is what I did:
1. Started with a single partition with windows.
2. Used an old version of Partition Magic to resize windows partition, leaving a large part of the drive unallocated.
3. Installed Wubi and got ubuntu up and running.
4. In ubuntu, installed gparted via synaptic manager.
5. Using gparted, made a 1gb swap (for 512 ram) on the end of the unallocated space, and in the middle between windows and swap, I created an ext4 partition.
6. Downloaded wubi-move.sh, opened terminal, navigated to my download folder, and typed "sudo bash wubi-move.sh /dev/sda2 /dev/sda3" being sure to say "Y" to grub
7. It finished, and I now have a full ubuntu installation on my broken-floppy, broke-cd, no-usb-boot laptop.
Thank you again.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
lucastrike
Just want to say thanks for this thread. I migrated a wubi partition a year or two ago and it was hectic, but this method was astonishingly easy. For anyone that's interested, here is what I did:
1. Started with a single partition with windows.
2. Used an old version of Partition Magic to resize windows partition, leaving a large part of the drive unallocated.
3. Installed Wubi and got ubuntu up and running.
4. In ubuntu, installed gparted via synaptic manager.
5. Using gparted, made a 1gb swap (for 512 ram) on the end of the unallocated space, and in the middle between windows and swap, I created an ext4 partition.
6. Downloaded wubi-move.sh, opened terminal, navigated to my download folder, and typed "sudo bash wubi-move.sh /dev/sda2 /dev/sda3" being sure to say "Y" to grub
7. It finished, and I now have a full ubuntu installation on my broken-floppy, broke-cd, no-usb-boot laptop.
Thank you again.
Great, you're welcome :)
That's a good workaround - I was considering doing this on my netbook the other day.
-
Re: HOWTO: migrate wubi install to partition
Hi bcbc,
Just followed your manual instructions and successfully moved my wubi onto a new partition without a hitch. Excellent work. I'm really pleased!
A question I still have: Now when I boot I don't get the option of going into Windows. Instead, I get the Ubuntu option of the new partition (sda7) and the wubi option (or so I think, as it says Ubuntu sda1). However, when I click on the wubi option it directs me to the screen I used to have when I booted, which was Ubuntu (wubi) and Windows. When I click on Windows, it opens just fine. (I'd like to get rid of XP, but I still need it for Geosetter and to get at my Bible commentaries in Libronix).
I'm just wondering what will happen if I uninstall wubi-Ubuntu within Windows: Will Windows still show up when I boot? I'm a bit scared to experiment: Before I installed wubi I tried to install Ubuntu on a new partition parallel to Windows with the net result that the computer refused to boot at all. Wubi worked fine as has this migration. In all fairness, I think it was my Windows setup that caused things to go awry the first time.
Thanks again for your help!
-
Re: HOWTO: migrate wubi install to partition
ok, I uninstalled ubuntu in Windows XP without a hitch and deleted wubildr.mbr='Ubuntu' in boot.ini. No problem! A slight cosmetic issue: The last option on the bootscreen says Ubuntu but boots Windows when entered. But Windows and Ubuntu now boot without a hitch.
Great!
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
dieter1
ok, I uninstalled ubuntu in Windows XP without a hitch and deleted wubildr.mbr='Ubuntu' in boot.ini. No problem! A slight cosmetic issue: The last option on the bootscreen says Ubuntu but boots Windows when entered. But Windows and Ubuntu now boot without a hitch.
Great!
Ok, got the cosmetic issue sorted out. sudo update-grub was all I needed to do. :D
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
dieter1
ok, I uninstalled ubuntu in Windows XP without a hitch and deleted wubildr.mbr='Ubuntu' in boot.ini. No problem! A slight cosmetic issue: The last option on the bootscreen says Ubuntu but boots Windows when entered. But Windows and Ubuntu now boot without a hitch.
Great!
That's interesting... I've never seen grub from a regular install pick up a wubi install within windows before. Maybe it's a new thing. Are you running 10.04 with the latest updates?
Good you got it resolved. It's always a good idea to run sudo update-grub after the migration... I've seen some minor oddities when running update-grub within the chroot.
UPDATE: If the Wubi Ubuntu was set as the default OS in Windows Boot Manager, grub will use it to identify your Windows install. This can be solved by changing the default OS in Windows Startup & Recover settings and rerunning "sudo update-grub"
-
Re: HOWTO: migrate wubi install to partition
Thank you. The script worked well. The only issue now is with grub. When booting from grub, I now don't get any splash screen. In fact, after choosing to boot from a kernel of choice the screen remains blank for about 15 seconds before it springs to life with a fully-formed Lucid display screen. I suppose that's ok but I would like to see something happening during the boot. I've enabled everything I think I should in startup manager. I'm using an x64 installation. I've done sudo update-grub several times
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
Ziggy72
Thank you. The script worked well. The only issue now is with grub. When booting from grub, I now don't get any splash screen. In fact, after choosing to boot from a kernel of choice the screen remains blank for about 15 seconds before it springs to life with a fully-formed Lucid display screen. I suppose that's ok but I would like to see something happening during the boot. I've enabled everything I think I should in startup manager. I'm using an x64 installation. I've done sudo update-grub several times
I'm not sure that this has anything to do with the migration. There is a known issue with the boot splash showing. This thread has a short description and fix, and this is the full bug report.
-
Re: HOWTO: migrate wubi install to partition
Thank you very much bcbc!!! Your script has worked wonderly on my old toshiba satellite.
I want republish your fantastic guide in italian on my blog.
Excuse my bad english... Good look!:wink:
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
mercurius80
Thank you very much bcbc!!! Your script has worked wonderly on my old toshiba satellite.
I want republish your fantastic guide in italian on my blog.
Excuse my bad english... Good look!:wink:
Great you're welcome :) Feel free to republish.
-
Re: HOWTO: migrate wubi install to partition
Exactly, what I was looking for.
Thanks a lot for such an awesome post :popcorn:
-
Re: HOWTO: migrate wubi install to partition
Hi. Add me to your growing fan base.
Finding your script and this article solved a number of headaches for me. I have spent weeks getting LVPM to work, and when it seemed to me that I won't be able to, I thought I was in serious trouble. I have tried other tools as well, not just LVPM.
It started way way back. There is something between the CD/DVD device on my computer and ubuntu/linux distros. It's not media; it is not hardware. My WinXP, running on the same computer, reads, checks and verifies these distros without any problem. The same with my son's Ubuntu machine. But for whatever reason, my computer simply won't run those distros live from the cd the way they were meant to.
My machine does not boot from a USB stick, either.
A few years back, the only way I was able to dual boot a winxp and an ubuntu 8.04 on my machine was via wubi, and then onto separate partitions with lvpm afterwards. I am not a techie; the pc/linux/win world is alien territory to me. So you could very well imagine how difficult and painful this was for me. Even days afterwards, I still dreaded the thought that I may have to go through it again.
To cut this short: it's been a great relief to me when I saw your script worked.
Thank you very much.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
k2filter
Exactly, what I was looking for.
Thanks a lot for such an awesome post :popcorn:
Quote:
Originally Posted by
maskiepop
Thank you very much.
I'm glad to hear it's helping out :D
-
Re: HOWTO: migrate wubi install to partition
Nice work bcbc
Don't need to use it but happy to appreciate some clever scripting
;)
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
jaycee23
Nice work bcbc
Don't need to use it but happy to appreciate some clever scripting
;)
Thanks - I appreciate the complement :)
(I have to reiterate that I just patched and enhanced Agostino Russo's original script. I don't want to take credit for his work.)
-
Re: HOWTO: migrate wubi install to partition
Hello,
Thanks a lot for the HOWTO!
my question:
when im at this step
root@ubuntu:/# grub-install /dev/sda
i get the following
/dev/loop0 does not have any corresponding BIOS drive.
can u help me please?
Thanks again!
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
ULTRAM4X
Hello,
Thanks a lot for the HOWTO!
my question:
when im at this step
root@ubuntu:/# grub-install /dev/sda
i get the following
/dev/loop0 does not have any corresponding BIOS drive.
can u help me please?
Thanks again!
Did you notice any other errors before this? Post the terminal output between [CODE][/CODE] tags.
Try:
Code:
grub-install --recheck /dev/sda
-
Re: HOWTO: migrate wubi install to partition
well, when i was here
Code:
root@ubuntu:~# apt-get -y remove lupin-support
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
El paquete lupin-support no esta instalado, no se eliminará
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
W: Duplicate sources.list entry http://archive.canonical.com/ lucid/partner Packages (/var/lib/apt/lists/archive.canonical.com_dists_lucid_partner_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.canonical.com/ lucid/partner Packages (/var/lib/apt/lists/archive.canonical.com_dists_lucid_partner_binary-amd64_Packages)
W: Tal vez quiera ejecutar 'apt-get update' para corregir estos problemas
i get that error.
trying
Code:
root@ubuntu:~# grub-install --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
/dev/loop0 does not have any corresponding BIOS drive.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
ULTRAM4X
well, when i was here
Code:
root@ubuntu:~# apt-get -y remove lupin-support
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
El paquete lupin-support no esta instalado, no se eliminará
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
W: Duplicate sources.list entry http://archive.canonical.com/ lucid/partner Packages (/var/lib/apt/lists/archive.canonical.com_dists_lucid_partner_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.canonical.com/ lucid/partner Packages (/var/lib/apt/lists/archive.canonical.com_dists_lucid_partner_binary-amd64_Packages)
W: Tal vez quiera ejecutar 'apt-get update' para corregir estos problemas
i get that error.
trying
Code:
root@ubuntu:~# grub-install --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
/dev/loop0 does not have any corresponding BIOS drive.
So from my limited translation skills, it looks like you don't have lupin-support installed? This is strange since you should have booted into a wubi install before migrating.
Can you run grub-install with the --debug option?
i.e. grub-install --debug /dev/sda
EDIT:
if you're having issues, you can complete the migration - all the steps to exit the chroot (just ignore grub-install and update-grub). Then reboot and try again. You haven't changed the wubi install at this point, so you can just rerun the migration (and reformat the target partition). I am a bit concerned about the missing lupin-support, so think it's safer to try again.
-
Re: HOWTO: migrate wubi install to partition
yes, i had lupin-support before!
but in this step
Code:
apt-get -y remove lupin-support
was uninstalled.
trying
root@ubuntu:~# grub-install --debug /dev/sda
Code:
+ bootdir=/boot
+ grubdir=/boot/grub
+ device_map=/boot/grub/device.map
+ set /usr/sbin/grub dummy
+ test -f /usr/sbin/grub
+ :
+ test -f /usr/lib/grub/x86_64-pc/stage1
+ :
+ test -f /usr/lib/grub/x86_64-pc/stage2
+ :
+ test -d /boot
+ test -d /boot/grub
+ test no = yes
+ test -f /boot/grub/device.map
+ :
+ sed -n /^([fh]d[0-9]*)/s/\(^(.*)\).*/\1/p /boot/grub/device.map
+ uniq -d
+ sort
+ sed -n 1p
+ tmp=
+ test -n
+ find_device
+ df /
+ sed -n s%.*\(/dev/[^ ]*\).*%\1%p
+ tmp_fname=/dev/loop0
+ test -z /dev/loop0
+ resolve_symlink /dev/loop0
+ tmp_fname=/dev/loop0
+ test -L /dev/loop0
+ echo /dev/loop0
+ tmp_fname=/dev/loop0
+ echo /dev/loop0
+ root_device=/dev/loop0
+ find_device /boot
+ df /boot/
+ sed -n s%.*\(/dev/[^ ]*\).*%\1%p
+ tmp_fname=/dev/loop0
+ test -z /dev/loop0
+ resolve_symlink /dev/loop0
+ tmp_fname=/dev/loop0
+ test -L /dev/loop0
+ echo /dev/loop0
+ tmp_fname=/dev/loop0
+ echo /dev/loop0
+ bootdir_device=/dev/loop0
+ resolve_symlink /dev/sda
+ tmp_fname=/dev/sda
+ test -L /dev/sda
+ echo /dev/sda
+ install_device=/dev/sda
+ convert /dev/sda
+ test -e /dev/sda
+ :
+ sed -e s%\([vsh]d[a-z]\)[0-9]*$%\1% -e s%\(d[0-9]*\)p[0-9]*$%\1% -e s%\(fd[0-9]*\)$%\1% -e s%/part[0-9]*$%/disc% -e s%\(c[0-7]d[0-9]*\).*$%\1% -e s%\(e[0-9]\.[0-9]*\).*$%\1%
+ echo /dev/sda
+ tmp_disk=/dev/sda
+ echo /dev/sda
+ sed -e s%.*/[vsh]d[a-z]\([0-9]*\)$%\1% -e s%.*d[0-9]*p%% -e s%.*/fd[0-9]*$%% -e s%.*/floppy/[0-9]*$%% -e s%.*/\(disc\|part\([0-9]*\)\)$%\2% -e s%.*c[0-7]d[0-9]*p*%% -e s%.*e[0-9]\.[0-9]*p%% -e s%.*e[0-9]\.[0-9]*$%%
+ tmp_part=
+ grep -v ^# /boot/grub/device.map
+ sed s%.*\(([hf]d[0-9][a-z0-9,]*)\).*%\1%
+ grep /dev/sda *$
+ tmp_drive=(hd0)
+ test x(hd0) = x
+ test x != x
+ echo (hd0)
+ install_drive=(hd0)
+ test x(hd0) = x
+ test x/dev/loop0 != x/dev/loop0
+ convert /dev/loop0
+ test -e /dev/loop0
+ :
+ echo /dev/loop0
+ sed -e s%\([vsh]d[a-z]\)[0-9]*$%\1% -e s%\(d[0-9]*\)p[0-9]*$%\1% -e s%\(fd[0-9]*\)$%\1% -e s%/part[0-9]*$%/disc% -e s%\(c[0-7]d[0-9]*\).*$%\1% -e s%\(e[0-9]\.[0-9]*\).*$%\1%
+ tmp_disk=/dev/loop0
+ echo /dev/loop0
+ sed -e s%.*/[vsh]d[a-z]\([0-9]*\)$%\1% -e s%.*d[0-9]*p%% -e s%.*/fd[0-9]*$%% -e s%.*/floppy/[0-9]*$%% -e s%.*/\(disc\|part\([0-9]*\)\)$%\2% -e s%.*c[0-7]d[0-9]*p*%% -e s%.*e[0-9]\.[0-9]*p%% -e s%.*e[0-9]\.[0-9]*$%%
+ tmp_part=/dev/loop0
+ sed s%.*\(([hf]d[0-9][a-z0-9,]*)\).*%\1%
+ grep /dev/loop0 *$
+ grep -v ^# /boot/grub/device.map
+ tmp_drive=
+ test x = x
+ echo /dev/loop0 does not have any corresponding BIOS drive.
/dev/loop0 does not have any corresponding BIOS drive.
+ mdadm --detail /dev/loop0
+ exit 1
+ root_drive=
+ test x = x
+ exit 1
EDIT:
Well, I think the best thing is to run the script
but it appears the following:
Code:
root@ubuntu:/# sudo bash wubi-move.sh /dev/sda4 /dev/sda3
wubi-move.sh: Grub (legacy) is installed - this code supports grub2
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
bcbc
These are the steps required to migrate a wubi 9.10 or 10.04 install to partition (grub2 only). The first part shows how to do a manual migration, and the second how to use the attached script to do an automated migration.
Quote:
Originally Posted by
ULTRAM4X
Well, I think the best thing is to run the script
but it appears the following:
Code:
root@ubuntu:/# sudo bash wubi-move.sh /dev/sda4 /dev/sda3
wubi-move.sh: Grub (legacy) is installed - this code supports grub2
If you notice, my script only support grub2. This doesn't mean that you can't convert an install with grub-legacy, but not using the above commands (either manual or with the script). The script has that additional error check, because it's automated, but the onus is on you to do your own validation for the manual conversion (otherwise it would be too confusing to follow).
give me a couple of minutes to check it out...
-
Re: HOWTO: migrate wubi install to partition
The best I can offer is to remove grub-legacy and install grub2 (in the chroot).
So you'll have to run the following (first exit chroot, and then reenter because you need resolve.conf to have net access)
Code:
Edit commands erased - see post 38
I will take a look at including a section to convert using grub-legacy in the future, but I'll need some time to figure it out and test it.
-
Re: HOWTO: migrate wubi install to partition
sorry for my ignorance (and for my English) but I am new at this,
how exit chroot, and then reenter? :oops:
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
ULTRAM4X
sorry for my ignorance (and for my English) but I am new at this,
how exit chroot, and then reenter? :oops:
No worries - you can just enter the commands as I wrote them.
Code:
EDIT:commands erased - see post 38
If you get any error or something looks incorrect just post back.
-
Re: HOWTO: migrate wubi install to partition
typing exit closes the terminal :(
and
Code:
ultram4x@ubuntu:/$ cp /etc/resolv.conf /tmp/wubimove/etc
cp: no se puede crear el fichero regular «/tmp/wubimove/etc»: No existe el archivo o directorio
im using Kubuntu 10.04
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
ULTRAM4X
typing exit closes the terminal :(
and
Code:
ultram4x@ubuntu:/$ cp /etc/resolv.conf /tmp/wubimove/etc
cp: no se puede crear el fichero regular «/tmp/wubimove/etc»: No existe el archivo o directorio
im using Kubuntu 10.04
If you were still in the chroot, then exit would take you out of it. Also it looks like /tmp/wubimove doesn't exist. Did you unmount and delete it? It's difficult for me to know exactly what you've done, but it looks like you exited the chroot and unmounted the target partition. At this point I think it's safer to forget about migrating and try again later, when I can give explicit, tested instructions start to finish. And/or include a script that will do it - which is safer for most users.
EDIT: I haven't been able to successfully migrate a wubi install with legacy-grub - I'm removing instructions until such time as I have it working.
UPDATE: See http://ubuntuforums.org/showpost.php...6&postcount=92 for migrating wubi with legacy-grub.
-
Re: HOWTO: migrate wubi install to partition
Before you reboot, run the bootinfoscript and post the results back here. I just want to make sure you don't have grub in your MBR.
-
Re: HOWTO: migrate wubi install to partition
ok i run the last that u post and had no errors
Here is the report made by bootinfoscript
Code:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #4 for /boot/grub.
=> Paragon is installed in the MBR of /dev/sdb
=> Windows is installed in the MBR of /dev/sdc
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /ubuntu/winboot/wubildr.mbr /ubuntu/winboot/wubildr
/ubuntu/disks/root.disk /ubuntu/disks/home.disk
/ubuntu/disks/swap.disk
sda2/Wubi: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /boot/grub/menu.lst /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: Ubuntu 10.04.1 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /Boot/BCD
sdb2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdc1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/wubildr.mbr /wubildr
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disco /dev/sda: 320.1 GB, 320072933376 bytes
255 cabezas, 63 sectores/pista, 38913 cilindros, 625142448 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 2,048 245,762,047 245,760,000 7 HPFS/NTFS
/dev/sda2 245,762,048 578,033,663 332,271,616 7 HPFS/NTFS
/dev/sda3 578,034,765 582,131,339 4,096,575 82 Linux swap / Solaris
/dev/sda4 582,131,340 625,137,344 43,006,005 83 Linux
Drive: sdb ___________________ _____________________________________________________
Disco /dev/sdb: 200.0 GB, 200049647616 bytes
255 cabezas, 63 sectores/pista, 24321 cilindros, 390721968 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 * 2,048 179,777,535 179,775,488 7 HPFS/NTFS
/dev/sdb2 179,783,415 390,716,864 210,933,450 7 HPFS/NTFS
Drive: sdc ___________________ _____________________________________________________
Disco /dev/sdc: 82.0 GB, 81964302336 bytes
255 cabezas, 63 sectores/pista, 9964 cilindros, 160086528 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdc1 * 63 160,081,714 160,081,652 7 HPFS/NTFS
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 899deaa9-ce2b-47c4-9937-b8d32e159d33 ext4
/dev/loop1 bc326b68-a05b-4e35-a8ef-9a7e350c60f9 ext3
/dev/sda1 5E68AF0868AEDE51 ntfs AnimE
/dev/sda2 687402E07402B13C ntfs Música y PeliS
/dev/sda3 bb7214ba-7a93-4e4f-9937-9b86e54c87ce swap
/dev/sda4 56ac17b8-be0b-4250-bfcc-83efb9b44b71 ext4
/dev/sda: PTTYPE="dos"
/dev/sdb1 4E0849B80849A037 ntfs APPZ & DescargaS
/dev/sdb2 AE10873510870395 ntfs JuegoS
/dev/sdb: PTTYPE="dos"
/dev/sdc1 F8289C1B289BD74A ntfs RaiZ
/dev/sdc: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/loop0 / ext4 (rw,errors=remount-ro)
/dev/sda2 /host fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/loop1 /home ext3 (rw)
/dev/sdb2 /media/JuegoS fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb1 /media/APPZ & DescargaS fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda1 /media/AnimE fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdc1 /media/RaiZ fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
======================== sda2/Wubi/boot/grub/menu.lst: ========================
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=687402E07402B13C loop=/ubuntu/disks/root.disk ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=687402E07402B13C
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic
uuid 687402E07402B13C
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=687402E07402B13C loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
title Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (recovery mode)
uuid 687402E07402B13C
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=687402E07402B13C loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.32-24-generic
title Ubuntu 10.04.1 LTS, kernel 2.6.32-21-generic
uuid 687402E07402B13C
kernel /boot/vmlinuz-2.6.32-21-generic root=UUID=687402E07402B13C loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
title Ubuntu 10.04.1 LTS, kernel 2.6.32-21-generic (recovery mode)
uuid 687402E07402B13C
kernel /boot/vmlinuz-2.6.32-21-generic root=UUID=687402E07402B13C loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.32-21-generic
title Ubuntu 10.04.1 LTS, memtest86+
uuid 687402E07402B13C
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
======================== sda2/Wubi/boot/grub/grub.cfg: ========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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
### 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.32-24-generic" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 687402e07402b13c
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-24-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, Linux 2.6.32-24-generic (recovery mode)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 687402e07402b13c
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-24-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, Linux 2.6.32-21-generic" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 687402e07402b13c
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-21-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry "Ubuntu, Linux 2.6.32-21-generic (recovery mode)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 687402e07402b13c
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-21-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_lupin ###
### 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/sdc1)" {
insmod ntfs
set root='(hd2,1)'
search --no-floppy --fs-uuid --set f8289c1b289bd74a
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 ###
============================= 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
/host/ubuntu/disks/home.disk /home ext3 loop 0 0
================= sda2/Wubi: Location of files loaded by Grub: =================
2.8GB: boot/grub/grub.cfg
6.7GB: boot/grub/menu.lst
1.8GB: boot/initrd.img-2.6.32-21-generic
5.6GB: boot/initrd.img-2.6.32-24-generic
3.4GB: boot/vmlinuz-2.6.32-21-generic
4.1GB: boot/vmlinuz-2.6.32-24-generic
5.6GB: initrd.img
1.8GB: initrd.img.old
4.1GB: vmlinuz
3.4GB: vmlinuz.old
=========================== sda4/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 56ac17b8-be0b-4250-bfcc-83efb9b44b71
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 56ac17b8-be0b-4250-bfcc-83efb9b44b71
set locale_dir=($root)/boot/grub/locale
set lang=es
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, con Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 56ac17b8-be0b-4250-bfcc-83efb9b44b71
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=56ac17b8-be0b-4250-bfcc-83efb9b44b71 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-24-generic (modo recuperación)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 56ac17b8-be0b-4250-bfcc-83efb9b44b71
echo 'Cargando Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=56ac17b8-be0b-4250-bfcc-83efb9b44b71 ro single
echo 'Cargando el disco RAM inicial...'
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 56ac17b8-be0b-4250-bfcc-83efb9b44b71
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=56ac17b8-be0b-4250-bfcc-83efb9b44b71 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic (modo recuperación)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 56ac17b8-be0b-4250-bfcc-83efb9b44b71
echo 'Cargando Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=56ac17b8-be0b-4250-bfcc-83efb9b44b71 ro single
echo 'Cargando el disco RAM inicial...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 56ac17b8-be0b-4250-bfcc-83efb9b44b71
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 56ac17b8-be0b-4250-bfcc-83efb9b44b71
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
=============================== sda4/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
UUID=56ac17b8-be0b-4250-bfcc-83efb9b44b71 / ext4 errors=remount-ro 0 1
UUID=bb7214ba-7a93-4e4f-9937-9b86e54c87ce none swap sw 0 0
=================== sda4: Location of files loaded by Grub: ===================
307.1GB: boot/grub/core.img
307.2GB: boot/grub/grub.cfg
298.1GB: boot/initrd.img-2.6.32-21-generic
306.7GB: boot/initrd.img-2.6.32-24-generic
306.7GB: boot/vmlinuz-2.6.32-21-generic
306.7GB: boot/vmlinuz-2.6.32-24-generic
306.7GB: initrd.img
298.1GB: initrd.img.old
306.7GB: vmlinuz
306.7GB: vmlinuz.old
now i will reboot
-
Re: HOWTO: migrate wubi install to partition
i boot the wubi installation again
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
ULTRAM4X
ok i run the last that u post and had no errors
<snip>
now i will reboot
OK that looks good. Did it work alright?
EDIT: I just noticed that windows isn't in your grub2 menu. Boot into the new target and run "sudo update-grub" and see whether it picks it up.
-
Re: HOWTO: migrate wubi install to partition
I have an issue with my migration to a partition. I used the script from wubiGiude.org and the shell script wubi-move-to-partition,
everything seemed to go well except there was no entry for the new ubuntu partition in grub when the computer started, I have already uninstalled wubi via windows. I now have a ubuntu partition that I can't access can some please help me out?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
barnesk9
I have an issue with my migration to a partition. I used the script from
wubiGiude.org and the shell script wubi-move-to-partition,
everything seemed to go well except there was no entry for the new ubuntu partition in grub when the computer started, I have already uninstalled wubi via windows. I now have a ubuntu partition that I can't access can some please help me out?
That script doesn't work - I don't know why they haven't removed it yet. It assumes grub-legacy is installed, and uses commands that are deprecated. However, the copying of all your data should have been ok... so should be fixable.
Please create a new thread and edit your above post with a link to it, and include the results of the bootinfoscript. I'll come and find it.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
bcbc
That script doesn't work - I don't know why they haven't removed it yet. It assumes grub-legacy is installed, and uses commands that are deprecated. However, the copying of all your data should have been ok... so should be fixable.
Please create a new thread and edit your above post with a link to it, and include the results of the
bootinfoscript. I'll come and find it.
Should I run it from a live CD?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
barnesk9
Should I run it from a live CD?
Yes. Instructions are in the link I provided.
-
Re: HOWTO: migrate wubi install to partition
I couldn't find the edit button but here are the results
Code:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sda
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /wubildr.mbr
/ubuntu/winboot/wubildr.mbr /wubildr
/ubuntu/winboot/wubildr /ubuntu/disks/root.disk
/ubuntu/disks/swap.disk
sda1/Wubi: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab
sda2: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab
sda3: _________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 2,048 224,335,439 224,333,392 7 HPFS/NTFS
/dev/sda2 224,347,725 303,226,874 78,879,150 83 Linux
/dev/sda3 303,226,875 312,576,704 9,349,830 5 Extended
/dev/sda5 303,226,938 312,576,704 9,349,767 82 Linux swap / Solaris
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/loop1 d7069958-9bd6-41f6-80a0-244dbad7267b ext4
/dev/sda1 CA5AADC05AADAA21 ntfs
/dev/sda2 c1c77d74-af08-42b2-9c7b-968c416a370c ext3
/dev/sda3: PTTYPE="dos"
/dev/sda5 5a88ddb2-3b5b-4577-a9ff-3e1bcccc5fab swap
/dev/sda: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)
================================ sda1/boot.ini: ================================
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="IBM Client for e-business Windows XP v3.01" /noexecute=alwaysoff /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
C:\wubildr.mbr = "Xubuntu"
======================== sda1/Wubi/boot/grub/grub.cfg: ========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set ca5aadc05aadaa21
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (on /dev/sda2)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=c1c77d74-af08-42b2-9c7b-968c416a370c ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (recovery mode) (on /dev/sda2)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=c1c77d74-af08-42b2-9c7b-968c416a370c ro single
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sda2)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c1c77d74-af08-42b2-9c7b-968c416a370c ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sda2)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c1c77d74-af08-42b2-9c7b-968c416a370c ro single
initrd /boot/initrd.img-2.6.32-21-generic
}
### 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 ###
============================= sda1/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
================= sda1/Wubi: Location of files loaded by Grub: =================
6.6GB: boot/grub/grub.cfg
.1GB: boot/initrd.img-2.6.32-21-generic
6.5GB: boot/vmlinuz-2.6.32-21-generic
.1GB: initrd.img
6.5GB: vmlinuz
=========================== sda2/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=c1c77d74-af08-42b2-9c7b-968c416a370c ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=c1c77d74-af08-42b2-9c7b-968c416a370c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c1c77d74-af08-42b2-9c7b-968c416a370c ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c1c77d74-af08-42b2-9c7b-968c416a370c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set c1c77d74-af08-42b2-9c7b-968c416a370c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
=============================== sda2/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
UUID= / ext3 errors=remount-ro 0 1
UUID= none swap sw 0 0
=================== sda2: Location of files loaded by Grub: ===================
117.6GB: boot/grub/grub.cfg
117.5GB: boot/initrd.img-2.6.32-21-generic
117.6GB: boot/initrd.img-2.6.32-24-generic
117.6GB: boot/vmlinuz-2.6.32-21-generic
117.6GB: boot/vmlinuz-2.6.32-24-generic
117.6GB: initrd.img
117.5GB: initrd.img.old
117.6GB: vmlinuz
117.6GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================
Unknown BootLoader on sda3
00000000 8e a6 27 0d db 97 a2 4c 7a fc ad d6 3f 99 df 93 |..'....Lz...?...|
00000010 e3 4f 36 82 b3 2f dc 3b e8 7a c7 ab ff 64 fc 9b |.O6../.;.z...d..|
00000020 29 3f fb 6b 03 d6 0f da df 83 4c 79 ce f8 94 fe |)?.k......Ly....|
00000030 d8 aa 1e d5 6f 0e 58 c8 39 60 b1 cc 01 65 02 68 |....o.X.9`...e.h|
00000040 77 b7 c1 f9 da 64 2e b0 30 cb 5c 98 63 2e cc 33 |w....d..0.\.c..3|
00000050 b9 32 33 51 e2 24 09 8f f2 51 b4 84 50 52 27 12 |.23Q.$...Q..PR'.|
00000060 42 29 3f c1 dc d9 99 46 7c e3 3d 2e 3c da b7 be |B)?....F|.=.<...|
00000070 8d 26 a5 ba e2 3e eb 77 f1 8f 18 ff 8f 1b c4 5f |.&...>.w......._|
00000080 72 de 48 e9 a9 12 fe c2 f5 b4 6d 4c 3c 45 12 db |r.H.......mL<E..|
00000090 d3 da 52 76 6e 06 1b ff 98 64 44 5a 79 b6 bb 77 |..Rvn....dDZy..w|
000000a0 e0 eb bb be 78 0b f9 0f 94 65 aa 6f eb bd 7e a1 |....x....e.o..~.|
000000b0 7f 3f 7f 1e c9 f4 4f 66 4a 9f b4 bf f2 a4 a7 f7 |.?....OfJ.......|
000000c0 a6 ce 50 06 f2 cf 57 f7 d3 fe 65 e9 f2 ef 1a 78 |..P...W...e....x|
000000d0 fd 9f fc 17 9d 44 f9 a1 5e c7 1b 64 7e 34 8d f9 |.....D..^..d~4..|
000000e0 ed b9 f6 a4 fd 79 c1 9e 41 fd 39 fe 21 ed 3f 48 |.....y..A.9.!.?H|
000000f0 7e f6 da dd 83 f4 17 5b 98 7e 52 5a 7a fb fc b7 |~......[.~RZz...|
00000100 52 aa b2 2e 65 3e 9c 6b df 4f fe 11 d7 3a f3 e1 |R...e>.k.O...:..|
00000110 3c ab d2 cb 26 a0 06 22 1b fd a1 33 99 fd 72 1f |<...&.."...3..r.|
00000120 e7 0a 91 e0 e5 d6 50 76 bd c5 12 a0 3c e2 04 28 |......Pv....<..(|
00000130 cd f6 6f c4 e1 cc ce f4 60 4c 55 9b 65 3c c5 d8 |..o.....`LU.e<..|
00000140 00 1b 26 c6 08 35 be 7b 2c 4e f1 bd 76 e4 75 e9 |..&..5.{,N..v.u.|
00000150 ae 8d 02 e7 2e 1a c7 4b ef 60 6e 1f 7b 3e f3 7e |.......K.`n.{>.~|
00000160 e6 7b 1f 70 fd ff 1a 35 fe 5e f7 e6 60 fb 9f 8c |.{.p...5.^..`...|
00000170 6b 97 6c bf 4a 98 ed ec f7 4f ae 3d 2c 66 92 61 |k.l.J....O.=,f.a|
00000180 d7 9c 70 be 6b 3f da 3e 98 7f 8e 49 f4 ff cc 6f |..p.k?.>...I...o|
00000190 7d e9 c9 ef df 14 9b a9 fb 37 98 ad 27 76 0c ed |}........7..'v..|
000001a0 29 af a7 b4 fc cc eb a1 5b de a7 fd 33 97 a7 fc |).......[...3...|
000001b0 67 42 7b a6 fe 43 12 47 ca 7c 4e bc 16 af 00 fe |gB{..C.G.|N.....|
000001c0 ff ff 82 fe ff ff 3f 00 00 00 87 aa 8e 00 00 00 |......?.........|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
-
Re: HOWTO: migrate wubi install to partition
barnesk9, please edit your previous post and put [CODE] at the top, and [/CODE] at the bottom. It makes it more readable. Also I'd like you to create a new thread. You can add a link to it here or I will - so people can follow if they're interested, but it's not an issue with this particular howto and belongs in a different thread.
Thanks.
-
Re: HOWTO: migrate wubi install to partition
I finally found the edit button and made the change
edit - here is the link for the new thread
http://www.ubuntuforums.org/showthre...24#post9760624
-
Re: HOWTO: migrate wubi install to partition
Thanks, bcbc, your automated migration worked very well for me.
sighfi
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
sighfi
Thanks, bcbc, your automated migration worked very well for me.
sighfi
Awesome :)
-
Re: HOWTO: migrate wubi install to partition
Currently reading through this guide. Just wondering: is it possible for me to migrate a wubi installation just by having the root.disk from it?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
FlameReaper
Currently reading through this guide. Just wondering: is it possible for me to migrate a wubi installation just by having the root.disk from it?
Yes it's possible, with some minor modifications to the manual conversion instructions I supplied above. But I wouldn't try it if the wubi isn't booting, i.e. if it's the broken one you mentioned in the other thread.
-
1 Attachment(s)
Re: HOWTO: migrate wubi install to partition
Hello, I'm new in ubuntu, I installed ubuntu 10.04 through wubi and I'd like to move it to a real partition. I've attached the screenshot of gparted, where it's possible to see my partitions. My questions are:
1) is this script good for my configuration? Should I leave the unallocate space as it is now, also in case to create the swap partition?
2) is this script good considered that the "unknown" ntfs partition in sda4 is encrypted with bitlocker?
3) since I want the boot managed by windows bootloader I guess I have to use the command - no bootloader as stated in the first post... but I haven't understood well the part about the grub loader, why and when I should install it? Is not enough the windows bootloader?
Thanks.
-
Re: HOWTO: migrate wubi install to partition
I has some questions about boot, anyway I has using Windows OS. Then I has install Ubuntu 9.10 before this. Then I uninstall it for install new Ubuntu 10.04. After that, in my boot menu has display two Ubuntu boot. But only first Ubuntu boot can load, the 2nd one cannot load. Why and how to remove it?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
zooster
Hello, I'm new in ubuntu, I installed ubuntu 10.04 through wubi and I'd like to move it to a real partition. I've attached the screenshot of gparted, where it's possible to see my partitions. My questions are:
1) is this script good for my configuration? Should I leave the unallocate space as it is now, also in case to create the swap partition?
2) is this script good considered that the "unknown" ntfs partition in sda4 is encrypted with bitlocker?
3) since I want the boot managed by windows bootloader I guess I have to use the command - no bootloader as stated in the first post... but I haven't understood well the part about the grub loader, why and when I should install it? Is not enough the windows bootloader?
Thanks.
1. You can only create 4 primary partitions, so that extra space will be unusable. It is better to create an extended partition in the space from /dev/sda4 and the extra, and then you can create multiple logical partitions within that.
2. I don't know enough about bitlocker to help you with that - never used it. I do know that if you run the script it will assume the partition is empty because it sees it as "unknown". (It will ask to format it, or if you supply -y/--assume-yes it will just format it. Normally if you try and migrate to a partition with existing data it won't let you).
3. As far as booting from windows, you can use easybcd on Vista/7 to boot ubuntu, but I haven't done this myself so can't advise. You can keep booting it from the wubi install grub menu until you figure out a replacement. I'd search the forums or create a separate thread for this.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
myChucky
I has some questions about boot, anyway I has using Windows OS. Then I has install Ubuntu 9.10 before this. Then I uninstall it for install new Ubuntu 10.04. After that, in my boot menu has display two Ubuntu boot. But only first Ubuntu boot can load, the 2nd one cannot load. Why and how to remove it?
It's best to create a separate thread in this forum - this thread is about migrating wubi installs to partition.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
bcbc
1. You can only create 4 primary partitions, so that extra space will be unusable. It is better to create an extended partition in the space from /dev/sda4 and the extra, and then you can create multiple logical partitions within that.
2. I don't know enough about bitlocker to help you with that - never used it. I do know that if you run the script it will assume the partition is empty because it sees it as "unknown". (It will ask to format it, or if you supply -y/--assume-yes it will just format it. Normally if you try and migrate to a partition with existing data it won't let you).
3. As far as booting from windows, you can use
easybcd on Vista/7 to boot ubuntu, but I haven't done this myself so can't advise. You can keep booting it from the wubi install grub menu until you figure out a replacement. I'd search the forums or create a separate thread for this.
1) the swap partition has to be primary as well? If so I still need another one primary partition free (is it adviceable to create a swap partition in linux?)
2) If I got it right the unknown encrypted partition shouldn't be a problem as far as I do not add the command -y/--assume-yes to the script, it will proceed leaving it there untouched...
3) If I set -no bootloader option I will have windows bootloader (wubi one) right? So why would I need grub or easy bcd or others?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
zooster
1) the swap partition has to be primary as well? If so I still need another one primary partition free (is it adviceable to create a swap partition in linux?)
2) If I got it right the unknown encrypted partition shouldn't be a problem as far as I do not add the command -y/--assume-yes to the script, it will proceed leaving it there untouched...
3) If I set -no bootloader option I will have windows bootloader (wubi one) right? So why would I need grub or easy bcd or others?
I think I misunderstood you. I thought you wanted to migrate to /dev/sda4. If that is not the case, it's not possible to migrate.
Because you already have 4 primary partitions (the maximum possible). You cannot create any more (that 39GB extra space is unusable right now).
FYI, linux doesn't require primary partitions. You can use logical partitions for the swap or / root.
If you had created an extended partition, then you could have defined any number of logical partitions.
But the only way to create an extended partition now is to delete a primary partition - obviously not a trivial task as you have to backup the data prior to partitioning and restore it afterwards.
You can't boot linux directly from the windows boot manager. The only reason you can boot wubi is that a version of grub4dos is installed with it.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
bcbc
I think I misunderstood you. I thought you wanted to migrate to /dev/sda4. If that is not the case, it's not possible to migrate.
Because you already have 4 primary partitions (the maximum possible). You cannot create any more (that 39GB extra space is unusable right now).
FYI, linux doesn't require primary partitions. You can use logical partitions for the swap or / root.
If you had created an extended partition, then you could have defined any number of logical partitions.
But the only way to create an extended partition now is to delete a primary partition - obviously not a trivial task as you have to backup the data prior to partitioning and restore it afterwards.
You can't boot linux directly from the windows boot manager. The only reason you can boot wubi is that a version of grub4dos is installed with it.
Ok, then I have to create manually logical partition inside extended sda4? Before to run the script?
And about the bootloader if I set option - no bootloader I'll still have wobi bootloader?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
zooster
Ok, then I have to create manually logical partition inside extended sda4? Before to run the script?
And about the bootloader if I set option - no bootloader I'll still have wobi bootloader?
Yes - this script does not delete/create/resize partitions. It just migrates wubi installs to existing empty partitions.
Yes using --no-bootloader will not install the grub bootloader. It will leave the windows bootloader in place. You can use the wubi grub menu to boot the new install temporarily - but this is not a good long term solution because you have to boot the wubi install to update the grub menu e.g. every time you get a kernel update on your migrated install.
If you are happy that the migration worked well, I recommend either installing the grub bootloader, or using an alternative method.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
bcbc
Yes - this script does not delete/create/resize partitions. It just migrates wubi installs to existing empty partitions.
Yes using --no-bootloader will not install the grub bootloader. It will leave the windows bootloader in place. You can use the wubi grub menu to boot the new install temporarily - but this is not a good long term solution because you have to boot the wubi install to update the grub menu e.g. every time you get a kernel update on your migrated install.
If you are happy that the migration worked well, I recommend either installing the grub bootloader, or using an alternative method.
But how can the old wubi bootloader point to new migrated partition? Does this script edit the wubi loader?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
zooster
But how can the old wubi bootloader point to new migrated partition? Does this script edit the wubi loader?
The wubi-move.sh script runs while you are booted in the wubi install. The last step updates the wubi grub menu, and adds the migrated install.
But after that, the wubi grub menu will never update unless you boot into it and do it manually, or take extraordinary measures (loop mount the root.disk and edit it yourself).
-
Re: HOWTO: migrate wubi install to partition
Thank you man, but can you tell me pro and contra to use grub loader to boot w7 or ubuntu instead the windows one?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
zooster
Thank you man, but can you tell me pro and contra to use grub loader to boot w7 or ubuntu instead the windows one?
That is something you'll want the broader community to answer, so I suggest you create a new thread.
-
Re: HOWTO: migrate wubi install to partition
bcbc
I'm ready to do this "migration". In Windows, I shrunk the partition and then added a new partition (sdev5 according to Linux, its called "New Volume"). I'm going to run your shell script but just a few questions.
bash wubi-move.sh
Does this script unmounts and formats the new partition or do I have to do that before running this script? I only glanced at the script with so maybe the answers is within the script.
Then what happens to the Wubi in Windows? Does it still exist in Windows or do I have to remove it like removing an installed application?
Please excuse me if there's posts on this thread that already answered my questions.
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
rreyes3713
bcbc
I'm ready to do this "migration". In Windows, I shrunk the partition and then added a new partition (sdev5 according to Linux, its called "New Volume"). I'm going to run your shell script but just a few questions.
bash wubi-move.sh
Does this script unmounts and formats the new partition or do I have to do that before running this script? I only glanced at the script with so maybe the answers is within the script.
Then what happens to the Wubi in Windows? Does it still exist in Windows or do I have to remove it like removing an installed application?
Please excuse me if there's posts on this thread that already answered my questions.
The script won't attempt to migrate to a mounted partition - it will tell you to unmount it first. It will format it with the ext4 filesystem (and this also removes the label).
The script is designed to do nothing to the wubi install - except update the wubi grub menu so you can boot the migrated install. The wubi will continue to exist until you uninstall it: Add/Remove programs, and select Ubuntu. Note, once you uninstall it's gone including all your data etc. so make sure the migration worked, and consider keeping a back up of your root.disk.
Before you migrate consider whether you want a swap partition (required if you want to enable hibernation). It's easier to get the partitions right before migrating than afterwards.
-
Re: HOWTO: migrate wubi install to partition
Thanks bcbc
Quote:
Originally Posted by
bcbc
... Before you migrate consider whether you want a swap partition (required if you want to enable hibernation). It's easier to get the partitions right before migrating than afterwards.
I'm looking at your example for swap and you have
Quote:
sudo bash wubi-move.sh /dev/sda5 /dev/sda6
is dev/sda6 a virtual partition because I don't know if this exist when I check with my KDE Partition Manager.
What do you mean by "enable hibernation"? then you mentioned "swap must be as big as RAM to hibernate". I think my RAM is 4 Gig. Is this big enough.
Sorry if I'm dummy in terminology.:(
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
rreyes3713
Thanks bcbc
I'm looking at your example for swap and you have
is dev/sda6 a virtual partition because I don't know if this exist when I check with my KDE Partition Manager.
What do you mean by "enable hibernation"? then you mentioned "swap must be as big as RAM to hibernate". I think my RAM is 4 Gig. Is this big enough.
Sorry if I'm dummy in terminology.:(
You have to create the partitions - they are not virtual. If you don't want a swap partition, you don't require it.
If you want to hibernate with 4GB ram you'll require at least a 4GB swap partition (some people say 1.5 x RAM i.e. 6GB, I'd guess 5GB is plenty). Hibernate means to save the current state but power off your computer - when you restart it will restore all the open programs, files etc. you were working on.
Note - hibernation is a bit of a mystery in Ubuntu - I've found no definitive rules on swap size, but I know with karmic I could hibernate with swap=ram, but with Lucid I needed a bigger swap.
-
Re: HOWTO: migrate wubi install to partition
thanks for your patient answering my questions bcbc. Now I have a better "feel and understanding" what I am doing (I think) [ lol ]
I'm gonna do it. :p
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
rreyes3713
thanks for your patient answering my questions bcbc. Now I have a better "feel and understanding" what I am doing (I think) [ lol ]
I'm gonna do it. :p
No problem... let me know how it goes :)
-
Re: HOWTO: migrate wubi install to partition
I think I was successful on the "migration".
Thanks bcbc. ):P
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
rreyes3713
I think I was successful on the "migration".
Thanks bcbc. ):P
You're welcome.
If you're unsure whether the migration was successful or not, feel free to post the results of the bootinfoscript (between [CODE][/CODE] tags) or let me know if you have any questions.
-
Re: HOWTO: migrate wubi install to partition
Hey,
Thanks...it works!!
and one more thing...is it safe to run the wubi uninstaller from windows or shd i just delete the ubuntu folder from my ntfs partition?
-
Re: HOWTO: migrate wubi install to partition
Quote:
Originally Posted by
possible181
Hey,
Thanks...it works!!
and one more thing...is it safe to run the wubi uninstaller from windows or shd i just delete the ubuntu folder from my ntfs partition?
Provided you've installed the grub bootloader, used it to boot the migrated install and verified that everything is OK, you can safely uninstall wubi by going to Add/Remove programs and removing "Ubuntu" - or by running the uninstaller from the x:\ubuntu\ directory. If you don't fully uninstall wubi, you'll always be prompted with the windows boot manager when booting windows.
If you want to be extra cautious, backup the root.disk file (outside of the ubuntu directory) before uninstalling.