Score:0

Recover Ubuntu Hard Drive

gb flag

I rebooted my Ubuntu on a virtual machine by mistake during OS upgrade. Now it doesn't start from the hard drive, it shows Ubuntu logo and then stuck in a black screen. I booted from the CD. How can I access my hard drive to recover files? It is not seen in the list of devices, while "fdisk -l" shows it as /dev/sda and "fsck -N" shows it's filesystem type ask ext2.

vanadium avatar
cn flag
A hard reboot? i.e. you pressed the Power Off button or unplugged the power? Then the partition may be badly damaged if you do not see it. Does it appear in `sudo fdisk -l` or `lsblk -f`?
guiverc avatar
cn flag
Rebooted how? If you're like me and reboot via sysrq/reisub or equiv. (to ensure a save/clean dismount etc) it should boot.. if you didn't cleanly unmount drives then I'd check your *file-systems* for errors (ie. `fsck`). You should be specific as to what command(s) it's not seen etc; also what release are you talking about (server?, desktop?, core? etc) Does it boot to runlevel 1?
gb flag
@vanadium rebooted the VM where Ubuntu is installed. with "sudo fdisk -l" the disk is seen as /dev/sda with the proper size, thanks! Now how to mount it?
vanadium avatar
cn flag
Is this an Ubuntu in a virtual machine? Clarify your situation - use "edit"
gb flag
@vanadium - done, edited
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.