do you know any way for windows to see linux partition?
i followed the link’s instructions it still sees only 30 mb
do you know any way for windows to see linux partition?
Do you know that type of partitions that drive has? https://www.diskinternals.com/linux-reader/ seems to support a decent list of Linux & macOS file systems
I’m assuming your SD card is not failing physically. There is no software that can physically damage hardware.
The Raspberry Pi runs a Linux operating system (usually), and Windows cannot read some types of file systems for Linux. So when you flash balenaOS or Raspberry Pi OS on your SD card, it will write multiple file systems (partitions) that Windows cannot read. When you insert that card into your Windows computer’s card reader after flashing it, Windows will pop up alerts that it can’t read the partitions and will want you to format them. Just dismiss those pop-ups without Windows doing anything to them. You will only be able to access the one partition on the SD card that Windows can read (which for balenaOS is 32 MB in total size), and that is the one you may need to access for updating configurations on your RPi.
The issue you saw by trying to format the SD card in your Android phone is actually a “problem” with Android, not your card. Android can read the Linux partitions. But it cannot properly format a SD card that has multiple partitions on it. Android will only format the first partition it finds, resulting in the appearance of only 32MB of space on a much larger SD card.
There are utilities for accessing Linux file systems in Windows, but I don’t think you really want to do that, as those partitions are not really set up for direct modifications, especially in Windows.
If you want to reformat your SD card with a utility that will “bring back” the appearance of the card’s full capacity, you should use the SD Card Formatter utility provided by the SD Association: https://www.sdcard.org/downloads/formatter/ However, this is not necessary - it’s only to help you verify your card is fine.
This is a screen-cap of my 64 GB SD card after flashing with balenaOS. The G, J, K and N Drives are all Linux partitions that Windows can’t read. Notice the one drive Windows can read is only about 40 MB. That partition has goodies like the RPI’s config.txt, which you can modify as needed, even in Windows.
this is how it sees it
this is the result
it also sees only 30mb
koyaanisqatsi is correct in the sense that “you can’t get there from here!”
Assuming you’re flashing a Raspberry Pi image, (like a version of Raspbian), you will end up with two partitions:
- A very small FAT32 partition that is read by the device at initial boot, and is later re-mapped to the /boot part of the root file system. It’s usually not any larger than a couple of hundred megs in size.
- A much larger ext4, (Linux), partition that can grow to occupy the entire rest of the card.
I have not tried flashing a BalinaOS image, but I suspect that it would be something very similar, because the Raspberry Pi’s boot requirements are quite specific, and certain things are expected to be in certain places for the Pi to boot properly.
Jetson Nano images are more complicated. Because they use an interesting variant of the GPT partition structure, (which reminds me more of Apple’s HPFS partition format, or the format used by Solaris/Dec/AT&T Unix), there are at least a half-dozen partitions, each having a particular reason for being there.
If you can read the one FAT32 partition in Windows, it’s a better than even-money bet that your card is fine and you really don’t need to do anything else, unless you want to re-format the card so that Windows can see the entire capacity of the card again - which makes it unbootable for the Raspbarry Pi.
If you decide you want to “un-flash” the card and use it’s entire capacity for something else, simply re-formatting using the SD formatting tool won’t work - because it is designed to format the first non-Linux partition it finds. To completely re-reformat the device, you have to remove all the pre-existing partitions first, then re-create the device as one single partition that’s the entire size of the device.
To do that, you will need to use either diskpart from the Windows command prompt, or right click on “My PC” (Windows versions before 10), or “This PC” (in Windows 10), and then select “Manage”. You then select “Disk Management” and look for the row that does not contain your “C:” drive.
If your system is a “normal” installation where the primary system hard drive is the standard internal device, your internal drive should be the first row. (My system has both Windows 10 and Linux Mint installed, so there are a lot of extra partitions on that first drive.)
Because this messes with disks and stuff in low-level ways, you’ll need to have Administrator level privileges or an Administrator level password to continue.
For this example, I am going to destroy a freshly-imaged Raspberry Pi SD card and recreate a Windows compatible partition on it. Don’t worry though, once I’m done, all I have to do is crank-up Etcher again and re-flash my Raspberry Pi image!
In my case, the SD card is the second row, and you can see three areas: The first (small) FAT32 partition. The second, (larger), Linux partition and - in this case - a bunch of unused space since I reduced the size of the second partition to make the image I’m flashing smaller. The two existing partitions have a dark blue top-bar and the unallocated portion’s top bar is black.
You click on the second, (Linux), partition and then right-click. In the pop-up you see the option “Delete Volume”. This is what deletes the partition.
Partitions, once deleted, are not recoverable!
(At least, not without fancy tools and a lot of luck.)
Once you select “Delete Volume”, there will be a brief pause and then you will see the “Unallocated” part of that drive becomes larger and only one partition is left - the small FAT32 partition.
You do that again with the remaining partition as shown below.
Once that is done, the entire device is now “Unallocated”.
Click into the unallocated space, right click, and select “New Simple Volume” which is Windows-Speak for a “new primary partition”.
At this point, you can select “New Simple volume” and accept the defaults which will - depending on the size of the card - give you a FAT32, exFAT, or NTFS volume.
Here you see a newly created FAT32 partition that is now the entire size of the drive.
As a matter of persional opinion, given the choice between an exFAT partition or a NTFS partition on a larger device, I usually pick the NTFS partition unless I have a good reason not to.
The “Formatting failed” dialog is blocking all the important info in that screen cap. But irrespective of that, if SD Formatter can’t format your SD card, the card is likely damaged physically/electrically, or you have some other issue in your computer, like maybe a bad SD card slot. It’s also possible you have other software conflicting with the formatter, such as anti-virus.
Try a new SD card and see if that works better. Don’t buy off-brand SD cards. They are commonly low-performing, high risk of being bad, and can easily be counterfeit. (entirely my own opinion) Get a Sandisk Extreme from a reputable source. Also try formatting the card in another computer, if you can, and see if that works better.
I don’t like disagreeing with other posts on a forum like this, but SD Formatter will most certainly reformat an SD card properly, regardless of what partitions or other data are on it. That’s it’s main purpose, and why the SD Association offers the utility. (and to verify before I posted, I tried it) I use SD Formatter to format all my SD cards, immediately before flashing an image to them, because it clears off any unwanted partitions or other junk data that may get in the way of the flashing/imaging software. To be the most thorough, you need to run an overwrite format rather than a quick format. Also, if the option is available, put a check-mark in “CHS format size adjustment”, to be sure the full capacity of the card is formatted.
The process using Disk Administrator is also a good way of clearing a storage device. It’s just a bit involved if you’re not experienced with storage management.
Disk management also sees 30mb, and doesn’t see any other partition
How do you flash the card? Can you please try flashing a balenaOS image with Etcher? You can get one from balena.io/os, just pick the one for your device, though you don’t necessarily have to boot the device with it.
It says: not enough space and cannot be selected
Can you please also provide a screenshot from your Disk Management window?
@jharris1993 's instructions about deleting all current volumes in the SD card and creating a new one should work and can’t guess the state that you might be in.
i used balena to write this, as a zip, should i write it as an iso?
Hi there – thanks for the screenshot. Looking at the options you have selected, it appears you have clicked “Quick format”. @koyaanisqatsi up above says that you need to select “Overwrite format”. Can you try that and let us know how it goes?
If that does not work: can you please try again to burn Raspian to your card using balena Etcher? If that does not work, please post a screenshot of Etcher, and the contents of the Developer Tools window (which you should be able to bring up using Ctrl+Alt+I).
To answer your question about whether you need to burn the image as an ISO: no, it’s perfectly fine to burn Raspian (or any other image) in zip format – Etcher will do the right thing.
All the best,
it did not word
Hi there – thanks for trying that. Can you please try going through the “How to Recover a USB Drive or SD Card Using Windows” section at https://www.balena.io/blog/did-etcher-break-my-usb-sd-card/? Please be sure to follow each step exactly as described.
All the best,
That latest screen cap makes me think the SD card is bad. Windows Disk Admin is usually pretty good about seeing the entire capacity of a device, even with strange partitions or corruption. And it rarely has an issue formatting unless the device has a problem.
It was working fine until the balena format
Disk part didn’t work either
Did you go through the blog post that my colleague linked - https://www.balena.io/blog/did-etcher-break-my-usb-sd-card/ ?
Did you run into any issues trying the things listed there?