Clonezilla/Partimage - disk has ad sectors
by taylorkh from LinuxQuestions.org on (#56C9N)
I have an entry level Intel NUC running Ubuntu Mate 20.04 which I use as a headless BitTorrent/Usenet download box. The OS is installed on a Samsung 32 GB flash drive. The internal SSD is used for data storage. Works great. Last evening I decided to take a Clonezilla snapshot of the OS. I removed the flash drive and attempted to clone it in another computer which I use for that purpose. I received an error that Partimage could not copy the partition because "the disk has bad sectors..."
I ran e2fsck -f on the flash drive. The file system checked out perfect. I booted the NUC from the flash drive and copied such files as I wished to keep. I restored an earlier Clonezilla image to another flash drive and updated some files on it from the files saved from the original flash drive. The NUC is back up and running. Now I am looking at the "bad sectors" flash drive and wondering what I can learn from it.
The flash drive does not support SMART so I can learn nothing by that means. I use SMART to check the health of SSDs and mechanical drives. I guess I could try to format it and see what happens. I am not finding much on the Samsung web site.
Does anyone know of a way to test a flash drive in Linux? In the past when one died it really died and I finished it off with a big hammer to make sure the data was really gone then tossed it in the trash. I never had one which was bad and yet the file system on it was fine.
TIA,
Ken


I ran e2fsck -f on the flash drive. The file system checked out perfect. I booted the NUC from the flash drive and copied such files as I wished to keep. I restored an earlier Clonezilla image to another flash drive and updated some files on it from the files saved from the original flash drive. The NUC is back up and running. Now I am looking at the "bad sectors" flash drive and wondering what I can learn from it.
The flash drive does not support SMART so I can learn nothing by that means. I use SMART to check the health of SSDs and mechanical drives. I guess I could try to format it and see what happens. I am not finding much on the Samsung web site.
Does anyone know of a way to test a flash drive in Linux? In the past when one died it really died and I finished it off with a big hammer to make sure the data was really gone then tossed it in the trash. I never had one which was bad and yet the file system on it was fine.
TIA,
Ken