<div dir="ltr"><div><div>I use LVM for all but /boot. So swap is a logical partition. That way I can tune the size of it as required.<br><br></div>Additionally, for laptops, I can encrypt the entire PVM so swap is also encrypted for situations where the laptop hibernates.<br>
<br></div>I have found that hibernations requires 1+X RAM for proper use. Not much more than 1X but enough to fully write out all of RAM plus a tiny bit extra used to tell the kernel to restore from swap. That will change if swap is actually used for a long-running process. 1.2 - 1.5 X RAM seems fair. Hard drives are cheaper than RAM anyway :-)<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 11, 2013 at 10:57 AM, Ron Frazier (ALE) <span dir="ltr"><<a href="mailto:atllinuxenthinfo@techstarship.com" target="_blank">atllinuxenthinfo@techstarship.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
Thanks for these tips. With all the partition resizing and uuid changing, I didn't know how radical to get rebuilding the swap partition. The system is running now, but, if the need arises again, I'll probably try the commands you listed.<br>
<br>
I know it's been mentioned before to some extent, but could you (or anyone) comment on the virtues of using a swap partition versus using a swap file. Windows uses a swap file. Years ago I had Ubuntu running with a swap file using a procedure I found online. When I installed Mint recently, I set up a swap partition just because it's easier. These days, I generally set the swap space as 1X RAM on Linux and 2X RAM on Windows. If I have the money, I try to put 8 GB of RAM in right off the bat. That gives the system lots of breathing room. The one big advantage of a swap file, versus a swap partition, is that it's much easier to expand it later.<br>
<br>
Sincerely,<br>
<br>
Ron<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 6/11/2013 10:01 AM, Chuck Payne wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ron,<br>
<br>
I would do as Derek said, just do a mkswap, I have done on systems<br>
where I dropped the old swap and created a new one that was a bit<br>
bigger.<br>
<br>
Just make do the following<br>
<br>
swapoff<br>
<br>
del or resize the old swap<br>
<br>
mkswap /dev/partition of the swap<br>
<br>
swapon<br>
<br>
Update fstab if you delete it and created a new one.<br>
<br>
<br>
<br>
On Tue, Jun 11, 2013 at 9:43 AM, Derek Atkins<<a href="mailto:warlord@mit.edu" target="_blank">warlord@mit.edu</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
"Ron Frazier (ALE)"<<a href="mailto:atllinuxenthinfo@techstarship.com" target="_blank">atllinuxenthinfo@<u></u>techstarship.com</a>> writes:<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On the Linux side of the fence, the boot loader was indeed broken. I<br>
used the Ubuntu boot repair disc which rebuilt grub for me. Mint then<br>
booted fine, but the swap partition was not active according to system<br>
monitor. I used gparted to delete and recreate the swap partition,<br>
then rebooted. The swap was still not active. I looked at the<br>
/etc/fstab file and found in the comments that you can use blkid to<br>
read the UUID of each partition. I also found that the UUID was wrong<br>
for both the / partition and the swap. I'm not sure how the system<br>
booted in this case, but I'm not complaining. I changed the UUID for<br>
both entries in the fstab file to the correct number for the / and<br>
swap partitions respectively and rebooted again. This time, the swap<br>
partition was working.<br>
<br>
</blockquote>
Ah, most likely the was Acronis did it was to actually mkfs new<br>
filesystems on the new drive, which generated new UUIDs, instead of<br>
doing a 'dd' and then fs-resize. That would explain the UUID changes.<br>
<br>
As for the swap, depending on what acronis did you might just need to<br>
"mkswap" to re-initialize the swap partition. You shouldn't need to<br>
erase and recreate the partition..<br>
<br>
-derek<br>
<br>
--<br>
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory<br>
Member, MIT Student Information Processing Board (SIPB)<br>
URL: <a href="http://web.mit.edu/warlord/" target="_blank">http://web.mit.edu/warlord/</a> PP-ASEL-IA N1NWH<br>
<a href="mailto:warlord@MIT.EDU" target="_blank">warlord@MIT.EDU</a> PGP key available<br>
<br>
<br>
</blockquote></blockquote>
<br></div></div><div class="im HOEnZb">
-- <br>
<br>
(PS - If you email me and don't get a quick response, you might want to<br>
call on the phone. I get about 300 emails per day from alternate energy<br>
mailing lists and such. I don't always see new email messages very quickly.)<br>
<br>
Ron Frazier<br>
<a href="tel:770-205-9422" value="+17702059422" target="_blank">770-205-9422</a> (O) Leave a message.<br>
linuxdude AT <a href="http://techstarship.com" target="_blank">techstarship.com</a><br>
Litecoin: LZzAJu9rZEWzALxDhAHnWLRvybVAVg<u></u>wTh3<br>
Bitcoin: 15s3aLVsxm8EuQvT8gUDw3RWqvuY9h<u></u>PGUU<br>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br><i><i><i><i><br></i></i></i></i>Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.<br>
- Speech 11/23/1900 Mark Twain<br><i><i><i><i><br><a href="http://electjimkinney.org" target="_blank">http://electjimkinney.org</a><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
</i></i></i></i>
</div>