Ubuntu 管理心得

搜尋此網誌

2026年6月15日 星期一

Wipe m2 ssd where the M.2 SSD is installed in an external USB-M2 and appears as a USB external drive

Make sure disk using lsblk, say, /dev/sdc 

sudo dd if=/dev/zero of=/dev/sdc bs=64M status=progress

 

restore clonezilla files

All the followings are in root shell or using sudo:
 
mkdir /mnt/decrypt
mount -t ecryptfs /media/chiao/MyBook_sdx7_2.4T/clonezilla/2026-06-15-08-img_M2SSD1TB_MyOffice_kpci7_anbsty/ /mnt/decrypt
 
Suppose we want to open some files in sdc11.ext4-ptcl-img.zst:
Inside krusader, uncompress /mnt/decrypt/sdc11.ext4-ptcl-img.zst to /vmware, then
get /vmware/sdc11.ext4-ptcl-img.

partclone.restore --restore_raw_file -C -s /vmware/sdc11.ext4-ptcl-img -o /vmware2/sdc11.img
 
Inside krusader, disk mount /vmware2/sdc11.img, and all the files of sdc11.img are in /media/chiao/9b7d3fd8-9727-4fb5-abd6-88178044dc4b
 

 

網誌存檔