Transfer from one virtual hdd to a new virtual hdd

Discussions related to using VirtualBox on Windows hosts.
Post Reply
leeand00
Posts: 47
Joined: 2. Dec 2008, 03:53

Transfer from one virtual hdd to a new virtual hdd

Post by leeand00 »

Over the weekend I tried to move an virtual hdd that was getting to small to a new larger virtual hdd; (running SuSE 10.3) and here is the procedure that I followed:

1. Created a new virtual hdd a larger size than before.
2. Attached new virtual hdd as secondary hdd.
3. Booted with Rescue Disk Live CD.
4. Split the drive with 3 partions using msdos system.
(swap - primary) (root -primary) (home -extended)
5. Flagged root as bootable.
6. Formatted all except swap as ext3.
7. Used "cp -Rf" to copy all of the old partions to the new partions.
8. Edited /etc/fstab so that the /dev/disks/by-id match the id's of
the partitions on the new virtual hdd.
9. Edited /boot/grub/menu.lst so that the /dev/disks/by-id match the id of the root parition.
10. Shutdown.
10. Removed old drive from list of drives.
11. Restarted...and it doesn't boot for some reason.


When I tried to boot it up, it didn't work, I just get a little flashing cursor after the initial Virtual Box screen. Does this have something to do with grub not being installed correctly?

Thank you,
Andrew J. Leer
leeand00
Posts: 47
Joined: 2. Dec 2008, 03:53

Post by leeand00 »

*bump*
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

That's because you need a proper MBR. You don't have any link in the MBR to your grub menu. Boot the recovery cd, or download SuperGrub and restore your Grub install. There are plenty of howto's on the web.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply