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 10-13-2005, 05:18 PM   #1
usauom
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Unhappy large files under the old root need to be deleted


This is a recovery exercise using TAR files. I should have deleted a few of these before I started. Now they are keeping me from being able to untar my backup file.

As I understand this, the rescue disk creates a new root. I need help accessing the old root to get to the files I'll need to delete. I assume this is still possible.

I deleted directories completely at random to simulate a failure. I know for a fact that the directory containing the tar files was not directly affected.

Can anyone get me going in the right direction?

Thanks in advance. Mark
 
Old 10-13-2005, 07:01 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"As I understand this, the rescue disk creates a new root."

The rescue system creates a / file system in memory and runs on that.

"I need help accessing the old root to get to the files I'll need to delete. I assume this is still possible."

You access / by mounting your / partition on an empty directory. For example if / is an ext3 file system located on /dev/hda3 then:

mkdir /horses
mount -t ext3 /dev/hda3 /horses

Then you access the crippled system on /horses. For example, lilo.conf is at /horses/etc/lilo.conf.

-------------------------------
Steve Stites
 
Old 10-14-2005, 02:31 PM   #3
usauom
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Smile the "fix"

Steve: Thanks a lot for you help. I may see this again so I have filed your response.

What we actually did to fix this practice problem was this:

1) changed directory to proc and listed (cat) off partitions (a file you should see)
2) inside there is about 1/2 dozen or so partitions with their pathes.
3) we decided to change directory to the largest one in the list
4) this happened to be the old root
5) I then changed directories to the tar file location and deleted a few older files (freeing needed space)
6) once this was done, I was then able to decompress my TAR file backup
7) I did a TAR recovery from the root
8) I had to substitute /mnt/sysimage for / in the command line syntax
9) exited the shell which will reboot the machine

Mark
 
  


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
Urgent! Deleted Root! goosie Mandriva 12 06-30-2005 08:50 PM
Deleted user Root? legendaryfox Linux - Software 4 01-09-2005 02:12 PM
root account Deleted chandu Linux - Security 1 06-18-2004 01:47 PM
Deleted root user france Linux - Newbie 1 04-30-2004 07:57 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 02:13 PM


All times are GMT -5. The time now is 04:14 AM.

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