LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-13-2015, 07:20 AM   #1
tearsforhari
Member
 
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.

Code:
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 07:23 AM.
 
Old 05-13-2015, 07:45 AM   #2
kc5hwb
Member
 
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, 07:57 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,270

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
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.

http://askubuntu.com/questions/34558...boot-partition
 
Old 05-13-2015, 08:11 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,641

Rep: Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091
Boot a live iso and copy the files back.
 
Old 05-13-2015, 08:18 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,834

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
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.
 
  


Reply


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 06:08 PM
Xen 3.0.3 running Windows Server 2008 RC2 using GPLPV drivers Savaan Linux - Virtualization and Cloud 3 11-02-2010 10:09 PM
Problem starting Xen DomU running Windows Server 2008: Can not start djbon2112 Linux - Virtualization and Cloud 2 06-10-2010 07:40 PM
How to Access windows server 2008 shared folder(samba is installed) from Ubuntu pincustomer Linux - Newbie 3 01-28-2009 04:14 AM
Ubuntu 8.04LTS + Samba (how to join active domain in Windows Server 2008) PatrickBEN Ubuntu 1 06-01-2008 06:32 AM


All times are GMT -5. The time now is 08:28 PM.

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