User Tools

Site Tools


educare:parted

< < disabili

Parted

parted -l
warning block size 2048/512?
IGNORE
sda ---> 33 GB  
nvme0n1 ---> 512 GB
1. 0.27   FAT32    boot/esp
2. 16              reserved msftres
3. 511    NTFS     msftdata
4. 0.1    NTFS     hidden/diag

Nel caso di NTFS devi fare DUE COSE (in questo ordine)

  1. Prima di tutto puoi fare un backup della tabella delle partizioni e backup della partizione
    • dd ....
    • ntfsclone
  2. Poi ridimensionare il file system contenuto nella partizione
    • ntfsresize --size 60G /dev/nvme0n1p33
    • (se il precedente comando produce errore, sei obbligato ad usare il programma proprietario 'chkdsk'
cluster accounting failed at...  missing cluster in...
filesystem check failed
error: ntfs is incostistent. run chkdsk /f on windows the reboot
the usare of the /f parameter is very important
  • se non produce errore passare al punto successivo
successfully resized NTFS on device
you can go on to shrink the device (fdisk?)
  1. Infine ridurre la partizione che contiene il file system NTFS
    • parted -a optimal /dev/nvme0n1p33
    • resizepart 3 62G
    • yes
    • print
educare/parted.txt · Last modified: 2023/08/28 23:11 by profpro