[opensuse-factory] leap 15.0 - shouldn't the partitioner re-use existing swap?
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out. -- Per Jessen, Zürich (-1.6°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Per Jessen wrote:
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out.
I'd call it the safe way. Could be the existing one contains a hibernated system? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 23.02.2018 09:59, Peter Suetterlin wrote:
Per Jessen wrote:
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out.
I'd call it the safe way. Could be the existing one contains a hibernated system?
This can be detected easily: the signature is different then. -- Stefan Seyfried Ceterum censeo fluid-soundfont esse delendam (from the Leap 15 DVD :-) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Peter Suetterlin wrote:
Per Jessen wrote:
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out.
I'd call it the safe way. Could be the existing one contains a hibernated system?
I did wonder about that too. It's obviously not a big deal, just new behaviour (I think). -- Per Jessen, Zürich (-2.1°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2018-02-23 09:59, Peter Suetterlin wrote:
Per Jessen wrote:
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out.
I'd call it the safe way. Could be the existing one contains a hibernated system?
Formatting the swap partition of an hibernated system will cause it to crash, and corrupt all the partitions it was using. Normally, a computer that is hibernated will not allow to boot any other system, including the install DVD/stick. Although it can be forced to do boot another system, this is very dangerous. If the partitioner finds an hibernation image it should abort. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
Carlos E. R. wrote:
On 2018-02-23 09:59, Peter Suetterlin wrote:
Per Jessen wrote:
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out.
I'd call it the safe way. Could be the existing one contains a hibernated system?
Formatting the swap partition of an hibernated system will cause it to crash, and corrupt all the partitions it was using.
Nitpicking: It's not running, so it can hardly crash :D While yes, it's likely leaving unclean partitions, I'd expect the hibernate script also to do something like a sync before, so damage should be small. Better than just switching off the power/pressing reset, which most systems handle quite well these days.
Normally, a computer that is hibernated will not allow to boot any other system, including the install DVD/stick.
What? TBH, this is the first time I ever hear this. And I *have* booted hibernated systems with a different OS. Quite some time ago though - I'm exclusively using suspend nowadays.
If the partitioner finds an hibernation image it should abort.
NACK, by all means. I might very well know what I'm doing. Just aborting and refusing to work is exactly the kind of Windows-typical behavior that I do **NOT** want to see on Linux. A clear warning is fine. Everything else is not -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, 23 Feb 2018 14:52:15 +0100
Peter Suetterlin
Nitpicking: It's not running, so it can hardly crash :D
Exactly. I have installed a number of multi-boot PCs with Windows and 3,4+ Linux distros, all the distros sharing a single swap partition and a single /home partition (with different user accounts). It works fine. If you try to boot a different Linux, it finds someone else's signature in the swap partition, discards the saved image and boots normally, as far as I can recall. Windows, of course, doesn't know or care. If you try to resume a hibernated OS and its hibernation image has gone, it just boots normally. The only problem I have encountered is a new one and recent. Windows 10 will sometimes hibernate when you ask it to shut down, so that it starts quicker next time. If I do not know this and boot Linux, systemd will not mount the Windows partitions because they were not cleanly unmounted -- and since my Windows partitions are automounted at boot time, and contain my work folders, this puts systemd in a loop, endlessly retrying to mount unclean C: and D: NTFS volumes. The only solution is to boot Windows and shut it down properly. The snag is, systemd *also* does this if it can't mount my Linux partitions for some reason, and then, the solution is to just force a reboot with Ctrl-Alt-Del. But it is not visible appearent _which_ partitions won't mount without careful inspection, so normally, I reboot a few times before I figure out Windows is to blame. This is the one thing about systemd that really annoys me.
While yes, it's likely leaving unclean partitions, I'd expect the hibernate script also to do something like a sync before, so damage should be small.
I think it does.
Normally, a computer that is hibernated will not allow to boot any other system, including the install DVD/stick.
What? TBH, this is the first time I ever hear this. And I *have* booted hibernated systems with a different OS. Quite some time ago though - I'm exclusively using suspend nowadays.
I agree. This is news to me too, and does not match what I have seen on my own machines. -- Liam Proven - Technical Writer, SUSE Linux s.r.o. Corso II, Křižíkova 148/34, 186-00 Praha 8 - Karlín, Czechia Email: lproven@suse.com - Office telephone: +420 284 241 084 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op vrijdag 23 februari 2018 16:06:08 CET schreef Liam Proven:
On Fri, 23 Feb 2018 14:52:15 +0100
Peter Suetterlin
wrote: Nitpicking: It's not running, so it can hardly crash :D
Exactly.
I have installed a number of multi-boot PCs with Windows and 3,4+ Linux distros, all the distros sharing a single swap partition and a single /home partition (with different user accounts).
It works fine. If you try to boot a different Linux, it finds someone else's signature in the swap partition, discards the saved image and boots normally, as far as I can recall. Windows, of course, doesn't know or care.
If you try to resume a hibernated OS and its hibernation image has gone, it just boots normally.
The only problem I have encountered is a new one and recent.
Windows 10 will sometimes hibernate when you ask it to shut down, so that it starts quicker next time. If I do not know this and boot Linux, systemd will not mount the Windows partitions because they were not cleanly unmounted -- and since my Windows partitions are automounted at boot time, and contain my work folders, this puts systemd in a loop, endlessly retrying to mount unclean C: and D: NTFS volumes.
The only solution is to boot Windows and shut it down properly.
The snag is, systemd *also* does this if it can't mount my Linux partitions for some reason, and then, the solution is to just force a reboot with Ctrl-Alt-Del.
But it is not visible appearent _which_ partitions won't mount without careful inspection, so normally, I reboot a few times before I figure out Windows is to blame.
This is the one thing about systemd that really annoys me.
While yes, it's likely leaving unclean partitions, I'd expect the hibernate script also to do something like a sync before, so damage should be small.
This can be worked around by disabling FastBoot in Windows. That is what leaves the FS in an unclean state. -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team Linux user #548252 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, 23 Feb 2018 16:13:35 +0100
Knurpht - Gertjan Lettink
This can be worked around by disabling FastBoot in Windows. That is what leaves the FS in an unclean state.
Thanks for the info. I will find out how to do that. -- Liam Proven - Technical Writer, SUSE Linux s.r.o. Corso II, Křižíkova 148/34, 186-00 Praha 8 - Karlín, Czechia Email: lproven@suse.com - Office telephone: +420 284 241 084 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2018-02-23 a las 16:06 +0100, Liam Proven escribió:
On Fri, 23 Feb 2018 14:52:15 +0100 Peter Suetterlin
wrote: Nitpicking: It's not running, so it can hardly crash :D
Exactly.
I have installed a number of multi-boot PCs with Windows and 3,4+ Linux distros, all the distros sharing a single swap partition and a single /home partition (with different user accounts).
...
Normally, a computer that is hibernated will not allow to boot any other system, including the install DVD/stick.
What? TBH, this is the first time I ever hear this. And I *have* booted hibernated systems with a different OS. Quite some time ago though - I'm exclusively using suspend nowadays.
I agree. This is news to me too, and does not match what I have seen on my own machines.
Because you use a single swap partition, shared between all: thus it is impossible to boot another system while one is hibernated. ie, booting the second system destroys the hibernation of the first. When I hibernate my laptop, I can not even reach the bios configuration page, nor the grub menu: both are disabled till the hibernated system recovers. - -- Cheers Carlos E. R. (from openSUSE 42.3 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlqQVTQACgkQja8UbcUWM1w+DQEAj5F8Ymmr1H8hXcl9CigvMYTC OuYa2nPk22EbJt3nNqUA/1o63Zj4t5T2oi6/rHb0+/3cPfLtViUsi/c1Na9ZTlzp =gCK2 -----END PGP SIGNATURE-----
Liam Proven composed on 2018-02-23 16:06 (UTC+0100):
The only problem I have encountered is a new one and recent.
Windows 10 will sometimes hibernate when you ask it to shut down, so that it starts quicker next time. If I do not know this and boot Linux, systemd will not mount the Windows partitions because they were not cleanly unmounted -- and since my Windows partitions are automounted at boot time, and contain my work folders, this puts systemd in a loop, endlessly retrying to mount unclean C: and D: NTFS volumes.
The only solution is to boot Windows and shut it down properly.
Another besides disabling FastBoot in Windows is to avoid boot dependence on the Windows volumes via the nofail fstab option.
The snag is, systemd *also* does this if it can't mount my Linux partitions for some reason, and then, the solution is to just force a reboot with Ctrl-Alt-Del.
But it is not visible appearent _which_ partitions won't mount without careful inspection, so normally, I reboot a few times before I figure out Windows is to blame.
I'm pretty sure that when using nofail, dmesg will report which failed to mount.
This is the one thing about systemd that really annoys me.
Many more than one here. e.g. chkconfig -l output would always be alphabetized and neatly fit the scrollback buffer if not a single screen. -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 23.02.2018 um 14:52 schrieb Peter Suetterlin:
Carlos E. R. wrote:
Normally, a computer that is hibernated will not allow to boot any other system, including the install DVD/stick.
What? TBH, this is the first time I ever hear this. And I *have* booted hibernated systems with a different OS. Quite some time ago though - I'm exclusively using suspend nowadays.
Well, you were lucky. Mount the partition of a hibernated Linux system (with a rescue system for example), and be prepared for an ugly incarnation of data loss and corruption. The same if you mount the file system of a hibernated windows system from Linux (but I seem to remember windows FS nowadays have a flag to signal hibernation and good drivers will refuse to mount them, at least if no extra --force option is given). BTDT. It was a Kernel hacker(!) who was surprised his FS was grossly corrupted after he "just copied off one file" using a rescue disk on his hibernated system. The same is true, BTW, if for some reason (different kernel version, kernel without hibernation support at all,... is booted) resume fails and the machine boots up instead. The init scripts (now systemd services) then deliberately destroy the hibernation image to avoid the case of later the "correct" kernel booting and resuming the system, with the file systems changed under it and also causing havoc on mounted FS. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2018-02-23 a las 14:52 +0100, Peter Suetterlin escribió:
Carlos E. R. wrote:
On 2018-02-23 09:59, Peter Suetterlin wrote:
Per Jessen wrote:
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out.
I'd call it the safe way. Could be the existing one contains a hibernated system?
Formatting the swap partition of an hibernated system will cause it to crash, and corrupt all the partitions it was using.
Nitpicking: It's not running, so it can hardly crash :D
Well, it not be able to thaw at all.
While yes, it's likely leaving unclean partitions, I'd expect the hibernate script also to do something like a sync before, so damage should be small. Better than just switching off the power/pressing reset, which most systems handle quite well these days.
No, hibernate does not sync the filesystems. But I was mistaken: erasing the swap partition in that case is similar to hitting the power button.
Normally, a computer that is hibernated will not allow to boot any other system, including the install DVD/stick.
What? TBH, this is the first time I ever hear this. And I *have* booted hibernated systems with a different OS. Quite some time ago though - I'm exclusively using suspend nowadays.
You have been lucky. Situation. You have a running system, and it hibernates. The filesystems remain open, files half written, some structures in ram, which are swapped, not flushed. Then you boot a second system in the same machine, and it mounts some or all the "hibernated" partitions. It thinks that the partitions are dirty, not cleanly umounted (as if the power button was hit), so it fscks the filesystems. Perhaps some files are written to those. Then thys system powers off. Next the first filesystem thaws. It thinks that the filesystems are in the state *it* left them, but they aren't. It writes the in memory structures to disk *in its previous unrepaired status*. The resulting destruction on those filesystems is epic. It happened to me, just once, so I know.
If the partitioner finds an hibernation image it should abort.
NACK, by all means.
I might very well know what I'm doing. Just aborting and refusing to work is exactly the kind of Windows-typical behavior that I do **NOT** want to see on Linux.
A clear warning is fine. Everything else is not
Nope. Abort. :-) If you know what you are doing, issue a command line undocumented option that allows you to continue. - -- Cheers Carlos E. R. (from openSUSE 42.3 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlqQU+QACgkQja8UbcUWM1y+9QEAjNN++7Zv3sXWNjkcpEEchbjS DFY1hJ6nR3iDXm5dIbIBAIPwHWhCogEW8Pal5XIAJgKGjIrfz3XzfHIrDcTmSshN =SzLq -----END PGP SIGNATURE-----
Am 23.02.2018 um 13:34 schrieb Carlos E. R.:
Formatting the swap partition of an hibernated system will cause it to crash, and corrupt all the partitions it was using.
No. It will just not resume (same as if booted with "noresume" kernel parameter) and fsck all filesystems during boot. Not much bad will happen apart from losing the saved state. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 23/02/18 03:10, Per Jessen wrote:
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out.
Did a clean install on the laptop of (latest) 15.0 yesterday and installation used the existing swap used by both TW and 42.3. BC -- Always be nice to people on your way up -- you'll see the same people on your way down. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Basil Chupin wrote:
On 23/02/18 03:10, Per Jessen wrote:
I thought I would do a full reinstall this time - just server pattern on a xen guest. I noticed the partitioner did not automatically re-use an existing swap parittion, but opted to carve a new one out.
Did a clean install on the laptop of (latest) 15.0 yesterday and installation used the existing swap used by both TW and 42.3.
Interesting. I guess it depends on the exact conditions. -- Per Jessen, Zürich (-0.2°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (8)
-
Basil Chupin
-
Carlos E. R.
-
Felix Miata
-
Knurpht - Gertjan Lettink
-
Liam Proven
-
Per Jessen
-
Peter Suetterlin
-
Stefan Seyfried