Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
|
04-22-2006, 05:54 AM
|
#1
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Rep:
|
Help! I am unable to boot into my Slackware 10.1 system
Hi,
My system running Slackware 10.1 was working fine till today morning. But now when I try to boot into it, it refuses to boot and stops at checking the root file system. The checking stops at 78% and here is what is displayed on the monitor -
Quote:
Testing root file system status: read-only filesystem
Checking root file system
fsck 1.35 (28-Feb-2004)
/dev/hda5 contains a file system with errors, check forced
/dev/hdat:
Inode 348386 (/opt/kde/lib/libkparts.la) has bad mode (010)
/dev/hda5: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i.e. without -a or -p options)
*******************************************************
An error occured during root filesystem check
You will now be given a chance to log into the
system in single user mode to fix the problem
If you are using the ext2 file system, running
e2fsck -v -y <partition> might help
*******************************************************
Once you exit the single user shell, the system will reboot
Type control-d to rpoceed to normal startup
(or give root pass word for system maintenance).
|
Now when I give root password, it automatically reboots back to grub.
I do not know how to come out of this mess. Kindly help
Thanking in advance,
|
|
|
04-22-2006, 07:02 AM
|
#2
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
In order to fix the filesystem on hda5, you will need to get out of multi-user mode. You have two options as far as I can see,adityavpratap.
(1) Boot the computer. You say you have grub installed. If that starts Slackware directly, you'll have to press 'e' to enter grub's edit mode and change Slackware's kernel line: you have to add "single" there (without the double quotes of course) so that you start Slackware in "single" user mode.
If you have lilo, then you need to press <TAB> at the LILO boot screen so that you have the time to type "linux single" - assuming here that the word "linux" is the name of the LILO label that starts your Slackware.
Once you get to the command prompt, you can run either
Code:
e2fsck -v -y /dev/hda5
so that any inconsistencies are automatically repaired, or
Code:
e2fsck -v /dev/hda5
where you have to press 'y' or 'n' for every inconsistency that needs to be resolved. When that finishes, you can reboot the computer and all should be fine.
(2) If you can not get as far as to the command prompt using method (1), you will need a bootable Linux CD. That can be a Knoppix CD, or Slackware's install CD. Boot from the CD, get to a command prompt, and run
Code:
e2fsck -v -y /dev/hda5
or
Code:
e2fsck -v /dev/hda5
. That should fix it.
Eric
|
|
|
04-22-2006, 07:11 AM
|
#3
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Original Poster
Rep:
|
Thanks for the prompt reply.
I have grub. so I tried to add single at the end of the kernel line.
However I got stuck at the same point. When I entered the root password when asked for, to enter the single user mode, the system simple rebooted.
However I got the general idea behind your suggestion. So I I fired up PCLinuxOS (that is already installed on my system alongwith Slack and WinXP) and added /dev/hda5 (root of Slack) to the fstab.
I rebooted.
During the boot up of PCLinuxOS the /dev/hda5 was again checked and got the same error message and was prompted for root password. Upon entering the root password I was dropped to the single user mode. I gave fsck /dev/hda5. Now all the errors were set right this time.
|
|
|
04-22-2006, 07:12 AM
|
#4
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Original Poster
Rep:
|
But the question remains, why was my root password not being accepted when I tried to boot through Slackware?
|
|
|
04-22-2006, 11:42 AM
|
#5
|
Member
Registered: Apr 2006
Distribution: Slackware 10.2
Posts: 52
Rep:
|
you should really use the 2nd idea suggested by Alien Bob. By booting using Knoppix or other LiveCD, you could do the checking without mounting the partition,which is more preferable.
|
|
|
04-22-2006, 11:15 PM
|
#6
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Original Poster
Rep:
|
Ok. But right now I don't have a knoppix CD available and my Slackware install CD is corrupted.
Right now I am in PCLinuxOS. However /dev/hda5 is mounted in /mnt/hda5 through fstab. Can I comment out the entry for /dev/hda5 in fstab, reboot into PCLOS and run fsck /dev/hda5 from the command prompt
Or can I simply umount /dev/hda5 and do fsck /dev/hda5 (/dev/hda5 being the root dir for Slackware and not PCLinuxOS)?
|
|
|
04-22-2006, 11:20 PM
|
#7
|
Member
Registered: Apr 2006
Location: Vancouver, Canada
Distribution: Slackware, Ubuntu
Posts: 168
Rep:
|
just umounting then fscking would be easiest.
|
|
|
04-23-2006, 01:13 AM
|
#8
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Original Poster
Rep:
|
Thanks! :-)
|
|
|
04-23-2006, 10:55 AM
|
#9
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
And afterwards maybe it would be a better idea to convert to a journaling filesystem like ext3 or Reiserfs.
|
|
|
04-23-2006, 09:38 PM
|
#10
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Original Poster
Rep:
|
Hey but it is ext3!
|
|
|
04-24-2006, 02:08 AM
|
#11
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
That's not supposed to happen! What did you do?
|
|
|
04-24-2006, 02:13 AM
|
#12
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Original Poster
Rep:
|
Now when I think of it, it happened after an unclean shutdown. My KDE had died and I was unable to log out of it. So I pressed ctrl+alt+F6 and gave shutdown -h now as root.
The problem mentioned occured when I tried to boot in after this.
|
|
|
04-24-2006, 02:14 AM
|
#13
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Original Poster
Rep:
|
I think this one and the problem I have recounted here - http://www.linuxquestions.org/questi...d.php?t=438198 are inter-related.
|
|
|
04-24-2006, 02:21 AM
|
#14
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
Maybe consider trying Reiserfs. I also run something similar to ext2 on my *BSD system, and I had to shut down hard once. It was a terrible feeling but it seems to have recovered pretty well. Reiserfs seems more tolerant of problems and replays the journal to recover any lost updates.
|
|
|
04-24-2006, 03:06 AM
|
#15
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440
Original Poster
Rep:
|
Can I convert the filesystem to Rieserfs from ext3 now, without corrupting the data
|
|
|
All times are GMT -5. The time now is 03:09 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
|
|