Welcome to the most active Linux Forum on the web.
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 10-13-2005, 04:18 PM   #1
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, 06:01 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"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, 01:31 PM   #3
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



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

All times are GMT -5. The time now is 09:27 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