Idea
#8092: Use file for hibernation instead of swap partition
|
| |
28
|
|
|
Written by ethana2 the 5 May 08 at 08:27.
Category: System.
Related to:
Nothing/Others.
Status: New
|
|
|
Description
Use case: A person, let's call him Ethan, has Fedora, Ubuntu Hardy, and Ubuntu Intrepid installed on a new Dell laptop.
He confuses his swap partitions. He keep losing his hibernated sessions which he sometimes entrusts with unsaved data, and he doesn't really understand why.
Data specific to one operating system should not be stored in a swap partition when said operating system is not active. A swap partition may be best for use as swap space, but when a system is hibernated, that information needs to be stored in a file within the root partition of the operating system instance that is hibernating.
Only one swap partition should be needed on a multi-boot system.
Tags:
(none)
Attachments
No attachments.
Duplicates
Comments
|
zooounds wrote on the 5 May 08 at 10:06
|
Different OS instalaltions should never share swap -1
|
|
steve196 wrote on the 5 May 08 at 11:41
|
I did not know that.
Logically you would think, that whatever is on the swap partition is junk after the OS quits and can be overwritten without damaging anything. If it isn't so, that is unexpected behaviour.
+1
|
|
pitwalker@gmail.com wrote on the 5 May 08 at 12:14
|
Hibernation is good when only 1 OS in the machine.
(Or when you hibernate you must start with hibernated OS!)
|
|
siegie wrote on the 5 May 08 at 16:38
|
Not all people have enough space on their root file system.
Most people have only one OS, so i think default we should hibernate to swap.
|
|
livio wrote on the 5 May 08 at 18:58
|
This is a rare situation when a person have more than one Linux based operating system in his computer, and I can“t imagine this situation on a notebook, where hibernate is more used.
-1
|
|
ethana2 wrote on the 5 May 08 at 19:57
|
Alright, let's explore another scenario.
A teething power user has Windows XP, Ubuntu Hardy, and Ubuntu Intrepid installed on his machine. Because he thinks that swap is basically just extended RAM, his Ubuntu installs share a swap partition. All he knows is that XP can hibernate reliably, and Ubuntu cannot. He figures it must be a hardware driver problem, and files a bug against HAL and the kernel. He now feels 1337, but his trust of Ubuntu is wounded, and he continues to rely primarily on his XP install.
..and the kernel and HAL folks have random, useless bugs to triage.
You can't say that I'm not human just because I'm more technically inclined.
"Swap is virtual RAM." ---It should be that simple.
|
|
ethana2 wrote on the 5 May 08 at 19:59
|
A kid has 1 GB of RAM and 1 GB of swap. He has the GIMP open working on some things, and is using 1.3 GB of his total virtual memory. He goes to hibernate and it fails miserably. Would you like to explain to him why?
---because he doesn't /care/.
|
|
ethana2 wrote on the 5 May 08 at 20:05
|
Please remember folks that you can't label a swap partition. It's just linux_swap. That's it. It was recommended to me recently that I keep track of my partition table on paper. In my opinion, that's ridiculous.
(I'll try not to comment here again for a while...)
|
|
ethana2 wrote on the 18 May 08 at 08:51
|
Ok folks, this isn't funny anymore.
Modified i-RAM module, 2 GB DDR mobile SATA form in Sony PlayStation 3.
That memory /will/ be blank when the power gets pulled, and I don't want my hibernated sessions going with it.
|
|
ethana2 wrote on the 25 May 08 at 03:22
|
Jucato tells me it already works like this..
but I don't know for sure.
|
|
NigelCunningham wrote on the 28 May 08 at 04:34
| |
Recent swsusp (and uswsusp?) support hibernating to a swap file. TuxOnIce also supports hibernating to an ordinary (ie non-swap) file.
|
|
ethana2 wrote on the 12 Oct 08 at 04:26
| |
2.6.27 evidently supports hibernating directly with initrd.gz or something..
|
|
Auzy wrote on the 12 Oct 08 at 04:29
| |
Actually, one strong reasomn for supporting this would be eeepc. Some only have a 8GB hdd, so nobody would want to put permanent space aside for a partition thats only for swap. If a file was used, it could be adjusted in size easily, and allow space to be more efficiently
|
Post your comment
|
|
|