Re: [gentoo-user] I applied mkswap on root partition

2007-11-20 Thread Stroller
On 20 Nov 2007, at 00:07, Alex Schuster wrote: ... 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. To be

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Alex Schuster
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,

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Teng Wang
Since I don't think there is anything important in the root partition, I still try to reboot my computer to see what will happen. Very Lucky, my computer reboot normally. Thank you for all your suggestion. But I still want to know what on earth mkswap does to the disk. IF it would rewrite the met

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Neil Bothwick
On Mon, 19 Nov 2007 18:25:47 -0600, Teng Wang wrote: > So, how can I exclude these directory when I use cp -av? Add -x/--onefilesystem, it's all in TFM. -- Neil Bothwick Scrotum is a small planet near Uranus. True/False? signature.asc Description: PGP signature

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Teng Wang
I think it is not hard to do a backup right now. But the problem is I use separate partition for /home /usr /usr/portage/distfiles /var /tmp. So, how can I exclude these directory when I use cp -av? -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Hemmann, Volker Armin
On Montag, 19. November 2007, Teng Wang wrote: > Hi there, > > 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 s

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Teng Wang
I still wonder that after mkswap the root partition, I even do swapon. But this time, it says it is invalid argument. So I think the data on that disk will not be lost, since it did not serve as the swap partition. So is it still screwed? -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Albert Hopkins
On Mon, 2007-11-19 at 17:36 -0600, Teng Wang wrote: > No, I don't have a backup. > And I still didn't turn off my laptop. The > problem is how I can recover my system? The first solution I was thinking of would be to back your system up before you reboot, and then re-create the filesystem and re

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Teng Wang
No, I don't have a backup. And I still didn't turn off my laptop. The problem is how I can recover my system? -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Albert Hopkins
On Mon, 2007-11-19 at 16:45 -0600, Teng Wang wrote: > Hi there, > > 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

[gentoo-user] I applied mkswap on root partition

2007-11-19 Thread Teng Wang
Hi there, 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? Thank you all! --- Teng -- [EMA