[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: autofs deleted reiserfs (root) partition



Micha Feigin <kamikaza_mic@yahoo.com> [2002-11-16 13:48:31 -0800]:
> I tried intalling autofs to automount cdroms.
> I set as the mount point / and the key as cdrom.

Hopefully it just mounted the autofs filesystem on top of / and did
not actually delete it.  Hopefully.  When filesystems are mounted on
top of directories the contents of the directory are covered by the
mounted filesystem.  They are not deleted in that case, just covered.

When the filesystem is unmounted the contents previously there are
still there.  Let's hope that applies to your case too.  Your kernel
looks to be booting and if you had really destroyed / this would
probably not be possible so it looks good from here.

> I tried rebooting into the same kernel and also into an older kernel,
> the kernel started up, and a bit after the line:

Changing kernels won't help as every kernel will eventually get to the
point where it starts up autofs as it has been instructed to do and
will start autofs and will overlay / with your autofs filesystem.
This is not a kernel issue and therefore trying different kernels
won't help.

> I was running woody and a single reiserfs partition using a custom
> 2.4.18 kernel.
> Any idea if there is a way to save the data on the disk?

Do you have a CD that you can boot from?  If so you can boot the CD in
rescue mode and then mount up your filesystem manually.  Then the goal
would be to turn off autofs.  I think editing /etc/auto.master and
commenting out all of the entries would be sufficient.

Alternatively you can boot in single user mode.  If you are using lilo
then at the LILO prompt, you may have to catch it as it boots, type in
'linux init=/bin/sh' and it will boot to a shell where you have
control.  I have also heard that they they have implemented 'single'
as an option, as in 'linux single' but I have not tried that.

Because you are using Reiserfs you will need to make sure you have a
kernel at boot time that knows about that filesystem type.  Since it
is not the old standard ext2 you may have to work a little to make
sure your kernel can mount your filesystem.

Good Luck
Bob

Attachment: pgpV4IP4NVIBj.pgp
Description: PGP signature


Reply to: