Linux corrupted due to full hard disk
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??
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.
p.s. Please edit your profile so people can give you an answer that suits to your distribution.
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.
Is there a rescue function on a RH bootable CD?
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.
I mounted the partitions fine in Resue mode....but when I try to delete using rm command....it says....cannot execute binary file?
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
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.
|All times are GMT -5. The time now is 09:30 AM.|