[Bug 66637] Re: swap not being mounted on boot

2006-11-01 Thread Scott James Remnant
** Changed in: Ubuntu
Sourcepackagename: None => util-linux

** Summary changed:

- swap not being mounted on boot
+ mkswap should re-use existing UUID or warn about changing it

** Description changed:

- Binary package hint: initscripts
- 
  Just upgraded to edgy.
  
  The new UUID-based fstab seems to be causing me trouble. First, whereas
  my root (and Windows) partitions have stable UUIDs, the swap partition
  doesn't, so it fails to mount on reboot.
  
  Somewhat related I'm sure is the fact that hibernation doesn't work.
  When resuming, it both doesn't resume properly, and also leaves the swap
  partition without a valid signature (mkswap fixes.)

-- 
mkswap should re-use existing UUID or warn about changing it
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-31 Thread ben

jens_acamedia wrote:
> ben  - uuid changes are not always reflected until after a reboot...
> 
> follow THESE instructions and report back
> 
> 1, determine your swap with 'fdisk -l'
it is /dev/hda2

> 2, do mkswap on your swap partition - RECORD THE UUID WHICH THIS COMMAND
> OUTPUTS
 mkswap /dev/hda2
Setting up swapspace version 1, size = 1496993 kB
no label, UUID=eb19acf3-bf59-484b-beac-a46f6b3dc990

> 3, now use this UUID to put into fstab and resume
> files...(RESUME=UUID= should go in /etc/initramfs-tools/conf.d/resume

done

> 4, update-initramfs -u
done, without errors

> 5, reboot normally after this finishes
now it works.
THANKS A LOT.

i try to figure out, what i have done wrong yesterday.
first i did determine the UUID of the swap-device and did a mkswap on the 
symbolic link /dev/disk/by-uuid/ (i do not know, why i did so) and maybe 
that will not work?!

again: thanks you very much for your step-by-step - instructions!

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 66637] Re: swap not being mounted on boot

2006-10-31 Thread jens_acamedia
ben  - uuid changes are not always reflected until after a reboot...

follow THESE instructions and report back

1, determine your swap with 'fdisk -l'
2, do mkswap on your swap partition - RECORD THE UUID WHICH THIS COMMAND
OUTPUTS
3, now use this UUID to put into fstab and resume
files...(RESUME=UUID=https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-31 Thread ben
amnesia: yes, i have done exactly this:

- determined my swap-partition device with fdisk -l

- got the right UUID of the swap-partition with vol_id

- wrote 
RESUME=UUID=
in /etc/initramfs-tools/conf.d/resume 

- wrote the right UUID into the /etc/fstab

- then i had to correct the symlink to /dev/hda2 (in my case) in
/dev/disk/by-uuid to the new one, that vol_id has told me

- regenerated the initrd with update-initramfs -u, what finished without
errors.

but after the next reboot, the swap partition is not used because the
UUID has changed again 

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-31 Thread amnesia
ben: did you edit your /etc/fstab (the swap line) and "/etc/initramfs-
tools/conf.d/resume" as mentioned above?

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-31 Thread karaluh
I had also this problem, the fix mentioned above did the job well.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-30 Thread peridot
Upon upgrade from a clean dapper install to the released version of
edgy, this problem occurs. Suspend work ed the first time but I can't
resume, and now I have no swap.

I can fix it by doing mkswap, and I plan to (as outlined in the steps
above), but it would be nice if upgrading dapper users were not all
burned by this.

Also note: after booting without resume=..., if the swap partition
contains a valid resume image *it is dangerous to resume from it*. If
you do, the kernel will have a different picture of the filesystem and
its buffers than exists on disk and *filesystem corruption may result*
(see the swsusp2 FAQ). One hopes the kernel is smart enough to mark the
resume partition as out-of-date to avoid this pitfall.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-30 Thread ben
thx for all the help, but for me it does not work.
i did it as described and it updated the initramfs, but after every reboot the 
swap-partition has a different UUID.
i switched back to the old-fashioned style and my swap partition will be used 
as /dev/hda2, but if anyone has hint for me, i will try und report.

ben

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-30 Thread amnesia
same problem herer aswell
jens' solution worked for me too (mkswap, change to new UUID in fstab, edit 
resume file, update initramfs). Haven't tried hibernation yet but swap is 
activated now on boot so it should work.

** Changed in: Ubuntu
   Status: Unconfirmed => Confirmed

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-29 Thread Infinity
works for me too !

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-28 Thread andrikos
EDIT: The change in the symlink i required for the swapon command to
work, which I performed before hibernate.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-28 Thread andrikos
In order to work for me I had to change the symlink in /dev/disk/by-uuid by 
hand before the first hibernate.
Now swap (and hibernate) seems to work just fine

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-28 Thread Moritz Reiter
Had the same issue. Solution from tonfa and jens_acamedia worked for me.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-26 Thread dc
I've got the same problem (after upgrading from dapper to edgy).

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-25 Thread Scott James Remnant
right, you end up with a hibernate image in your swap partition; and
nothing restores that

that's not corrupted though,you could just boot with resume= to restore
it

running "mkswap" by hand is what actually buggers you :)

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 66637] Re: swap not being mounted on boot

2006-10-25 Thread tonfa
On Wed, Oct 25, 2006 at 09:38:52AM -, Scott James Remnant wrote:
> Why is the swap partition corrupted?

hibernating without a proper 'resume=' parameter (either on the grub
commandline, or in the initrd)

-- 
:wq

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-25 Thread Scott James Remnant
Why is the swap partition corrupted?

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-24 Thread tonfa
But anyway if conf.d/resume doesn't exist (that can happen), the computer will 
corrupt the swap when hibernating and the swap will not be used on reboot 
because it doesn't have a valid signature.
To me that's a bug, a system with a swap partition should pass a 'resume=' 
parameter to the kernel so that it can use it as swap even if a swsusp image is 
stored.

So please fix initramfs-tools to do that. I don't care for me, I fixed
it anyway, but I'm sure there are other that would be happy if that is
corrected.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-24 Thread Scott James Remnant
The problem is running "mkswap", this will generate a new UUID and thus
obsolete the information in both the /etc/fstab and /etc/initramfs-
tools/conf.d/resume files -- which is why you need to edit those
afterwards.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-23 Thread Andy Grover
yay works for me now too.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 66637] Re: swap not being mounted on boot

2006-10-23 Thread jens_acamedia
thank you tonfa...edited fstab and conf.d resume with value from mkswap
- regenerated initrd - and now it all works...

for anybody else reading this with the same issue regenerate your initrd
with "update-initramfs -u" after you have edited
"/etc/initramfs-tools/conf.d/resume" as tonfa described...

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-23 Thread tonfa
@jens: I think the by-uuid symlink is only updated after a reboot, you
can try vol_id

I had to do the following to solve it:
- correct fstab with the UUID outputted by mkswap (vol_id might work, but 
/dev/disk/by-uuid definitely don't)
- put "RESUME=UUID=" in /etc/initramfs-tools/conf.d resume.

The second step should definitely be done in postinst or upgrade for
initramfs-tools since without this the swapspace get corrupted after a
suspend2disk (currently the resume file is created only on install).

Now swsusp works and the laptop don't have any problem of swap disappearing.
I think the reason conf.d/resume wasn't created in the first place is because 
it was a "custom" dapper install (the swap already existed from a previous 
linux installation, so somehow when initramfs-tools was installed there wasn't 
any swap space available.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-23 Thread jens_acamedia
could the problem be that there are two UUIDs for swap...one refers to
the partition and the other refers to the swap-filesystem...

when i do mkswap it returns a new UUID for swap and no label...but when
i do 'ls -la /dev/disks/by-uuid afterwards the UUID which refers to
/dev/hda4 has not changed...

since i changed my /etc/fstab to contain the UUID which refers to
/dev/hda4 i could do a 'swapon -a' after having done mkswap...if the
UUID in fstab had referred to the UUID of the swap-filesystem it would
have failed...

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-23 Thread Matt Zimmerman
There seem to be further reports here:

http://www.ubuntuforums.org/showthread.php?t=270052

Scott, please investigate.  I don't think this is related to bug 48514,
though fixing that bug could cause other problems like this by creating
a new uuid if we aren't careful.

** Changed in: sysvinit (Ubuntu)
Sourcepackagename: sysvinit => None
 Assignee: (unassigned) => Scott James Remnant

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 66637] Re: swap not being mounted on boot

2006-10-23 Thread tonfa
67437, 65798 might be duplicate, 48514 is probably related.

-- 
swap not being mounted on boot
https://launchpad.net/bugs/66637

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs