Re: Upgrading from Lenny to Squeeze

My box is ALMOST working correctly, but not quite...

On 11/28/11 04:12, Stephen Powell wrote:
On my system, there are two files in this directory, "resume"
and "driver-policy". The "resume" file contains:


which specifies the UUID of the SUSPEND/RESUME device. It matches the
UUID of the swap device specified in /etc/fstab. The "driver-policy"
file contains:

# Driver inclusion policy selected during installation
# Note: this setting overrides the value set in the file
# /etc/initramfs-tools/initramfs.conf

I have created both of these files:
:/etc/initramfs-tools/conf.d$ cat resume

:/etc/initramfs-tools/conf.d$ cat driver-policy
# Driver inclusion policy selected during installation
# Note: this setting overrides the value set in the file
# /etc/initramfs-tools/initramfs.conf

Then, I reran: update-initramfs -uk $(uname -r)
which also caused lilo to run. My lilo.conf file is as follows:

:/etc/initramfs-tools/conf.d$ cd /etc
mns@xander:/etc$ cat lilo.conf



label = memtest86+

and my /etc/fstab file is:

:/etc$ cat fstab
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>

/ ext3 errors=remount-ro 0 1
none swap sw 0 0
proc /proc proc defaults 0 0
none /proc/bus/usb usbfs defaults 0 0
/dev/mapper/vg1-tmp /tmp ext3 defaults 0 2
/dev/mapper/vg1-var2 /var ext3 defaults 0 2
/dev/mapper/vg1-usr /usr ext3 defaults 0 2
/dev/mapper/vg1-photos /usr/local/photos ext3 defaults 0 2
/dev/mapper/vg1-home /home ext3 defaults 0 2

# Removeable Media

#/dev/lasonic /media/mp3r vfat defaults,user,noauto 0 0
/dev/fd0 /media/floppy auto user,noauto 0 0
/dev/cdrom /media/cdrom iso9660 ro,user,noauto 0 0
#/dev/sdb1 /media/pen vfat user,umask=0000,noauto 0 0
#/dev/sdb1 /media/camera vfat user,umask=0000,noauto 0 0
UUID=A8B0-984A /media/mp3a vfat defaults,user,noauto 0 0
LABEL=PHILIPS /media/mp3r vfat defaults,user,noauto 0 0
UUID=DA74-E37F /media/sandisk vfat defaults,user,noauto 0 0
UUID=A8B0-984A /media/eclipse vfat defaults,user,noauto 0 0
UUID=261A-40DE /media/kingston vfat defaults,user,noauto 0 0
UUID=0C50-B006 /media/mp3r2 vfat defaults,user,noauto 0 0

If I append the 'noresume' kernel option in /etc/lilo.conf then the system boots without halting, but my swap is not mounted. If I run:

sudo swapon -a

nothing happens. If I run

sudo swapon /dev/sdc1

then the swap is properly added. My swap partition, BTW, is now 4GB and resides on my new 1TB drive. This IS NOT the boot drive.

If I DO NOT append 'noresume' in /etc/lilo.conf then the system still gives me:

Begin: Running /scripts/local-premount ... resume: libgcrypt version 1.4.5
resume: Could not stat the resume device file '/dev/mapper/vg1-swap'
Please type in the full path name to try again
or press ENTER to boot the system

Note that it is still looking for the OLD swap partition, NOT the new partition on the new drive that is listed by UUID in /etc/fstab and also in /etc/initramfs-tools/conf/resume.

In this case, just as before, my swap IS NOT activated and I need to explicitly specify the swap partition in the swapon command. I can not use swapon -a.

What am I doing wrong, here? I have bash scripts which depend on 'swapon -a' working, so I really need to figure this out.


To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx

Relevant Pages

  • Re: Gparted resize linux swap partition
    ... Ubuntu be aware of the newly shrunk swap partition WITHOUT reinstalling ... When you run swapon - are you specifying the partition or just using the ... uuid, or just replace the uuid with the /dev path if you prefer. ...
  • Re: Request for enhancement [Re: Question about /etc/fstab in Squeeze]
    ... reformatting a swap partition with mkswap will change the ... uuid unless the existing one is explicitly re-specified during ... The Debian Installer insists on reformatting any swap partitions it ... leaving it without a usable swap partition. ...
  • Re: Question about GRUB recovery using Debian 7.x LiveCD
    ... I do not think adding LABEL to your system would ... I use it with USB sticks which move from machine to machine, The UUID ... A swap partition is NOT an extN formatted region of ... all the partitions on the internal hard drive on my jessie machine. ...
  • Re: Suse 9.1 no swap file being used
    ... swapon /dev/hda2 ... "Make a note of the swap partition name ... Thank goodness your /dev/hda is a CD-ROM. ... ReiserFS ok. ...
  • Re: lilo config is busted, need help fixing it
    ... postinst_hook = lilo-update ... mkswap that did not assign a UUID. ... reformat the swap partition, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...