[ offtopic ]

I shouldn't have CCed this to the list, but could not resist to
shout to the world that the previous mail was off-topic, whilest
doing the same myself.  I hope that any flames that result from
this will be sent to our mailboxes and not to the list.

> 
> Hi...    ...T T...
> 
> My filesystem went wrong.... I guess, it's because I powered off my
> machine whitout sync or shutdown sometimes.
> 
> Because it can not open swap file, file recovery can't be done.

I do not understand what opening the swapfile has to do with file 
recovery.  Booting a minimal kernel should work fine without to
much RAM requirements.  4Mb is probably plenty.
Try booting with init=/bin/bash to get a real_minimal_boot, then
run mkswap on your swapdevice. If you do not remember what your
swapdevice is, check with "fdisk -l". It is the one with type 82.

> Read-only option is set on all files and no ftp nor mount is available.

The files are not changed to read-only.  The filesystem probably is
mounted read-only. You can remount it read-write.  "man mount".

Further I do not under stand why ftp is not available, nor do I 
understand what you would like to use it for in this case.

> As you can guess, no new file I can make.

Suggested cures:

1. Boot of a floppy, and restore the filesystem
   ( e.g go to another computer and write the slackware bootdisk and
     rescue disks, then boot your own computer into a root shell.
     You can now run fsck and mount your old filesystems like this:
     cd / ; mkdir my_root && mount /dev/hda1 /my_root

2. Try something careless, like: mount /dev/hda1 / -o remount,rw
   You now can create or edit new file, like /etc/mtab
   !BEWARE! This will mount the root filesystem read-write, even if
   it is corrupt. This is not the recommended method, though I have
   used it often before. 

   
> I already done "fsck /dev/hda1" and "fsck -fsP /dev/hda1" according to
> the boot time error message.

I have never seen those messages. Which distribution are you running?
My own experience is limited to slackware, and now some experimenting
with redhat, soon te be followed by mandrake and debian.

> I also tried to upgrade kernel.

Should not help.  Shouldn't succeed either.


> Is there any way to recover my filesystem?

<shameless pun>
There is allways your backup.  You _do_ have a backup, don't you?

> Have I gone too far? T T...

No. I worst come to worst, rebuild your linux computer and make sure
that you use atleast a few partitions for linux:

/           A small filesystem, e.g 64Mb, the only partition that you
            require to boot, and one that you have a backup from.

/usr       The place were most files reside, maybe make a link from
           /home to this partition. Do not /home be a directory on /
           unless you are the only user or the other users know what
           they are doing or quotas are turned on.

/usr/local The place were all _your_ non-standard files reside.
           This is a partion that you wish to backup.
           When upgrading or even replacing / and /usr, this fs
            can be left virtually alone.

<swap>    If needed.
/home     If needed.
/var/log  If needed.

> Please help me.  
> 
> Regards, 
> heejin.
> -
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to