LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-22-2006, 05:54 AM   #1
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Rep: Reputation: 32
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,
 
Old 04-22-2006, 07:02 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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
 
Old 04-22-2006, 07:11 AM   #3
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
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.
 
Old 04-22-2006, 07:12 AM   #4
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
But the question remains, why was my root password not being accepted when I tried to boot through Slackware?
 
Old 04-22-2006, 11:42 AM   #5
the.madjack
Member
 
Registered: Apr 2006
Distribution: Slackware 10.2
Posts: 52

Rep: Reputation: 15
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.
 
Old 04-22-2006, 11:15 PM   #6
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
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)?
 
Old 04-22-2006, 11:20 PM   #7
zytsef
Member
 
Registered: Apr 2006
Location: Vancouver, Canada
Distribution: Slackware, Ubuntu
Posts: 168

Rep: Reputation: 30
just umounting then fscking would be easiest.
 
Old 04-23-2006, 01:13 AM   #8
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
Thanks! :-)
 
Old 04-23-2006, 10:55 AM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
And afterwards maybe it would be a better idea to convert to a journaling filesystem like ext3 or Reiserfs.
 
Old 04-23-2006, 09:38 PM   #10
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
Hey but it is ext3!
 
Old 04-24-2006, 02:08 AM   #11
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
That's not supposed to happen! What did you do?
 
Old 04-24-2006, 02:13 AM   #12
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
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.
 
Old 04-24-2006, 02:14 AM   #13
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
I think this one and the problem I have recounted here - http://www.linuxquestions.org/questi...d.php?t=438198 are inter-related.
 
Old 04-24-2006, 02:21 AM   #14
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
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.
 
Old 04-24-2006, 03:06 AM   #15
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 440

Original Poster
Rep: Reputation: 32
Can I convert the filesystem to Rieserfs from ext3 now, without corrupting the data
 
  


Reply



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
system alarm on boot in slackware 10.0 but not win2000(dual boot) Arch Stanton Slackware 3 01-24-2005 10:33 AM
Unable to boot to WindowsXP Pro from LILO, Slackware 10. (Hangs) DaneM Slackware 5 07-13-2004 02:38 AM
Newly installed slackware system will not boot yelo Slackware - Installation 5 05-11-2004 06:01 AM
Newbie installing w2k and slackware 9 - unable to boot slack speederpro Slackware 7 06-03-2003 09:19 PM
Slackware 9.0 - unable to boot from CD initself Slackware 2 04-09-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:55 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration