
pinduvoz
(usa Debian)
Enviado em 16/05/2012 - 15:59h
Na prática:
andre@cce-nobo-i3:~$ sudo blkid
/dev/sda4: UUID="78751eec-71e0-4036-864c-dbf398b168e3" TYPE="ext4"
/dev/sda6: UUID="dba047a8-4f9f-461d-93e1-a5dea6c5afd5" TYPE="ext4"
/dev/sda7: UUID="2fea5f73-a81d-4689-a908-8c72e5d5a6f6" TYPE="swap"
O UUID da minha swap é 2fea5f73-a81d-4689-a908-8c72e5d5a6f6 (sem as aspas, repare).
Agora o /etc/fstab:
andre@cce-nobo-i3:~$ sudo gedit /etc/fstab
Isso abre o texto abaixo para edição:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda4 during installation
UUID=78751eec-71e0-4036-864c-dbf398b168e3 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=dba047a8-4f9f-461d-93e1-a5dea6c5afd5 /home ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=2fea5f73-a81d-4689-a908-8c72e5d5a6f6 none swap sw 0 0
Interessa a última linha, onde vc deve colocar o novo UUID.
Após modificar e salvar o fstab, teste assim:
sudo swapon -a
free -m