samtap / fang-hacks

Collection of modifications for the XiaoFang WiFi Camera
1.67k stars 340 forks source link

Format SD card after flashing image #444

Open denbue opened 3 years ago

denbue commented 3 years ago

Hi, I'm having troubles to format the SD card I used with fang hacks. All attempts at formatting fail with very weird error messages.

I tried formating on Mac, Windows and Linux with different tools and on terminal. Each produces their own error message and I can't seem to find the pattern. Only guess is that fang hacks applies some unknown filesystem or parameters when flashing which none of the tools can figure out.

Anyone has some ideas?

Edit: I can also re-flash the image (0.2 and 0.1) without any problems, but attempting to flash a different image (e.g. Ubuntu) fails as well.

elig0n commented 3 years ago

use fdisk or some other partition editor to open the device and remove all partitions inside, then create a new partition of your liking (ntfs, vfat, ext...) which fills the whole drive and then format it

TurfnSurf commented 3 years ago

You can get the free official SD card formatter from sdcard.org. Just accept the license and it will download.

Sotasoma commented 12 months ago

If your SD card flashing image and not detect in your computer open cmd use command 'diskpart' note : (if you have only 1 ssd or 1 hardisk ( disk 0) and your sd card is (disk 1)) following this command DISKPART> select disk 1 Disk 1 is now the selected disk DISKPART> clean DiskPart succeeded in cleaning the disk. DISKPART> create partition primary DiskPart succeeded in creating the specified partition.

than your sd card can detect again in your computer and you can format it again