LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-16-2002, 01:44 PM   #1
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Rep: Reputation: 15
System won't boot, can't mount partitions


My Thinkpad T-22 with RH 7.2 Linux would go into sleep mode and it was impossible to wake it up. I tried pressing the power buttom briefly, but that didn't work. It happened again this morning and I decided to press and hold the power button to force it to power down. Now when I try to boot Linux, it stops the process at a prompt saying "Enter runlevel:" If you type in a runlevel, e.g. "1" it returns an error along the lines of:

INIT: can't open(/etc/ioctl.save, 0_WRONGLY): Input/output error
INIT: Entering runlevel: 1
INIT: no more processes left in this runlevel
keyboard: unknown scancode e0 63

I tried booting from a floppy, but once booted, the system won't mount any partitions. The mount command says there's a bad superblock. Trying to use an alternate superblock doesn't help.

I tried running e2fsck on the Linux partitions, but just got error messages.

I'd be grateful for any insight or suggestion that might help.

Ethan
 
Old 09-16-2002, 01:46 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
What were your error messages after running e2fsck?
 
Old 09-16-2002, 02:05 PM   #3
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Original Poster
Rep: Reputation: 15
e2sfck returns...

e2fsck: Filesystem has unsupported feature(s) while trying to open /dev/hda3

The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem [...] then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>


Then when I run it as suggested, I get:


e2fsck: Attempt to read block from finesystem resulted in short read while trying to open /dev/hda3
Could this be a zero-length partition


Those are the results I get when running e2fsck. I'm not to familiar with e2fsck. Are there other ways to use it that I could try?

Thanks,

Ethan
 
Old 09-16-2002, 02:12 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
So I guess the next question is what perameters did you run it with?

e2fsck -p repairs the filesystem without any questions.
e2fsck -y answers y to all the questions.

What did you run it with?
 
Old 09-16-2002, 02:18 PM   #5
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Original Poster
Rep: Reputation: 15
I tried

e2fsck -p

I'll try -y

Ethan
 
Old 09-16-2002, 02:20 PM   #6
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Original Poster
Rep: Reputation: 15
I tried e2fsck with -y option and got exact same result -- "zero-length partition" question.

Ethan
 
Old 09-16-2002, 02:21 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
That was just 2 examples amongst many. man e2fsck gives quite a response.

Cool
 
Old 09-16-2002, 02:23 PM   #8
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Original Poster
Rep: Reputation: 15
OK, I'll look into that. Maybe there's something in there that will help.

Ethan
 
Old 09-16-2002, 02:24 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
e2fsk -pf /dev/hda3

For me it works

Is your drive formatted ext2 (or 3) or something else?
 
Old 09-16-2002, 02:27 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Also, are you sure it's the correct partition you are scanning?
fdisk -l (FDISK -L lowercase)
will provide information on your partition arrangement. Also make sure the partition isn't mounted.
umount /dev/hda3

Cool

<edit>
Here's my return:
Code:
root@masterc:~# umount /dev/hda7
root@masterc:~# e2fsck -p /dev/hda7
/dev/hda7: clean, 11/3211264 files, 108775/3187566 blocks
root@masterc:~# e2fsck -pf /dev/hda7
/dev/hda7: 11/3211264 files (0.0% non-contiguous), 108775/3187566 blocks
No problems, the second one there (e2fsck -pf /dev/hda7) took a while, but the partition is ~10GB, so that makes sense. The -f option forces it to check even if the partition was marked clean.
</edit>

Last edited by MasterC; 09-16-2002 at 02:30 PM.
 
Old 09-16-2002, 02:39 PM   #11
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Original Poster
Rep: Reputation: 15
I tried the -c -p -f and -b 8193 options, all with exactly the same result.

Is there some tool other than e2fsck that might help?

Ethan
 
Old 09-16-2002, 02:44 PM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
-b 8139 is simply a suggestion. It's asking you to specify your superblock. Unless that really is your superblock (which I have no idea what that is) then leave that parameter out. Try them seperately.

I believe fsck is THE tool for this, but I will google around and see what I can find for ya.
 
Old 09-16-2002, 02:46 PM   #13
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks for the replies. I tried unmounting the filesystems, but they aren't mounted in the first place.

I tried e2fsck -pf /dev/hda3 and also with different superblocks specfied, still same results.

Not sure how fs is formatted. Could be ext3, but I did a standard install.

Ran fdisk /dev/hda: "Unable to read /dev/hda". Using the -l option, returns literally nothing at all, just an empty prompt.

I have to go to a meeting right now, but I'll try again when I get back.

Thanks again,

Ethan
 
Old 09-16-2002, 02:46 PM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Check this bad boy out:
http://freshmeat.net/projects/e2salvage/?topic_id=136

Sounds good
 
Old 09-16-2002, 02:47 PM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
fdisk -l
is presented with no drives. Just the command alone and will return all drive(s) setup(s).

Cool

<edit>
And here is my example:
Code:
root@masterc:~# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 4866 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       522   4192933+   b  Win95 FAT32
/dev/hda2           523      4867  34895931    5  Extended
/dev/hda5           523      1907  11124981   83  Linux
/dev/hda6          1908      3279  11020527   83  Linux
/dev/hda7          3280      4867  12750265+  83  Linux

Disk /dev/hdb: 255 heads, 63 sectors, 2498 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1       814   6538423+  83  Linux
/dev/hdb2           815      2499  13527796+   5  Extended
/dev/hdb5           815      1851   8329671   83  Linux
/dev/hdb6          1852      2499   5198031    b  Win95 FAT32
If that helps any
</edit>

Last edited by MasterC; 09-16-2002 at 02:49 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what partitions(mount points) can you reuse in a multiple boot linux system? scottk88 Linux - General 5 08-01-2005 11:49 AM
cloning both partitions, dual boot system, master boot record, logical volume manager saranga2000 Linux - Hardware 3 01-10-2005 11:04 AM
System won't boot: hangs at grub, can't mount hd through alternate means nbier Linux - Software 5 11-23-2004 01:17 PM
System won't boot: hangs at grub, can't mount hd through alternate means nbier SUSE / openSUSE 3 11-23-2004 12:58 PM
how do i automatically mount partitions when system starts coolinuxguy246 Linux - Newbie 3 04-25-2004 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:45 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