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:

RESUME=UUID=a6948969-2d88-4ec0-93a1-6d2d803ff8b3

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
MODULES=dep

I have created both of these files:
:/etc/initramfs-tools/conf.d$ cat resume
UUID=305ee6c5-c60c-4167-a57c-e13c96ed1e79

:/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
MODULES=dep

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
boot=/dev/disk/by-id/ata-WDC_WD400EB-00CPF0_WD-WCAAT1261081
large-memory
compact
lba32
vga=normal
prompt
timeout=100
default=Linux

image=/vmlinuz
root="UUID=5e0d4da4-aba3-4965-8fb4-788501b0fe69"
initrd=/initrd.img
label=Linux
read-only

image=/vmlinuz.old
root="UUID=5e0d4da4-aba3-4965-8fb4-788501b0fe69"
initrd=/initrd.img.old
label="Linux_Old"
read-only

image=/boot/memtest86+.bin
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>

UUID=5e0d4da4-aba3-4965-8fb4-788501b0fe69
/ ext3 errors=remount-ro 0 1
UUID=305ee6c5-c60c-4167-a57c-e13c96ed1e79
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.


Marc


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4ED4729D.2080609@xxxxxxxxx



Relevant Pages