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-20-2003, 10:06 AM   #1
ravykanth
Member
 
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36

Rep: Reputation: 15
Linux corrupted due to full hard disk


Hello,
I had RH9 install on a hard-disk and I didn' realize that the disk partition where /root was residing got full...and the next time I booted it says it is corrupt or soemething. Is there a way to boot and then delete unnecessary files??

Thanks,
Ravi.
 
Old 10-20-2003, 10:31 AM   #2
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
hi Ravi,

take a bootable cd distro (like knoppix), boot from it, mount your /root partition and delete unnecessary files.

If you do not have access to knoppix, just boot from your installation cd and go to the console to do the deletion of files.

I also got into some similar situation and sucessfully solved the problem with help of knoppix

If you need more specific information, just ask.

good luck,


p.s. Please edit your profile so people can give you an answer that suits to your distribution.

Last edited by realos; 10-20-2003 at 10:34 AM.
 
Old 10-20-2003, 10:36 AM   #3
ravykanth
Member
 
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
Hi Luqman,
Sorry...but since I am relatively new to Linux, I didn' quite get what you said. The CD's I burned from Red Hat website are bootable...if thats what you are talking about. So when I boot into it...how do I mount the root partition? Thanks for your help.

Ravi.
 
Old 10-20-2003, 12:02 PM   #4
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
Is there a rescue function on a RH bootable CD?
 
Old 10-20-2003, 01:09 PM   #5
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
1) start your system with bootable CD
2) choose "rescue" function during the installation procedure which should bring you in a console
3) mount your /root partition:

console$ mkdir /mnt/root
console$mount -t ext3 /dev/hdax /mnt/root

I am supposing that your file system is ext3. If it does not work try using ext2, reiserfs etc.

Subsitute the x in /dev/hdax with correct value:

/dev/hda1 for first partition
/dev/hda2 for second partition
/dev/hdb1 for first partition on second harddrive

4) delete unnecessary files
console$ cd /path/to/the/directory/
console$ rm -r <directory or file>

5) restart with "iinit 6" or "reboot".

Please let me know whether it works or not.

Last edited by realos; 10-20-2003 at 01:10 PM.
 
Old 10-20-2003, 01:59 PM   #6
ravykanth
Member
 
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
I mounted the partitions fine in Resue mode....but when I try to delete using rm command....it says....cannot execute binary file?
 
Old 10-20-2003, 06:22 PM   #7
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
Well, then I guess your iso image you downloaded from the internet contains some corrupted files, "rm" binary may be one of them. Alway check big files against error after downloading with md5sum.

A solution could be to mount your original root "/" partition and use the "rm" command from that root partition to delete the required file:

1) mount -t ext3 /dev/hdax /mnt/root
2) chroot /mnt/root /bin/bash
Now you are in your installed system. "/" in chrooted environment is the /mnt/root
3) rm -r /directory/or/files

regards,

Last edited by realos; 10-20-2003 at 07:10 PM.
 
Old 10-20-2003, 06:42 PM   #8
ravykanth
Member
 
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36

Original Poster
Rep: Reputation: 15
Hey Luqman,
Thanks for the info....but I deleted some files...and still am stuck. I have posted all the errors in detail in the other thread named "RH9 won' boot due to lack of space". Please help me if you can. Thanks again.

Ravi.
 
  


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
/proc filesystem has too many 2gb files hard disk getting full sadun Suse/Novell 5 09-16-2005 07:40 AM
Grub problem due to full hard drive nixnix Linux - General 2 08-19-2005 10:35 AM
Linux doesn' boot due to lack of hard disk space ravykanth Linux - General 1 10-27-2003 03:44 PM
help! full hard disk! huffboy Slackware 4 10-11-2003 01:07 AM
RH7.1 Install - Server class - hard disk corrupted DoubleLetter Linux - Software 2 08-14-2001 07:16 AM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration