Dr Gregory
Posts: 1
Joined: Mon Jul 22, 2013 11:05 am

SD Formatting question

Mon Jul 22, 2013 11:08 am

I have managed to format my SD Card, but I'm wondering if I format the card for the operating system Windows or Mac or Linux will this effect the script language we write when using the RPi

klricks
Posts: 7135
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: SD Formatting question

Mon Jul 22, 2013 1:05 pm

After an OS is properly installed on your SD card there will be a small FAT16 partition containing the boot files. The rest of the space will be a Linux format. This is done either by the Win32diskimager or Noobs install process whichever you use.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: SD Formatting question

Mon Jul 22, 2013 1:10 pm

I'm not quite sure about "exactly" what you're "wondering" about, but here goes ...
W.r.t. SDHC card formatting:
Generally SD(HC) cards are formatted with a single "partition" in one of the "FAT" formats, usually "FAT32" for those in "Gb" sizes. (Older, SD cards <512Mb may {have been} formatted as "FAT16"). This is largely because that format is "understood" by all of the O.S.' you refer to (and the cards are expected to be used within those O.S.'). However, when you (subsequently) install an O.S. for the Pi onto the card, whether by the NOOBS process (http://www.raspberrypi.org/downloads , some screenshots at http://www.cpmspectrepi.webspace.virgin ... stall.html) or by directly copying an "*.img" file, the card is re-formatted with a number of partitions, most of which are not "FAT formatted" and therefore, "invisible" to Windows. (I'm not a MAC user, but I think more of them are visible to the MAC's O.S. - no doubt a MAC user on the forum can tell you more).
W.r.t. to "script language":
I'm not sure whether you meant "which script language" or whether files written in a given script language under one of the O.S.' would be "properly understood" by the Pi, or, simply, "the end-of-line character string issue" (line-feed for Unix/Linux, Carriage-Return + Line Feed for Windows/DOS ...).
Short answer - probably, yes.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Twizzard
Posts: 4
Joined: Sat Jul 27, 2013 2:00 am

Re: SD Formatting question

Sat Jul 27, 2013 6:01 am

My Mac's "Disk Utility" apparently sees but the Mac cannot use all the partitions on my RPi 16 GB SD card. This card was created using the NOOBS download from http://www.raspberrypi.org/downloads. I did tell raspi-config to expand the partitioning to make use of the full SD card.

On the Mac I see a "RECOVERY" FAT32 partition of 1.27 GB, a "boot" FAT16 partition of 58.7 MB, and a "disk4S6" partition of 14.83 GB. This last one has a partition type of "Linux"and is greyed out (not mountable), and all additional details (like number of files) are just shown as "-". Don't know if this information helps anyone...

Return to “Beginners”