I know just enough to be dangerous...
I was trying to save some space in my VirtualBox image, so I went into Virtual Media Manager and Released and Removed (but did not delete) the .vdi underneath my main .vdi.
When I started the linux VM, it said it couldn't boot; I think it said the disk image was bad.
I restored from a snapshot from 3 months ago, but I'd like to restore what I recently Removed. Is it still possible?
I'm running VirtualBox 4.0.14 on a Windows XP SP3 host, guest is Ubuntu Linux 10.04 LTS
thanks in advance
- Terry
restoring 'removed' hard disk media?
-
terryplatt
- Posts: 3
- Joined: 19. Dec 2011, 17:35
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Ubuntu Linux
-
stefan.becker
- Volunteer
- Posts: 7639
- Joined: 7. Jun 2007, 21:53
Re: restoring 'removed' hard disk media?
Same problem as ever: Data needed and no backup?
Its time to think about a big USB disc for Backups. Does not help this, but next time. And believe me, next time is coming.
Its time to think about a big USB disc for Backups. Does not help this, but next time. And believe me, next time is coming.
German Howto (Linux): http://www.linuxforen.de/forums/showthread.php?t=236444
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: restoring 'removed' hard disk media?
"Restore from a snapshot"? Unless by that you meant copy files back in from a real backup, then the act of reverting to a snapshot almost certainly destroyed any possibility of accessing data from after the snapshot moment. Unless of course, as Stefan says, you have a backup.terryplatt wrote:I restored from a snapshot from 3 months ago, but I'd like to restore what I recently Removed.
-
terryplatt
- Posts: 3
- Joined: 19. Dec 2011, 17:35
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Ubuntu Linux
Re: restoring 'removed' hard disk media?
well, that's what I was afraid of.
I still need to get more space, but I'll send a separate post for that if I can't find anything.
I still need to get more space, but I'll send a separate post for that if I can't find anything.
-
terryplatt
- Posts: 3
- Joined: 19. Dec 2011, 17:35
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Ubuntu Linux
Re: restoring 'removed' hard disk media?
Aha! I got back the disk that I had released & removed.
I just had to add the right .vdi file in my Snapshots directory.
(C:\Documents and Settings\<userID>\VirtualBox VMs\ubuntu linux 2.6\Snapshots )
So I now know that, as long as you don't delete a virtual disk you've removed, you can still get it back.
- Terry
I just had to add the right .vdi file in my Snapshots directory.
(C:\Documents and Settings\<userID>\VirtualBox VMs\ubuntu linux 2.6\Snapshots )
So I now know that, as long as you don't delete a virtual disk you've removed, you can still get it back.
- Terry
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: restoring 'removed' hard disk media?
If you think you have managed to get back to a working state then you are very lucky, but the means you took to get there will not in general be a solution. If you described your problem accurately, i.e. that you reverted to a 3 month old snapshot after removing what was the current state, then replacing the current state file after modifying the parent would do nothing useful. Each VDI has a "modify UUID" field in the header which changes every time the VDI is modified. The purpose is precisely to detect unexpected mods in a snapshot dependency chain. VirtualBox would detect that the uuidParentModify link in the child no longer matches the uuidModify field in the parent, and it would refuse to run the VM.