IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Grr. A linux problem that is irritating.
Somewhat atypically, I have found a Linux problem that there is no straightforward fix for.

I have a hard drive that is reporting lots of errors. The errors are repeatable on the same sectors, so it's likely a media failure. Unfortunately, this is the root and only partition for the Linux install on that PC. And I can't boot without it forcing a check. A check that fails and drops into a maintenance shell. Interestingly, the maintenence shell leaves the partition mounted read-write, but leaving the shell makes it reboot. So I have to make the filesystem "clean". Somehow.

Unfortunataly, the *ONLY* way to do that is for a fsck to complete. Successfully. Did I say *ONLY*? Yes, I did: good. *There Is No F#*(%$*#@ Way To Force The FileSystem To Be Marked "Clean"*.

I just need the system to boot enough to bring the network up, then I can copy off what files I can't replace and set about replacing the drive. But I have to wait hours and hours for the disk fix tools to trundle through all the faulty sectors so it might have a chance of marking it "Clean". :-( I thought tune2fs might be able to do this, but not really. I got "Unclean shutdown" on the reboot.

I'm thinking of filing a bug report on Ubuntu. I *should* be able to do this. Maybe I should have posted in Flame On.

Wade.

"Ah -- I take it the doorbell doesn't work?"
New Can you boot it from a SysRescCD?
CloneZilla-SysRescCD has worked well for me. It's got lots of options and recovery tools. http://clonezilla-sysresccd.hellug.gr/

Good luck!

Cheers,
Scott.
New The optical drive has other issues...
I tried booting from the CD I installed from and it won't see it. It's been dying for months; I think the laser diode has lost output.

Wade.

"Ah -- I take it the doorbell doesn't work?"
New Will it boot from USB?
There's instructions for USB booting: http://clonezilla-sy...ellug.gr/usb.html

I'm having no luck in trying to find the right terms for a Google search for the error. If you can't get things going fairly easily, it might help to post more about the error and your hardware so that we can winnow things down a bit more.

Good luck!

Cheers,
Scott.
New I rather doubt it.
CPU is an Athlon 1800. On-board USB is 1.1. I do have another optical drive, actually, but it's just a CD-RW drive, not a DVD-RW.

I think I kinda need to start again with this PC, actually. It's had problems all it's life. There's a PCI slot that I marked as unreliable years ago, for instance, after months of fighting with a sound card.

Wade.

"Ah -- I take it the doorbell doesn't work?"
New That's rough.
I think what I'd try to do in that situation is remove the drive from that PC and use an IDE/SATA to USB converter to connect it to another PC. Then use fsck and ddrescue or similar tools to try to repair it and/or get the important information off it. Then you could take your time in deciding what to do about the temperamental hardware.

Good luck!

Cheers,
Scott.
New Step 1.
Buy another PC.

:-/

Well, it still boots to Windows off the other hard drive, so I'll go back to that.

Wade.

"Ah -- I take it the doorbell doesn't work?"
New go in the shell to /etc/rc directory
start running the network startup scripts or depending on distro /etc/init.d/$scripts
New Re: Grr. A linux problem that is irritating.
What does your /etc/fstab say for "/"?

Also, typically there is a file that gets left on the filesystem just before a machine is rebooted, to indicate that the Filesystem was umounted cleanly....

If it ain't there, its gonna scan.
New I tried looking for that file.
I couldn't begin to find the scripts init runs before it starts on the rc.* ones. (Is my Linux knowledge that rusty?)

I don't have the line for / to hand.

Wade.

"Ah -- I take it the doorbell doesn't work?"
New well quite often the rc files are symlinks to /etc/init.d
New Yes, I know that.
But there's a script it runs before it gets to any of the /etc/init.d ones. I think it's buried in the initrd.

Wade.

"Ah -- I take it the doorbell doesn't work?"
New Try /etc/inittab
(Weird. I thought I posted this this morning, but I guess I didn't click hard enough...)

Look for the si: entry. (e.g. on Debian, it triggers the execution of the S entries in /etc/rcS.d which do the initial checks and mounts.)
     Grr. A linux problem that is irritating. - (static) - (12)
         Can you boot it from a SysRescCD? - (Another Scott) - (5)
             The optical drive has other issues... - (static) - (4)
                 Will it boot from USB? - (Another Scott) - (3)
                     I rather doubt it. - (static) - (2)
                         That's rough. - (Another Scott) - (1)
                             Step 1. - (static)
         go in the shell to /etc/rc directory - (boxley)
         Re: Grr. A linux problem that is irritating. - (folkert) - (4)
             I tried looking for that file. - (static) - (3)
                 well quite often the rc files are symlinks to /etc/init.d -NT - (boxley) - (1)
                     Yes, I know that. - (static)
                 Try /etc/inittab - (scoenye)

I tried it. Little sweet explosions with disgusting texture. It was awful.
54 ms