Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-13-2015, 08:20 AM   #1
Registered: Mar 2015
Posts: 79

Rep: Reputation: Disabled
Help-Need to access files in crashed Ubuntu running in Windows 2008 Server HyperV

Help!! In 12.04.5 Ubuntu, the /boot directory was full and had a lot of duplicate files from different dates, some I thought were unnecessary headers of updates. However, one series of files was called vmlinuz-3.2.0-29-generic. I moved all the files to /obsolete_files. I rebooted after having trouble upgrading packages (I think this is a second problem with this machine). I now get the following prompt.
grub rescue>

Is there a way to access the directory system so that I can move those files back? I really only need to retrieve one or two files off the system.

grub rescue>ls
(hd0) (hd0,msdos5) (hd0,msdos1) (fd0)
It doesn't under boot, or insmod. I can set prefixes. Am I doomed?

Last edited by tearsforhari; 05-13-2015 at 08:23 AM.
Old 05-13-2015, 08:45 AM   #2
Registered: Jun 2001
Location: Grapevine, Texas
Distribution: Ubuntu 14.04, CentOS 7
Posts: 102

Rep: Reputation: 15
If nothing else, you should be able to remove that drive from the Ubuntu box, mount it as a USB drive in another Unix box, and pull the files off that way. Someone might have some commands that will do it for you, but as a last resort, this should enable you to pull some files from the drive. It sounds like GRUB is corrupted, but your files on the drive should still be in tact.
Old 05-13-2015, 08:57 AM   #3
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,397

Rep: Reputation: 1417Reputation: 1417Reputation: 1417Reputation: 1417Reputation: 1417Reputation: 1417Reputation: 1417Reputation: 1417Reputation: 1417Reputation: 1417
However, one series of files was called vmlinuz-3.2.0-29-generic
On almost all Linux distributions, that is the name of the kernel without which you obviously can't boot. I don't use virtual software much but, hopefully the suggestions above will help. I don't use Ubuntu often but from what I have read at their site and forums, simply deleting files in boot often creates problems. The link below provides some methods to do this properly.
Old 05-13-2015, 09:11 AM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,001

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
Boot a live iso and copy the files back.
Old 05-13-2015, 09:18 AM   #5
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
Moving the disk to another machine would be one solution but in most cases as long as the hardware was ok booting a rescue CD or flash drive would be easier. In this case the "system" is a virtual machine so moving the disk is not really an option.

Booting the VM from the Ubuntu installation iso file will allow you to mount the boot and /(root) filesystems. You should be able to copy the files back to /boot and hopefully recover your system.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access the linux share from windows 2008 server cbc Linux - Newbie 3 07-01-2011 07:08 PM
Xen 3.0.3 running Windows Server 2008 RC2 using GPLPV drivers Savaan Linux - Virtualization and Cloud 3 11-02-2010 11:09 PM
Problem starting Xen DomU running Windows Server 2008: Can not start djbon2112 Linux - Virtualization and Cloud 2 06-10-2010 08:40 PM
How to Access windows server 2008 shared folder(samba is installed) from Ubuntu pincustomer Linux - Newbie 3 01-28-2009 05:14 AM
Ubuntu 8.04LTS + Samba (how to join active domain in Windows Server 2008) PatrickBEN Ubuntu 1 06-01-2008 07:32 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration