Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-05 Thread Nigel Cunningham
Hi. On Mon, 2006-12-04 at 09:10 +0100, Stefan Seyfried wrote: On Sat, Dec 02, 2006 at 03:41:52PM +1100, Nigel Cunningham wrote: Hi. On Fri, 2006-12-01 at 08:39 +0100, Stefan Seyfried wrote: So if somebody submits a patch that implements a reset_signature program, i'll include

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-05 Thread Stefan Seyfried
On Tue, Dec 05, 2006 at 10:28:08PM +1100, Nigel Cunningham wrote: Since you mentioned it, what's they point to using these ugly, looong uuids? /dev/hda2 is so much simpler and easier to read for mere humans. Try updating a system using, say, the piix driver for the harddisk to the new libata

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-05 Thread Matt Sealey
Nigel Cunningham wrote: But this engineer should also know if he depends on the UUID of the swap partition to find it. If he does not, he can simply do a mkswap to reset the signature. Since you mentioned it, what's they point to using these ugly, looong uuids? /dev/hda2 is so much

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-04 Thread Stefan Seyfried
On Sat, Dec 02, 2006 at 03:41:52PM +1100, Nigel Cunningham wrote: Hi. On Fri, 2006-12-01 at 08:39 +0100, Stefan Seyfried wrote: So if somebody submits a patch that implements a reset_signature program, i'll include that in the suspend package. I don't know if you care (you might not

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-01 Thread Nigel Cunningham
Hi. On Fri, 2006-12-01 at 08:39 +0100, Stefan Seyfried wrote: So if somebody submits a patch that implements a reset_signature program, i'll include that in the suspend package. I don't know if you care (you might not want to support Suspend2), but for Suspend2 enabled kernels, you can just

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Peter Jones
On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: So it is a good idea to tell the engineer to do mkswap on the swap partition before putting the disk into the replacement hardware. Ugh, no it's not. You really want the UUID on the swap area to remain the same. -- Peter

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Stefan Seyfried
On Thu, Nov 30, 2006 at 03:00:43PM -0500, Peter Jones wrote: On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: So it is a good idea to tell the engineer to do mkswap on the swap partition before putting the disk into the replacement hardware. Ugh, no it's not. You really want

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Daniel Drake
On Thu, 2006-11-30 at 15:00 -0500, Peter Jones wrote: Ugh, no it's not. You really want the UUID on the swap area to remain the same. Why? [not questioning your reasoning, this is coming from someone who knows very little about swap structure and what the UUID is used for] Daniel

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Peter Jones
On Thu, Nov 30, 2006 at 03:00:43PM -0500, I wrote: On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: So it is a good idea to tell the engineer to do mkswap on the swap partition before putting the disk into the replacement hardware. Ugh, no it's not. You really want the UUID on

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Stefan Seyfried
On Thu, Nov 30, 2006 at 05:17:47PM -0500, Peter Jones wrote: On Thu, Nov 30, 2006 at 03:00:43PM -0500, I wrote: On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: So it is a good idea to tell the engineer to do mkswap on the swap partition before putting the disk into the

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Alan Stern
On Tue, 28 Nov 2006, Daniel Drake wrote: Hi, I have some questions about this text in Documentation/power/swsusp.txt: * If you touch anything on disk between suspend and resume... *...kiss your data goodbye. It's obvious that this is a bad idea but I'm

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Emilio Scalise
2006/11/28, Stefan Seyfried [EMAIL PROTECTED]: On Tue, Nov 28, 2006 at 10:43:51AM -0500, Alan Stern wrote: On Tue, 28 Nov 2006, Daniel Drake wrote: Hi, I have some questions about this text in Documentation/power/swsusp.txt: * If you touch anything on disk between suspend and

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Daniel Drake
On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: He just has to look at the end of the first page of the swap partition for the signature :-) So it is a good idea to tell the engineer to do mkswap on the swap partition before putting the disk into the replacement hardware. Thanks

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Stefan Seyfried
On Tue, Nov 28, 2006 at 08:06:03PM +0100, Emilio Scalise wrote: In suspend2 (now I will get flamed...) there is a nice feature that warns that you are trying to resume with a wrong kernel, that lets you reboot the machine without losing anything I won't flame you. It just does not help if