Simple things make a real difference

2007年3月30日

If Swap Not Being Mounted On Boot

Notice: uuid changes are not always reflected until after a reboot...

1, determine your swap with

sudo fdisk -l

2, do mkswap on your swap partition - RECORD THE UUID WHICH THIS COMMAND OUTPUTS
sudo mkswap /dev/

3, now use this UUID to put into fstab and resume files...
$ sudo vim /etc/initramfs-tools/conf.d/resume
#Edit the RESUME line as below:
RESUME=UUID="the-swap-partition-uuid-from-vol_ID"

4,
update-initramfs -u

5, reboot normally after this finishes
sudo swapon -s
ls -la /dev/disk/by-uuid/

DONT change any symlinks etc. just try these instructions

没有评论:

Labels

Archive

About

我的照片
wherever i put my .emacs, that's my home.