[CentOS] Changing swap resume signature location

Wed Sep 3 21:47:43 UTC 2008
Patrice Guay <patrice.guay at nanotechnologies.qc.ca>

Ian Forde wrote:
> Patrice Guay wrote:
>> At boot time, the system is looking for a resume signature on the
>> default SWAP partition that was defined during the OS installation.
>>
>> On several systems, I changed the location of the SWAP partition. How do
>> I change the location where the system looks at boot time for the resume
>> signature?
>
> Become root (or use sudo - your choice...)
> 1. 'mkswap /dev/xxx'
> 2. Put the entry into /etc/fstab
> 3. 'swapon -a' (This will ensure that your fstab entry is good.  If it
> doesn't load up, something's wrong...)
> 4. Recreate your initial ramdisk.  You could do something like:
> 'mkinitrd /boot/initrd-2.6.18-92.1.10.el5.img 2.6.18-92.1.10.el5' but
> I'd recommend creating a new ramdisk (different filename) and creating a
> new test grub entry...
>

Updating the kernel also recreates the initial ramdisk. So, step #4
could be avoided if you plan to update the kernel on your system.

Thanks for the help,
--
Patrice