element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum SD card partitions??? whaat???
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 278 subscribers
  • Views 1966 views
  • Users 0 members are here
  • fat
  • i_smell_bullshit
  • 32
  • sdcard
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

SD card partitions??? whaat???

msalko
msalko over 9 years ago

Ok so i've heard about this, but i still don't get it. how in a world is it possible to create multiple partitions on single sd card????

 

so my boss told me he wanted to make multiple fat 32 partitions on an sd card on product i've been working on.

 

as far as i know Sd cards don't have any hardware implementation of partitioning.

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 9 years ago +2
    Of course you can partition them just like any other drive. There is no special hardware that handles partitioning, it's all done on the physical disk itself. As a single use drive, a partition table is…
  • johnbeetem
    johnbeetem over 9 years ago in reply to msalko +1
    Martin Šalko wrote: oh so it's not natively supported by the file system it self since it needs to be in master boot record? As I understand it, the file system can look at a disk drive (or solid…
  • Former Member
    Former Member over 9 years ago

    Of course you can partition them just like any other drive. There is no special hardware that handles partitioning, it's all done on the physical disk itself.

     

    As a single use drive, a partition table is written to the drive. The partition table relates to the type of partition you are creating. A standard FAT16 partition will only allow up to 512 entries so even if the card has plenty of space left, once the partition table holds records for 512 files no more files can be written to it. (it's true I had to find this out the hard way with a customer who couldn't save anymore work to his USB drive!!)

     

    Formatting with Fat32 allows up to 268,435,437 files on disk (with less in folders 65,534).

     

    So partitioning is just the way the data is stored onto the disk.

     

    In the same manner, multiple partitions can be made. Where one references one portion of the disk and another references a separate portion.

     

    A partitioning tool like partition magic(windows) or Gparted(linux) will help you to create, delete and modify partitions.

     

    Sometimes it's necessary to write a disk image onto an sd card. A 2GB image file written onto an 8GB sd card will result in a 2GB sd card. It's possible to then add another partition to access the other 6GB as a separate drive. When you put and sd card with multiple partitions into your computer, the partitions appear as separate drives rather than just one.

     

    Because of potential issues, many consumer devices like cameras will only accept sd cards with a single partition of a speceified type (usually fat16 / fat32).

     

    Linux partitions ext2 etc... are unlikely to show up on windows.

     

    Lucie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • msalko
    msalko over 9 years ago in reply to Former Member

    thanks lucie. I still don't get it how does this work in the file sistem. do you make like a special directory or something or is it just like adding another filesistem all together and if so how can you load it up since fat 32 must start from first bit of memory, is there a some sort of gateway on the begining?, and how do you prevent rewriting the other file sistem???

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • johnbeetem
    johnbeetem over 9 years ago in reply to msalko

    Martin Šalko wrote:

     

    thanks lucie. I still don't get it how does this work in the file sistem. do you make like a special directory or something or is it just like adding another filesistem all together and if so how can you load it up since fat 32 must start from first bit of memory, is there a some sort of gateway on the begining?, and how do you prevent rewriting the other file sistem???

    As I understand it, the beginning of a DOS disk is the master boot record: https://en.wikipedia.org/wiki/Master_boot_record#Disk_partitioning

     

    Among other things, the MBR defines 1-4 partitions for the rest of the disk.  If you access a disk directly as sectors, there's nothing to prevent you from rewriting any of the sectors.  If you access it as a file system, the OS software prevents you from writing to the wrong partition since each partition looks like a different disk drive.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • msalko
    msalko over 9 years ago in reply to johnbeetem

    oh so it's not natively supported by the file system it self since it needs to be in master boot record?

     

    martin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • johnbeetem
    johnbeetem over 9 years ago in reply to msalko

    Martin Šalko wrote:

     

    oh so it's not natively supported by the file system it self since it needs to be in master boot record?

    As I understand it, the file system can look at a disk drive (or solid-state surrogate) as a flat array of sectors or as a set of partitions.  For example, on GNU/Linux you might have a device /dev/sda which is the entire disk and a bunch of partitions /dev/sda1, /dev/sda2, etc. which are partitions.  Users generally only see a partition, since only a partition can be mounted as a file system.  Occasionally you might look at the entire disk, for example when editing the partition table.  IIRC you must unmount all of a disk's partitions before editing the disk's partition table, which means you have to have another disk to be your file system while you're doing the editing.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • msalko
    msalko over 9 years ago in reply to johnbeetem

    thanks.image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube