tune2fs /dev/sdb1 -U 310fd3b1-bc68-45cf-b04b-c9498ae59e27
Problème sur disque monté
when I tried to change my root filesystem's uuid on new 14.04 ubuntu, tune2fs reported back: I can't do that to mounted file systems.
There's a flag that needs to be disabled, to allow mounted-uuid changes with the new tune2fs. this is what my process looked like:
root@ubuntu1404:~# blkid
/dev/sda1: UUID="2ec827b0-72be-4c73-b58a-102a37aa24a3" TYPE="ext4"
root@ubuntu1404:~# uuid="deafcafe-abba-daba-deca-fc0ffee05065"
root@ubuntu1404:~# root_disk=$(df /|grep /|cut -d' ' -f1)
root@ubuntu1404:~# echo $root_disk
/dev/sda1
root@ubuntu1404:~# tune2fs -U $uuid $root_disk
tune2fs 1.42.9 (4-Feb-2014)
The UUID may only be changed when the filesystem is unmounted.
root@ubuntu1404:~# tune2fs -O ^uninit_bg $root_disk
tune2fs 1.42.9 (4-Feb-2014)
root@ubuntu1404:~# tune2fs -U $uuid $root_disk
tune2fs 1.42.9 (4-Feb-2014)
root@ubuntu1404:~# tune2fs -O +uninit_bg $root_disk
tune2fs 1.42.9 (4-Feb-2014)
root@ubuntu1404:~# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7.3G 3.9G 3.0G 58% /
root@ubuntu1404:~# blkid
/dev/sda1: UUID="deafcafe-abba-daba-deca-fc0ffee05065" TYPE="ext4"
root@ubuntu1404:~#
Blog dans lequel je note comme aide-mémoire les trucs et astuces que j'ai utilisés pour configurer selon mes besoins mes machines sous Linux Ubuntu Raspbian Macosx Windows.
Rechercher dans ce blog
Affichage des articles dont le libellé est UUID. Afficher tous les articles
Affichage des articles dont le libellé est UUID. Afficher tous les articles
mercredi 9 décembre 2015
lundi 15 décembre 2008
linux Ubuntu UUID des disques
Pour connaître l'UUID d'un disque pour utiliser dans fstab ou hdparm, etc.
vol-id /dev/...
ou regarder dans /dev/disk/by-uuid etc.
-
Inscription à :
Articles (Atom)