LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-06-2012, 10:49 AM   #1
Eerie
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware 13.37 32-bit/win 7
Posts: 17

Rep: Reputation: Disabled
specifying e2fsck path for linux-utils


hey
after crashing my slackware 13.37 system i cant logon as fsck looks for /sbin/e2fsck on the wrong partition.

could someone kindly tell me where to specify the path?

Last edited by Eerie; 06-06-2012 at 12:50 PM.
 
Old 06-06-2012, 11:38 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,284

Rep: Reputation: Disabled
I don't know.

But e2fsck as well as cfdisk and fdisk are available on the Slackware installation media, with their respective manuals.

Just boot it, change you keyboard layout if needed, login as root (just hit enter) and you can rescue your system. For instance you can use aforementioned apps and mount Slackware-1337's partitions. e.g.:
Code:
mkdir /slackware-13.37
mount -t auto /dev/sda1 /slackware-13.37
replace /dev/sda1 by the device name of your slackware-13.37 root partition.

EDIT Or boot directly your system from the install media as indicated on the greeting screen. Chances are that e2fsck will run automatically then.

Last edited by Didier Spaier; 06-06-2012 at 11:40 AM.
 
Old 06-06-2012, 11:53 AM   #3
Eerie
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware 13.37 32-bit/win 7
Posts: 17

Original Poster
Rep: Reputation: Disabled
thanks but thats what ive been doing already using
hugesmp.s root=/dev/sda1 rdinit= ro
 
Old 06-06-2012, 11:55 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,284

Rep: Reputation: Disabled
Did you try to run e2fsck on /dev/sda1 from the install media as well?
 
Old 06-06-2012, 12:12 PM   #5
Eerie
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware 13.37 32-bit/win 7
Posts: 17

Original Poster
Rep: Reputation: Disabled
i just did it but the problem remains "/sbin/e2fsck: no such file or directory on sdd1"

you see, it's quoting the wrong drive. of course theres no e2fsck on any partition other than root.

let me clarify also:
e2fsck runs but when i start my systen it gives me the error that it cant be found (as its looking on the wrong drive)
 
Old 06-06-2012, 12:49 PM   #6
Eerie
LQ Newbie
 
Registered: Mar 2012
Distribution: Slackware 13.37 32-bit/win 7
Posts: 17

Original Poster
Rep: Reputation: Disabled
ok i solved this by adjusting the path of / in /etc/fstab
 
Old 06-06-2012, 12:56 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,284

Rep: Reputation: Disabled
Good. Having read "man fsck" which says :
Code:
If  no  filesystems are specified on the command line, and the -A option is not specified, fsck will default to
       checking filesystems in /etc/fstab serially.
I wanted to advise you to check /etc/fstab.

Too late, again
 
  


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
Treesize for Linux? Hard disk utils snafder Linux - Software 11 08-18-2015 11:47 PM
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 08:45 AM
fs damage. e2fsck will not run to fix linux partition aya_rei Linux - Software 4 02-23-2005 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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