Teng Wang writes: > Today, I applied mkswap on root partition by accident ( I thought that > was swap, but it is root). And since this is the only system on my > laptop, I even don't dare to reboot my computer after that. Does it > really matter? Or what should I do to recover?
With a litle luck, e2fsck should be able to repair the file system. mkswap only initializes the partition, little data should be written to the first few blocks. This includes the superblock, but you have backups of it every 8192 blocks. So try 'e2fsck -b 8193 /dev/hdwhatever', if a simple e2fsck failed, and increase to -b 16385 and so on until it works. But I'd reboot the machine first and start with a boot CD. Depending on the availability of free space, your free time, and importance of the data, you probably should backup the partition first, just in case things get messed up. Wonko -- [EMAIL PROTECTED] mailing list