Using LVPM to move wubi install to real install
I am on 10.04 wubi install, how do I get to a real install ( on a partition) using LVPM. I read that I cannot use LVPM to move to real install if I am using 10.04. Can you please give me latest instructions on how to do that ?
Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- lvpm Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- free now
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
You can use this guide (and script): http://
or see the lvpm howto on ubuntuforums that has a workaround that involves copying the /home and reinstalling the existing packages on a fresh install:
http://
Revision history for this message
|
#2 |
I used the guide and script and it worked just fine. However, I have another question now. Here is the o/p of df -h on my m/c
[code]
ubuntu:/$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 40G 16G 22G 43% /
none 1.9G 332K 1.9G 1% /dev
none 2.0G 2.7M 2.0G 1% /dev/shm
none 2.0G 212K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
none 2.0G 0 2.0G 0% /lib/init/rw
none 40G 16G 22G 43% /var/lib/
[/code]
How do I remove the "none" entries above ?
Here is the o/p from fdisk ( option m)
[code]
Device Boot Start End Blocks Id System
/dev/sda1 * 1 33021 265239615 7 HPFS/NTFS
/dev/sda2 38231 38913 5486197+ 82 Linux swap / Solaris
/dev/sda3 33022 38230 41841292+ 83 Linux
Partition table entries are not in disk order
Command (m for help):
[/code]
It is /dev/sda3 that is mounted as / and contains all the directories.
Why does /dev/sda3 not have the bootloader ? You can see /dev/sda1 is the bootable partition.
How do I make /dev/sda3 as bootable partition ? I want to do this because I want to use the space on /dev/sda1 for other purposes and want to format it to ext4.
Revision history for this message
|
#3 |
I used option 'p' on fdisk and not option 'm' above.
Revision history for this message
|
#4 |
Great - glad it worked out.
You don't have to remove the 'none' entries. They are normal as they are virtual generated each time you boot. I have the same on my linux:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 9.8G 7.2G 2.2G 77% /
none 496M 296K 496M 1% /dev
none 501M 380K 501M 1% /dev/shm
none 501M 92K 501M 1% /var/run
none 501M 0 501M 0% /var/lock
none 501M 0 501M 0% /lib/init/rw
Linux doesn't require the boot flag and that does not signify a bootloader. The bootloader (grub) is in the MBR and grub will find /dev/sda3 regardless of where the boot flag is set (certain bootloaders require it, like Windows' bootloader, but not grub). But you can change it using gparted if it bothers you (it won't make any difference).
Revision history for this message
|
#5 |
I did not get the last part "But you can change it using gparted if it bothers you (it won't make any difference)."
What can I change ? Did you mean I can go ahead and format /dev/sda1 and nothing bad will happen ?
Where is the bootloader installed ? How do I figure out the bootloader install location ?
Revision history for this message
|
#6 |
I meant, you can change the boot flag from /dev/sda1 to /dev/sda3 using gparted (or other tools if you prefer) but it won't make any difference in booting ubuntu.
The bootloader is stored in the drive MBR (master boot record). A very useful tool you can use is the bootinfoscript (http://
"=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #3 for /boot/grub"
(or something similar) then you should be OK to format /dev/sda1 assuming you've backed up everything of importance on it.
Post the results of bootinfoscript if you need more help.
Revision history for this message
|
#7 |
Please find the o/p after running the script. I was also able to boot windows 7 by selecting the entry from the grub menu. This has been great help !!! thanks a lot.
=======
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #3 for /boot/grub.
sda1: _______
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda1 has
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/
sda1/Wubi: _______
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
sda2: _______
File system: swap
Boot sector type: -
Boot sector info:
sda3: _______
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
=======
Drive: sda ___________________ _______
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 * 63 530,479,292 530,479,230 7 HPFS/NTFS
/dev/sda2 614,164,950 625,137,344 10,972,395 82 Linux swap / Solaris
/dev/sda3 530,482,365 614,164,949 83,682,585 83 Linux
blkid -c /dev/null: _______
Device UUID TYPE LABEL
/dev/loop0 0b863929-
/dev/sda1 503A4D503A4D346E ntfs
/dev/sda2 b5a28152-
/dev/sda3 5033df3d-
/dev/sda: PTTYPE="dos"
=======
Device Mount_Point Type Options
/dev/sda3 / ext4 (rw,errors=
=======
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set 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_
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.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Ubuntu, Linux 2.6.32-25-generic" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-25-generic (recovery mode)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-24-generic" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-24-generic (recovery mode)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-23-generic" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-23-generic (recovery mode)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-22-generic" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-22-generic (recovery mode)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-21-generic" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.32-21-generic (recovery mode)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
loopback loop0 /ubuntu/
set root=(loop0)
linux /boot/vmlinuz-
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
chainloader +1
}
menuentry "Ubuntu, with Linux 2.6.32-25-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-25-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-23-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-23-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-22-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-22-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sda3)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
# 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.
=======
# /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/
/host/ubuntu/
================= sda1/Wubi: Location of files loaded by Grub: =================
11.3GB: boot/grub/grub.cfg
15.3GB: boot/initrd.
15.3GB: boot/initrd.
15.4GB: boot/initrd.
12.6GB: boot/initrd.
4.3GB: boot/initrd.
15.1GB: boot/vmlinuz-
3.6GB: boot/vmlinuz-
15.3GB: boot/vmlinuz-
16.8GB: boot/vmlinuz-
8.6GB: boot/vmlinuz-
4.3GB: initrd.img
12.6GB: initrd.img.old
8.6GB: vmlinuz
16.8GB: vmlinuz.old
=======
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set 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_
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,3)'
search --no-floppy --fs-uuid --set 5033df3d-
if loadfont /usr/share/
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,3)'
search --no-floppy --fs-uuid --set 5033df3d-
set locale_
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
### END /etc/grub.
### BEGIN /etc/grub.
menuentry 'Ubuntu, with Linux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.32-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
echo 'Loading Linux 2.6.32-25-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
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,3)'
search --no-floppy --fs-uuid --set 5033df3d-
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.32-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
echo 'Loading Linux 2.6.32-23-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
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,3)'
search --no-floppy --fs-uuid --set 5033df3d-
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux16 /boot/memtest86
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 5033df3d-
linux16 /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 503a4d503a4d346e
chainloader +1
}
### END /etc/grub.
### BEGIN /etc/grub.
# 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.
=======
# /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=5033df3d-
UUID=b5a28152-
=================== sda3: Location of files loaded by Grub: ===================
293.9GB: boot/grub/core.img
285.3GB: boot/grub/grub.cfg
271.7GB: boot/initrd.
271.7GB: boot/initrd.
271.7GB: boot/initrd.
271.7GB: boot/initrd.
293.8GB: boot/initrd.
293.2GB: boot/vmlinuz-
293.2GB: boot/vmlinuz-
293.2GB: boot/vmlinuz-
293.2GB: boot/vmlinuz-
293.9GB: boot/vmlinuz-
293.8GB: initrd.img
271.7GB: initrd.img.old
293.9GB: vmlinuz
293.2GB: vmlinuz.old
Revision history for this message
|
#8 |
That all looks good.
So if you format /dev/sda1 that will remove windows 7. If you want to keep a dual boot then you could still use and share space on the ntfs partition from Ubuntu.
If you are sure the migration was fine and want to remove the wubi ubuntu, you can boot win7 and go to Add/remove programs and select Ubuntu to remove it.