aelius Posted July 29, 2014 Report Posted July 29, 2014 In acest scurt tutorial am sa va arat cum puteti eticheta partitiile ext4 (disk label). De exemplu, am un HDD extern (USB) si cand il conectez la un laptop cu debian, aceasta se monteaza automat in '/media/<DISK-UUID>'.Exemplu:root@hp:~# df -hFilesystem Size Used Avail Use% Mounted onrootfs 291G 268G 8.6G 97% /udev 10M 0 10M 0% /devtmpfs 302M 736K 301M 1% /run/dev/disk/by-uuid/e63117ce-c47f-48c6-afdc-74006b6a7b03 291G 268G 8.6G 97% /tmpfs 5.0M 0 5.0M 0% /run/locktmpfs 1.2G 31M 1.2G 3% /run/shm/dev/sdb1 459G 195G 241G 45% /media/7f11a5cd-8fad-4af7-b716-8886e7f5376cDupa cum puteti vedea, partitia de care este vorba se numeste '/dev/sdb1' si este mountata in '/media/7f11a5cd-8fad-4af7-b716-8886e7f5376c' pentru ca nu are niciun fel de label.Mai jos voi adauga un label acestei partitii cu e2label. Acest tool face parte din pachetul e2fsprogsroot@hp:~# e2label /dev/sdb1 STORAGELa urmatorul mount, partitia a fost mountata automat in '/media/STORAGE'Exemplu:root@hp:~# df -hFilesystem Size Used Avail Use% Mounted onrootfs 291G 268G 8.5G 97% /udev 10M 0 10M 0% /devtmpfs 302M 736K 301M 1% /run/dev/disk/by-uuid/e63117ce-c47f-48c6-afdc-74006b6a7b03 291G 268G 8.5G 97% /tmpfs 5.0M 0 5.0M 0% /run/locktmpfs 1.2G 28M 1.2G 3% /run/shm/dev/sdb1 459G 195G 241G 45% /media/STORAGEroot@hp:~# Quote