O Centro Vegetariano há cerca de algumas semanas questionou os vários partidos políticos portugueses sobre assuntos do interesse da comunidade vegetariana portuguesa. Aparente até ao momento em que o artigo, que se encontra no site, foi escrito, apenas o Bloco de Esquerda se prontificou a dar conhecer a sua opinião, posições e propostas a todos nós. Resta também realçar que o Bloco de Esquerda é também dos únicos partidos que se pronunciou contra as touradas ou outro tipo de violência animal disfarçada de espectáculo ou arte.
Seria curioso e enriquecedor para a democracia portuguesa também conhecer a posição dos restantes partidos acerca deste assunto, fico e ficamos a aguardar.
Podem ler o conteúdo da resposta do BE ao Centro Vegetariano em: http://www.centrovegetariano.org/Page-20.html
BE contra os Rodeios: http://matportugal.blogspot.com/2008/09/bloco-de-esquerda-tambm-contra-rodeios.html
Monday, September 21, 2009
Thursday, September 10, 2009
Swap partition and hibernation in Ubuntu
Hello lads,
today i was having some trouble hibernating my laptop after resizing of the swap partition, because Ubuntu was telling me that it couldn't find my it.
So what happened was that the partition identifier changed since the resizing of the partition, not the common identifier like /dev/sda5, but the UUID (Universal Unique Identifier) which is now used to identify the partitions in "modern" Linux.
So this was how I fixed it:
I used fdisk to know discover the name of my swap partition
$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd53d826f
Device Boot Start End Blocks Id System
/dev/sda1 1 1824 14651248+ 83 Linux
/dev/sda2 7562 7821 2088450 5 Extended
/dev/sda3 1825 7561 46082452+ 83 Linux
/dev/sda5 7562 7821 2088418+ 82 Linux swap / Solaris
Looked up the UUID of the partition
$ sudo vol_id --uuid /dev/sda5
415df585-960f-49ca-b056-6202c1daac39
Edited my swap line in /etc/fstab, which is the file responsible for tracking devices, mounting points and other stuff (generally speaking)
$ vim /etc/fstab
Changed the swap line to look like this, and saved the file
UUID=415df585-960f-49ca-b056-6202c1daac39 none swap sw 0 0
Note that I used the UUID given by vol_id command
Then updated /etc/initramfs-tools/conf.d/resume with the UUID i got above
RESUME=UUID=415df585-960f-49ca-b056-6202c1daac39
This file is responsible for telling where to look up for the saved desktop state, generaly the swap partition, when the machine resumes from hibernation.
Finally I updated the boot-up scripts by doing
$ sudo update-initramfs -u
After this we can either restart the computer or just run
$ sudo swapon -a
to active all swap spaces available.
Et voilà I was done, and the hibernation worked!
today i was having some trouble hibernating my laptop after resizing of the swap partition, because Ubuntu was telling me that it couldn't find my it.
So what happened was that the partition identifier changed since the resizing of the partition, not the common identifier like /dev/sda5, but the UUID (Universal Unique Identifier) which is now used to identify the partitions in "modern" Linux.
So this was how I fixed it:
I used fdisk to know discover the name of my swap partition
$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd53d826f
Device Boot Start End Blocks Id System
/dev/sda1 1 1824 14651248+ 83 Linux
/dev/sda2 7562 7821 2088450 5 Extended
/dev/sda3 1825 7561 46082452+ 83 Linux
/dev/sda5 7562 7821 2088418+ 82 Linux swap / Solaris
Looked up the UUID of the partition
$ sudo vol_id --uuid /dev/sda5
415df585-960f-49ca-b056-6202c1daac39
Edited my swap line in /etc/fstab, which is the file responsible for tracking devices, mounting points and other stuff (generally speaking)
$ vim /etc/fstab
Changed the swap line to look like this, and saved the file
UUID=415df585-960f-49ca-b056-6202c1daac39 none swap sw 0 0
Note that I used the UUID given by vol_id command
Then updated /etc/initramfs-tools/conf.d/resume with the UUID i got above
RESUME=UUID=415df585-960f-49ca-b056-6202c1daac39
This file is responsible for telling where to look up for the saved desktop state, generaly the swap partition, when the machine resumes from hibernation.
Finally I updated the boot-up scripts by doing
$ sudo update-initramfs -u
After this we can either restart the computer or just run
$ sudo swapon -a
to active all swap spaces available.
Et voilà I was done, and the hibernation worked!
Subscribe to:
Posts (Atom)