Posts Tagged ‘ubuntu’

For some strange reason after I clone my Ubuntu 9.10 linux partition, my swap partition didn’t have UUID anymore and I can not view it via “blkid” and have to mount it to the device path (/dev/sda2) in /etc/fstab
After some googling I found the workaround :

1. View the UUID

cat /etc/initramfs-tools/conf.d/resume

2. Set off swap partition and apply the UUID found at no. 1

sudo su

swapoff -a
mkswap -U $(awk -F”=” ‘{print $3}’ /etc/initramfs-tools/conf.d/resume) /dev/sda2

3. Modify my /etc/fstab so the swap partition part contain the UUID

UUID=7b27ee38-6510-4cfa-9e8e-bc77a5e8ce4e none swap sw 0 0

I got a little problem after upgrading my Fujitsu’s Ubuntu 8.10 to 9.04, I removed some of the kernel files and directory by hand some time ago, and it turned back as a problem after the upgrading was complete. To make it short, I can not update anything before the broken dependencies is fixed, but I can’t fix the broken dependencies because all the files were already manually deleted by me. Lucky me the Synaptic Package Manager list the directories and files that were deleted, so here’s what I’ve done

1. Created all the directories with mkdir
mkdir -p /lib/modules/2.6.27-7-generic/volatile/

2. Created all the files with touch
touch /boot/
touch /boot/initrd.img-2.6.27-7-generic

3. Fixing it with
sudo aptitude -f remove

And finally I can use the Update Manager again.

And it’s not a LiveCD anymore, it’ll be partition based (eg: you should install it on your harddrive) and Debian/Ubuntu based means that there will be smooth updating via Debian/Ubuntu repositories … nice.
And … my Fujitsu-Ubuntu 8.xx (with all security tool I’ve put it there) will have a new OS. ;)