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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-20-2003, 10:06 AM
|
#1
|
Member
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36
Rep:
|
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.
|
|
|
10-20-2003, 10:31 AM
|
#2
|
Member
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113
Rep:
|
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.
|
|
|
10-20-2003, 10:36 AM
|
#3
|
Member
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36
Original Poster
Rep:
|
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.
|
|
|
10-20-2003, 12:02 PM
|
#4
|
Member
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170
Rep:
|
Is there a rescue function on a RH bootable CD?
|
|
|
10-20-2003, 01:09 PM
|
#5
|
Member
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113
Rep:
|
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.
|
|
|
10-20-2003, 01:59 PM
|
#6
|
Member
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36
Original Poster
Rep:
|
I mounted the partitions fine in Resue mode....but when I try to delete using rm command....it says....cannot execute binary file?
|
|
|
10-20-2003, 06:22 PM
|
#7
|
Member
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113
Rep:
|
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.
|
|
|
10-20-2003, 06:42 PM
|
#8
|
Member
Registered: Sep 2003
Location: Houston
Distribution: Red Hat 9
Posts: 36
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|