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 07-08-2004, 03:35 PM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,644

Rep: Reputation: Disabled
Boot only to Rescue Mode: Filesystem Problems


Back with Iexplorer, again .

History: I (re)-installed privoxy (which automatically runs SuSEconfig). To make sure that the service was running I started chkconfig -A. That got me some funny error-messages, printed very slowly over the next 30 seconds. I didn't write down the error messages due to the erroneous assumption that chkconfig doesn't write and also because chkconfig behaved normally thereafter.

Then my troubles started.

Next boot told me:
Code:
Run file system check on root for LVM activation
Reiserfs ...
Filesystem is not clean
Partition /dev/hdb8 is mounted with write permissions, 
cannot check it. Run manually.
Check for / failed
Please repair manually and reboot
root mounted ro
Good joke, repair manually. HOW?

In the rescue system I ran fsck: Read-only check of filesystem on /dev/hdb8: No corruptions found (Huh? I thought it's not clean?).

I ran cfdisk: FATAL ERROR: Bad logical partition 8: enlarged partitions overlap.

Though fdisk said: All clear on first look.

But: there is a gap in the data-blocks. /dev/hdb4 is the extended partition and funny enough, the start of /dev/hdb4 (455) is not identical whith the start of the next (logical) partition, here the start of /dev/hdb8 (496). The other LVM-partitions are in a contiguous block. This gap is not the original condition I think.

Now what? Anybody knows how to "repair manually"?

What else do I do now? Let me add, I can't access /dev/vg/home and there is where my wifes account's data are ... and she did some work since the last backup ... she is not -- shall we say, ahm, happy ... please help


Last edited by JZL240I-U; 07-09-2004 at 01:56 AM.
 
Old 07-09-2004, 05:27 AM   #2
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
Hi buddy JZL240I-U,
although I'm still a newbie, I do occasionally have some hints for your problem.

First of all I'd suggest you disable the journaling of your reiserfs. If I remember correctly, on boot you can specify to the init a prameter or two that say "do not run the journaling deamon". You'll then have somehow slow file system, but it will not mess up.

Okay, you've got the partition table messed up (I do not suspect 100% the "chkconfig -A" for that, but rather than I do suspect your journaling subsystem, which got messed up, by the reinstallation of privoxy software). Try to use the parted tool, which comes with SuSE. I alway prefer that tool to work with partition tables. The version of that tool that comes with SuSE 9.0 Pro is almost bugfree and very stable (other newer versions have bugs and do not work well with both kernel 2.4.x and 2.6.x series).

I'll also recomend, if you're able, burn the startup/boot CD from SuSE 9.0, if you haven't it already. Then boot from that CD into the Rescue: console.

From the Rescue: console type parted /dev/hdb. Please notice the warning/error messages you'll probably get on the console. If there're warnings only, please take care to compare the hardware informations about the disk with the "known-to-be-good" one from your BIOS.
On the parted command line type p to print the partition table of hdb, post the output here.
How it comes that you have your last partition (hdb8) (almost) immediately at the begining of the extended partition (hdb4)?! Was this made on your design when you setup your box, or this also should be suspected?! If parted still say you have a *gap* of 41 blocks between the begin of hdb4 and the begin of hdb8, then you should be prepared to accept some loss of data. You can try (this is *hard* run and there's no back and no return from that) to *move* the partition back to the begin of the extended one and then you can try to mount it. Keeping playing with the *move* operation could eventually *repair* the partition, but there's no guarantie at all.
How to move a partition with parted?
Well, the ? command from the parted command prompt will give you list of all major parted commands and help {command} will give help for that particular command.
Then deleting the partition and re-creating it with new start position and the same end position *enlarges* it, changing the end position too will *move* the partition. You actually do not loss any data stored on the partition, rather than you play with the partition table.

Post here any warning/error information you get from parted.
One last (for now) thing: after you boot from the SuSE 9.0 boot CD to the Rescue: console, you mount read-only the hdb8 partition, then try to run the fschk on hdb8 . Notice any errors that might be there.

I'm waiting here for further information,
Wish you good luck!

Kind regards,
sbogus

PS: Unluckily I'm still unable to convince my wife to use the SuSE box, although there's *anything* she might want to use - OOo, Web, e-mail, IM, even engineering software is running well via wine. She refuses the box because it does not have... well... a WebCam running, as her is very old and I can't tweak the box to support it. Very odd...
 
Old 07-09-2004, 07:04 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,644

Original Poster
Rep: Reputation: Disabled
Hi sbogus, long time no see .

Quote:
Originally posted by sbogus
Hi buddy JZL240I-U,
although I'm still a newbie, I do occasionally have some hints for your problem.
Hehe, my 600plus posts are mostly questions, so newbie is okay for me too .

Quote:
Originally posted by sbogus
First of all I'd suggest you disable the journaling of your reiserfs. If I remember correctly, on boot you can specify to the init a prameter or two that say "do not run the journaling deamon". You'll then have somehow slow file system, but it will not mess up.
Never heard that, but I'll try to find out more. I am pretty sure that it is no standard option for GRUB, though... Also I have a hunch that it is not the file-system / journal. I had this error with SuSE before .

Quote:
Originally posted by sbogus
Okay, you've got the partition table messed up (I do not suspect 100% the "chkconfig -A" for that, but rather than I do suspect your journaling subsystem, which got messed up, by the reinstallation of privoxy software). Try to use the parted tool, which comes with SuSE. ...
Yeah, that would mean YAST2 (the b*stard) or SuSEconfig. Since I had these errors only in conjunction with installing software / system installation I rather doubt that Reiserfs is indicated, but...

Quote:
Originally posted by sbogus
I'll also recomend, if you're able, burn the startup/boot CD from SuSE 9.0, if you haven't it already. Then boot from that CD into the Rescue: console.
No rescue-disk, so I doubt that I will be able to burn anything. But I have Knoppix 3.2, so perhaps...

Quote:
Originally posted by sbogus
From the Rescue: console type parted /dev/hdb. ... type p to print the partition table of hdb, post the output here.
Will do.

Quote:
Originally posted by sbogus
How it comes that you have your last partition (hdb8) (almost) immediately at the begining of the extended partition (hdb4)?! Was this made on your design when you setup your box, or this also should be suspected?!
Well that's SuSE for you. When I partitioned the drive I used YAST2. I put the /-directory before the LVM (Logical Volume Manager) group and YAST2 did as specified but it set the partition number, for whaterver reason, to the highmost position ... and thus there should be no gap.

Quote:
Originally posted by sbogus
... You can try ... to *move* the partition back to the begin of the extended one and then you can try to mount it. ... How to move a partition with parted? [explanation]
I'll certainly have to look into parted. BTW. fdisk in expert-modus lets you change the partition-boundaries separately without deleting the partition ... I'll compare the handling in both .

Quote:
Originally posted by sbogus
... try to run the fschk on hdb8. Notice any errors that might be there.
Did that already (See my original post) "In the rescue system I ran fsck: Read-only check of filesystem on /dev/hdb8: No corruptions found (Huh? I thought it's not clean?)."

Quote:
Originally posted by sbogus
I'm waiting here for further information,
Wish you good luck!
I'll be back tonight (at work now ). Thanks for the good wishes, I need those. And, ahm, my wife just expects that I get the d*mn box up and running .

Last edited by JZL240I-U; 07-09-2004 at 07:08 AM.
 
Old 07-09-2004, 09:21 AM   #4
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
Hi JZL240I-U,
yeah, a long long time ago...

Quote:
I'll certainly have to look into parted. BTW. fdisk in expert-modus lets you change the partition-boundaries separately without deleting the partition ... I'll compare the handling in both .
I do not trust fdsik nor cfdisk nor sfdisk! On my old (yet vanished in the Linux Heaven - Tux bless it and provide it with all the goods and things there) SuSE 7.3 box I ran into BIG problems using the c/f/s/disk utilities. The case was so damn, that I have had a total 100% data los! Since then I call this tools family f**kdisk. The only tool I use and will ever use is the parted. I'm at work too, but tonight I'll take a look on it to see if the tool does not have any handy and useful commands for partition moving.

Quote:
Never heard that, but I'll try to find out more. I am pretty sure that it is no standard option for GRUB, though...
It is not an option of GRUB, but is an kernel one. You specify it on the line where you give the kernel options (use the 'e' command to edit the boot configuration at boot time).

Quote:
Also I have a hunch that it is not the file-system / journal. I had this error with SuSE before .
What was the SuSE version of your *before*? I know that the reiserfs show be an almost perfect file system with very useful and handy journaling subsystem, but as I've tried to install SuSE 9.0 for the very first time, some months ago, I used to install reiserfs for my root and home partitions, but then after reboot and some additional packages installation I needed to boot for the second time and got the almost same file system corruption error as you expirence now. The I just dumped it out and used the good old ext2 fs. And have never had problems with it.

Quote:
No rescue-disk, so I doubt that I will be able to burn anything. But I have Knoppix 3.2, so perhaps...
You're too far away from me - I'm on the other side of the country, I can try to send you the SuSE 9.0 boot CD, but I don't know how long it will take to receive it... If you post some coordinates using this address do-not-use-that-stuff-but-use-my-nickname-append-6-to-it-append-the-AT-symbol-then-append-hotmail-dot-com

I hope you got it correctly.

Kind regards,
sbogus
 
Old 07-09-2004, 09:38 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,644

Original Poster
Rep: Reputation: Disabled
Hi sbogus,

I'll remember your warning concerning ?fdisk, thanks.

Quote:
Originally posted by sbogus
It is not an option of GRUB, but is an kernel one. You specify it on the line where you give the kernel options (use the 'e' command to edit the boot configuration at boot time).
I see. There is always something new to learn .

Quote:
Originally posted by sbogus
What was the SuSE version of your *before* ... used the good old ext2 fs. And have never had problems with it.
SuSE 9.0pro. If I can't resolve this, it'll be the 3rd complete install in 4 or 5 months. (Before that I had 8.1 and 6.4). Since I (and my wife ) frequently boot the file-system check of ext2 is too time consuming for my (our) taste(s).

Quote:
Originally posted by sbogus
You're too far away from me - I'm on the other side of the country, I can try to send you the SuSE 9.0 boot CD, but I don't know how long it will take to receive it...
That is really very kind, but I know how to get write permission for Knoppix (I think) , so I hope I get it righted without abusing your kindness.

Quote:
Originally posted by sbogus
I hope you got it correctly.
So do I So here I go for the test of intelligence and resourcefulness . Bye.
 
Old 07-09-2004, 10:30 AM   #6
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
Hi JZL240I-U,

Quote:
That is really very kind, but I know how to get write permission for Knoppix (I think) , so I hope I get it righted without abusing your kindness.
No, you don't *abuse* my kindness - I've an almost perfectly working box, the burner is up and burns whatever I want to burn, so burning a CD or two or ten is not a question at all. If you still need the CD, I'm ready.

Quote:
SuSE 9.0pro. If I can't resolve this, it'll be the 3rd complete install in 4 or 5 months. (Before that I had 8.1 and 6.4). Since I (and my wife ) frequently boot the file-system check of ext2 is too time consuming for my (our) taste(s).
My conclusion is - do not install SuSE 9.0 Pro with reiserfs. Use the ext2 or ext3 but with disabled journaling. Believe me - the journaling subs is just crap. I've my own death-bitter experience with such junk, so I do not use it anymore. And my box does not expirence any problems...
But it is up to you - you use whatever you like, I tell you just the my point of view...

If I can assist you in any kind, just let me know.

Kind regards,
sbogus
 
Old 07-10-2004, 02:06 PM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,644

Original Poster
Rep: Reputation: Disabled
Hi, sbogus

Quote:
Originally posted by sbogus
... If you still need the CD, I'm ready.
Okay, lets say I appreciate your support .


Quote:
Originally posted by sbogus
... My conclusion is - do not install SuSE 9.0 Pro with reiserfs. ... And my box does not experience any problems...
BTW. do you use LVM (Logical Volume Magnager)?

Anyhow, this is the state of my affairs:

well, parted didn't want to touch /dev/hdb8... resizing partitions was greyed/inactive (Knoppix even comes with two flavours "qtparted" and "nparted"). I tried several other venues to no avail as well. The only program daring to touch /dev/hdb8 is fdisk. Reiserfsck suspects a destroyed superblock after a recent partition-resizing.

SuSE has several tools available in its different rescue-modi but none helped. That is really an amazing array of tools, file system restoration, boot-loader, lost partitions, take your pick ... (though they don't always deliver ... SuSE ). If you are interested: boot from CD #1 -> manual installation -> then several times o.k. -> repair system ... just try it, without your go it won't touch your installation and you can see for yourself what is has to offer.

So the question is: What does the SuSE rescue-CD do that the normal SuSE CD #1 cannot do?

I'm planning now to delete /dev/hdb8 and create a new partition with the supposedly correct sector numbers using fdisk. CHANGE NO DATA. Try to boot. If not o.k. reiserfsck. If not o.k. old partition data and again reiserfsck. Any better ideas?

BTW did you get my mail?

Have a nice evening .

Last edited by JZL240I-U; 07-10-2004 at 02:09 PM.
 
Old 07-11-2004, 06:00 AM   #8
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
Hi JZL240I-U,

Quote:
BTW. do you use LVM (Logical Volume Magnager)?
Not anymore, but I used to do... Although I've playfield for LVM, I prefer to use my disks directly rather than to use some software (over)head to manage them. The SuSE 9.0 has asked me if I want a LVM settings for my 160 GB disk, I was quite unsure if I should trust him this time so I gave a single "No" and the LVM did not install.

If you ask me if my problems with the reiserfs and the journaling were with suspect to the LVM, then the answer is "No", but I'm usually a sort of paranoic in regard of the stability and security of my boxes, so I trust only what I've personally tested and what I've personally experienced. I didn't messed up very much with LVM so I dumped it the first time I got troubles with him and do not have any valuable experience with him.

Quote:
well, parted didn't want to touch /dev/hdb8... resizing partitions was greyed/inactive (Knoppix even comes with two flavours "qtparted" and "nparted").
Well, what did parted listed for your disk hdb?! Furthermore, I'd prefer in your case not to use any GUI, but rather than just parted - it will not refuse to give the requested partition table information, except in the case you busted it

Quote:
So the question is: What does the SuSE rescue-CD do that the normal SuSE CD #1 cannot do?
Well, the CD I mean is not the SuSE "rescue" CD, but rather than it is the CD burnt from the image /boot/boot.iso from the SuSE 9.0 Distribution tree. It is supposed to have only stable, good tested and high quailty packages including boosted parted (with NTFS management tools) and enchanced recovery software. In otherway it is just identical to the CD #1 from the SuSE setup package. I did not bought the CDs, I mirrored the whole distribution tree on my disk (over 7 GB) and then just made "install from HDD"

Your plan seems okay to me, I'd just be thankful if I can see what is the output of the command
parted /dev/hdb and then the command p from the parted command prompt.

I'll keep my finger crossed buddy, don't give up!

Kind regards,
sbogus
 
Old 07-12-2004, 02:28 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,644

Original Poster
Rep: Reputation: Disabled
R.I.P. SuSE...

Hi sbogus,

this is the deplorable story of SuSE's demise ... *sob*

As I had announced I carried out my scheme: fdisk and the creation of the original size of /dev/hdb8. Now the situation was worse, the error being at /dev/hdb5, no access to /etc/fstab ... which previously still worked. So I reset to the original parameters ... and got the first kernel panic of my Linux-life. And from there I found no way to recovery. Thus I used a low-level formatting to make sure that it weren't Disk problems. So now I have to rebuild: ext2 and no LVM, though I will miss both. Perhaps with Reiser 4.0...

Quote:
Originally posted by sbogus
Well, what did parted listed for your disk hdb?! ... I'd just be thankful if I can see what is the output of the command parted /dev/hdb and then the command p from the parted command prompt.
No parted on Knoppix or SuSE-rescue either, only qtparted and nparted, so I cant't post the result of parted -p but as I understand it, they are just front-ends so there is no difference in the output to be expected.

Quote:
Originally posted by sbogus
... it will not refuse to give the requested partition table information, except in the case you busted it
I'm afraid I --or rather SUSE-config-- did just that.

Quote:
Originally posted by sbogus
... I'll keep my finger crossed buddy, don't give up!
I didn't give up that blasted thing just broke .

Anyhow, I'll be seeing you I guess...
Thanks for your support

Last edited by JZL240I-U; 07-12-2004 at 02:29 AM.
 
Old 07-12-2004, 04:28 AM   #10
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
Hi JZL240I-U,
I'm sad I didn't manage to help you out of the situation, you loss all your data and that's bad...
Sorry buddy!

About the reiserfs and the LVM - I do not miss them, as I do not see any clear advantage over the stable ext2 file system. I see disadvantages only. Probably you should use XFS one if you definitely need journaling. The LVM should work perfect if used ext2 or XFS, but again I do not use it, so I cannot give you any guarantee it will do so.

One thing I'd do in your case - after I make simple rebuild without the big deal of tuning and optimizing your system, I'll install this famous privoxy software and will take care about possible errors thereafter. If all went okay, then the file system death lies definitely in the area "reiserfs" with or without LVM. I'd even dare to install LVM on the ext2 partitions to probe if it has impact on how the privoxy software installs/configures/operates.

Quote:
No parted on Knoppix or SuSE-rescue either, only qtparted and nparted, so I cant't post the result of parted -p but as I understand it, they are just front-ends so there is no difference in the output to be expected.
That's very strange buddy - if you have the GUI frontends and they run properly, it is unlikely you don't have the parted application itself. This software consists of three components: libparted is the core library used from the GUIs and from the command line frontend, then comes the command line frontend, which has additional functionalities *on board*, that aids the work with partition tables and then comes the third (optional) component, the GUI frontend. The GUIs may or may not use parted, but the do use libparted. So if it is really the case you have the core library and the GUIs only, but do not have the parted, then I did a big mistake - I should have sent you that SuSE 9.0 boot disk last week... As I said, there's some advanced recovery software including parted, but without the GUIs. Obviously this is also a difference to the recovery CD from the SuSE setup package.
When you build up your box again, I'd suggest you burn this boot.iso image on a CD and name it SuSE 9.0 Pro Boot CD. It will be then your salvation in case of something goes ugly in your box.

Quote:
Anyhow, I'll be seeing you I guess...
Thanks for your support
Thanks for the kind words JZL240I-U, *seeing* among linuxers is always a good thing. Just the distance between Hamburg and Munich is too long...

Kind regards,
sbogus
 
  


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
rescue mode hansi umayangan Linux - General 1 03-16-2005 11:43 PM
Using rescue mode to resolve problems Duusu Linux - Distributions 5 08-29-2004 04:07 AM
How could I go into Rescue Mode??? unixfreak Linux - Newbie 20 08-24-2004 09:19 PM
How to boot into rescue mode with 2.4 (alt1) lewisdw Mandriva 0 08-08-2004 12:58 PM
Why is it so difficult to reinstall RH9's Boot loader using the Linux Rescue mode? Seph64 Linux - Distributions 10 10-04-2003 08:24 PM


All times are GMT -5. The time now is 10:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration