TheGeek56
Posts: 13
Joined: Thu Dec 26, 2013 9:17 am

SD Card Imaging Problems

Wed Nov 04, 2015 6:05 am

I've been trying to image Kali on my SD card so I can play around with it on my RPI, but i've been running into an issue. I format the SD card to FAT32 just fine. Then when I run Win32 Disk Imager, it finishes with a "Write Sucessful" But when I try to open it, it says "You must format [drive] to use it again." I format the SD card and the issue continues. Any help?

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: SD Card Imaging Problems

Wed Nov 04, 2015 7:53 am

TheGeek56 wrote:I've been trying to image Kali on my SD card so I can play around with it on my RPI, but i've been running into an issue. I format the SD card to FAT32 just fine. Then when I run Win32 Disk Imager, it finishes with a "Write Sucessful" But when I try to open it, it says "You must format [drive] to use it again." I format the SD card and the issue continues. Any help?
But when I try to open it, it says "You must format [drive] to use it again.
What are you trying to open it with, and why? The only sensible thing to do with an SD card that has been written with Win32DiskImager is to put it in an RPi and boot from it.

TheGeek56
Posts: 13
Joined: Thu Dec 26, 2013 9:17 am

Re: SD Card Imaging Problems

Wed Nov 04, 2015 8:05 am

Explorer, and also because it wasn't booting with the RPI. So I tried to check it but got the error.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: SD Card Imaging Problems

Wed Nov 04, 2015 9:05 am

TheGeek56 wrote:I've been trying to image Kali on my SD card so I can play around with it on my RPI, but i've been running into an issue. I format the SD card to FAT32 just fine. Then when I run Win32 Disk Imager, it finishes with a "Write Sucessful" But when I try to open it, it says "You must format [drive] to use it again." I format the SD card and the issue continues. Any help?
Did you use the SDFormatter Tool (size adjustment ON) or a Digital Camera to format the SD Card, as these usually solve issues.

You should be able to read the SD Card after writing in Windows Explorer, but will only see the FAT32 Partition.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: SD Card Imaging Problems

Wed Nov 04, 2015 9:14 am

If you are putting an OS image on a card you do not need to format it. The image overwrites the boot sector, partition table, file system etc.

TheGeek56
Posts: 13
Joined: Thu Dec 26, 2013 9:17 am

Re: SD Card Imaging Problems

Wed Nov 04, 2015 9:25 am

drgeoff wrote:If you are putting an OS image on a card you do not need to format it. The image overwrites the boot sector, partition table, file system etc.
It doesn't seem to be booting. :/

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: SD Card Imaging Problems

Wed Nov 04, 2015 9:33 am

TheGeek56 wrote:
drgeoff wrote:If you are putting an OS image on a card you do not need to format it. The image overwrites the boot sector, partition table, file system etc.
It doesn't seem to be booting. :/
Did you download the correct .IMG for your RPi Model :?:

https://www.offensive-security.com/kali ... e-download
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: SD Card Imaging Problems

Wed Nov 04, 2015 9:38 am

TheGeek56 wrote: It doesn't seem to be booting.
See viewtopic.php?f=28&t=58151

In your case I can think of 3 broad possibilities -

1. Your SD card writer is not compatible with writing image files. (Have you tried writing the image for a 'well-known' OS such as a recent version of Raspbian, as an experiment, to see whether your tools are up to the job?)

2. Your download of Kali is corrupt. (Have you checked the checksum if one is published? If the download was a .zip file, have you unzipped it to give you a .img file?)

3. The version of Kali you have downloaded is not compatible with your RPi. Check the Kali site for options.

TheGeek56
Posts: 13
Joined: Thu Dec 26, 2013 9:17 am

Re: SD Card Imaging Problems

Wed Nov 04, 2015 9:45 am

Did you download the correct .IMG for your RPi Model :?:

https://www.offensive-security.com/kali ... e-download
Yep

TheGeek56
Posts: 13
Joined: Thu Dec 26, 2013 9:17 am

Re: SD Card Imaging Problems

Wed Nov 04, 2015 9:50 am

B.Goode wrote:
TheGeek56 wrote: It doesn't seem to be booting.
See viewtopic.php?f=28&t=58151

In your case I can think of 3 broad possibilities -

1. Your SD card writer is not compatible with writing image files. (Have you tried writing the image for a 'well-known' OS such as a recent version of Raspbian, as an experiment, to see whether your tools are up to the job?)

2. Your download of Kali is corrupt. (Have you checked the checksum if one is published? If the download was a .zip file, have you unzipped it to give you a .img file?)

3. The version of Kali you have downloaded is not compatible with your RPi. Check the Kali site for options.
All has been done.

User avatar
hansotten
Posts: 341
Joined: Fri Jul 13, 2012 6:01 am
Contact: Website

Re: SD Card Imaging Problems

Wed Nov 04, 2015 10:06 am

Try to eliminate the source of your error:

- really really use SD formatter (formatting is not the same!)
- use another SD card
- write an image of Raspbian (e.g. wheezy, smaller than jessie, < 4 GB) and try that

If this all works its the Kali image.
http://duinorasp.hansotten.com for Raspberry Pi and Arduino and ESP8266
http://retro.hansotten.nl for retrocomputing with the 6502 cpu

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: SD Card Imaging Problems

Wed Nov 04, 2015 10:27 am

Make sure you are instructing Win32DiskImager to write to the whole card, NOT the drive on it.

@hansotten
Formatting is irrelevant when writing images.

TheGeek56
Posts: 13
Joined: Thu Dec 26, 2013 9:17 am

Re: SD Card Imaging Problems

Wed Nov 04, 2015 10:54 am

Narrowed it down to Kali. Worked with Raspbian. Any ideas?

EDIT: Me being illiterate with most things related Linux, I failed to remember that XZ was a file extension. So I renamed it to kali.img instead of opening it up with 7zip...

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: SD Card Imaging Problems

Wed Nov 04, 2015 3:25 pm

TheGeek56 wrote: I renamed it to kali.img instead of opening it up with 7zip...
That would indeed be a mistake that would lead to an unbootable SD card, and one that would also be unreadable from Windows.

This recent message on Twitter might help: https://twitter.com/RPiSpy/status/661919634279555072

TheGeek56
Posts: 13
Joined: Thu Dec 26, 2013 9:17 am

Re: SD Card Imaging Problems

Thu Nov 05, 2015 12:16 am

Issue resolved, thank you for the help :)

Return to “Troubleshooting”