Cannot format a corrupted 32Gb SD cardRecovering files from partitions at a corrupted SD card?“Can't have a...

Is population size a parameter, or sample size a statistic?

How do my husband and I get over our fear of having another difficult baby?

Windows 10 deletes lots of tiny files super slowly. Anything that can be done to speed it up?

Assembly of PCBs containing a mix of SMT and thru-hole parts?

Why does it seem the best way to make a living is to invest in real estate?

Maximize assigned tasks to each worker

LM324 - Issue with output in negative feedback

Is the illusion created by Invoke Duplicity affected by difficult terrain?

Why is a road bike faster than a city bike with the same effort? How much faster it can be?

Why is Pelosi so opposed to impeaching Trump?

Convert a string of digits from words to an integer

Do interval ratios take overtones into account or solely the fundamental frequency?

Which altitudes are safest for VFR?

As a team leader is it appropriate to bring in fundraiser candy?

If a spaceship ran out of fuel somewhere in space between Earth and Mars, does it slowly drift off to the Sun?

Why is STARTTLS still used?

What happens to a net with the Returning Weapon artificer infusion after it hits?

Why do some modern glider wings like the Schleicher 29 have a tadpole shape rather than a teardrop shape?

Can a passenger predict that an airline is about to go bankrupt?

Garage door sticks on a bolt

An impressive body of work

What's the hidden joke/meaning behind "Don't drink and park - accidents cause people"?

Top off gas with old oil, is that bad?

Can I build a half bath without permits?



Cannot format a corrupted 32Gb SD card


Recovering files from partitions at a corrupted SD card?“Can't have a partition outside the disk!” for vdi created from a truncated imageCannot reformat Micro SD Cardwhy is the memory card not functioning properly?Partitioning an external HDD using GPT and with a “Microsoft Reserved” partition?Cannot mount, read, write, or format SD CardCorrupted ntfs volume mounting problemHow do I clone a 2 TB HDD onto a 120 GB HDD (shrink partition using gparted)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















I cannot format a corrupted Sandisk SDHC ULTRA 32Gb micro card.
So I used gparted in an Ubuntu system. I deleted the partition (/dev/sdf1), recreated it and formatted it in fat32. It still keeps its original label and 24% used space.



sudo parted /dev/sdf1 unit s print



Model: Unknown (unknown)



Disk /dev/sdf1: 62325760s



Sector size (logical/physical): 512B/512B



Partition Table: msdos



Number Start End Size Type File system Flags




sudo fdisk -l -u /dev/sdf



Disk /dev/sdf: 31.9 GB, 31914983424 bytes 255 heads, 63 sectors/track, 3880 cylinders, total 62333952 sectors



Units = sectors of 1 * 512 = 512 bytes



Sector size (logical/physical): 512 bytes / 512 bytes



I/O size (minimum/optimal): 512 bytes / 512 bytes



Disk identifier: 0x00000000



Device Boot Start End Blocks Id System



/dev/sdf1 * 8192 62333951 31162880 c W95 FAT32 (LBA)




sudo dd if=/dev/zero of=/dev/sdf bs=512 count=1



1+0 records in



1+0 records out 512 bytes (512 B) copied, 0.0122556 s,
41.8 kB/s




sudo shred -vzn 0 /dev/sdf


Then I tried to format again (gparted) to get the log info:
gparted infogparted log



sudo fsck -a /dev/sdf1



fsck from util-linux 2.20.1



dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN



There are differences between boot sector and its backup.



Differences: (offset:original/backup) 71:33/4e, 72:32/4f, 73:47/20, 74:42/4e, 75:5f/41, 76:47/4d, 77:4f/45 , 78:50/20, 79:4c/20, 80:55/20, 81:53/20



Not automatically fixing this.



Orphaned long file name part"173GOPRO"

Auto-deleting.



........



Free cluster summary wrong (813022 vs. really 744969)



Auto-correcting.



Performing changes.



/dev/sdf1: 417 files, 228615/973584 clusters




sudo mkfs.vfat -I /dev/sdf



mkfs.vfat 3.0.12 (29 Oct 2011)




After that, refresh gparted devices takes a long time to display them. Nothing has changed.



So I set two actions: delete the partition and re-created it.
This is the result:
Format 1Format 2gparted log



Here's where appears the 'overlapping' info



As suggested in an answer by burlian.vlastimil I tried



http://gparted.org/h2-fix-msdos-pt.php#overlapping-partitions



$ sudo parted /dev/sda unit s print



Error: Can't have overlapping partitions.



but as you can see above I did not get this error msg for my sdf unit



So, I'm stucked at this point.



Edit 1: in my Mac the card is recognized and it displays the tree of directories and files, correct file sizes and dates. Before trying anything I described before I could recover some jpgs I needed so I don't care to lose everything



Edit 2: Added some screenshots from testdisk /log



enter image description hereenter image description hereenter image description hereenter image description hereenter image description hereenter image description here










share|improve this question



























  • Can you post the output of fdisk /dev/sdf?

    – eyoung100
    Aug 18 '15 at 20:14













  • I recreated the question

    – dstonek
    Aug 19 '15 at 16:55











  • Please post the output of fdisk -l -u /dev/sdf and follow @burian.vlastimil's answer. GParted clearly states in your last log overlapping partitions

    – eyoung100
    Aug 19 '15 at 19:15













  • It is already in my question, the second command. I already described what happens when started to follow removing overlapping partitions instructions

    – dstonek
    Aug 19 '15 at 20:25











  • What does Testdisk show?

    – eyoung100
    Aug 19 '15 at 20:32


















2















I cannot format a corrupted Sandisk SDHC ULTRA 32Gb micro card.
So I used gparted in an Ubuntu system. I deleted the partition (/dev/sdf1), recreated it and formatted it in fat32. It still keeps its original label and 24% used space.



sudo parted /dev/sdf1 unit s print



Model: Unknown (unknown)



Disk /dev/sdf1: 62325760s



Sector size (logical/physical): 512B/512B



Partition Table: msdos



Number Start End Size Type File system Flags




sudo fdisk -l -u /dev/sdf



Disk /dev/sdf: 31.9 GB, 31914983424 bytes 255 heads, 63 sectors/track, 3880 cylinders, total 62333952 sectors



Units = sectors of 1 * 512 = 512 bytes



Sector size (logical/physical): 512 bytes / 512 bytes



I/O size (minimum/optimal): 512 bytes / 512 bytes



Disk identifier: 0x00000000



Device Boot Start End Blocks Id System



/dev/sdf1 * 8192 62333951 31162880 c W95 FAT32 (LBA)




sudo dd if=/dev/zero of=/dev/sdf bs=512 count=1



1+0 records in



1+0 records out 512 bytes (512 B) copied, 0.0122556 s,
41.8 kB/s




sudo shred -vzn 0 /dev/sdf


Then I tried to format again (gparted) to get the log info:
gparted infogparted log



sudo fsck -a /dev/sdf1



fsck from util-linux 2.20.1



dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN



There are differences between boot sector and its backup.



Differences: (offset:original/backup) 71:33/4e, 72:32/4f, 73:47/20, 74:42/4e, 75:5f/41, 76:47/4d, 77:4f/45 , 78:50/20, 79:4c/20, 80:55/20, 81:53/20



Not automatically fixing this.



Orphaned long file name part"173GOPRO"

Auto-deleting.



........



Free cluster summary wrong (813022 vs. really 744969)



Auto-correcting.



Performing changes.



/dev/sdf1: 417 files, 228615/973584 clusters




sudo mkfs.vfat -I /dev/sdf



mkfs.vfat 3.0.12 (29 Oct 2011)




After that, refresh gparted devices takes a long time to display them. Nothing has changed.



So I set two actions: delete the partition and re-created it.
This is the result:
Format 1Format 2gparted log



Here's where appears the 'overlapping' info



As suggested in an answer by burlian.vlastimil I tried



http://gparted.org/h2-fix-msdos-pt.php#overlapping-partitions



$ sudo parted /dev/sda unit s print



Error: Can't have overlapping partitions.



but as you can see above I did not get this error msg for my sdf unit



So, I'm stucked at this point.



Edit 1: in my Mac the card is recognized and it displays the tree of directories and files, correct file sizes and dates. Before trying anything I described before I could recover some jpgs I needed so I don't care to lose everything



Edit 2: Added some screenshots from testdisk /log



enter image description hereenter image description hereenter image description hereenter image description hereenter image description hereenter image description here










share|improve this question



























  • Can you post the output of fdisk /dev/sdf?

    – eyoung100
    Aug 18 '15 at 20:14













  • I recreated the question

    – dstonek
    Aug 19 '15 at 16:55











  • Please post the output of fdisk -l -u /dev/sdf and follow @burian.vlastimil's answer. GParted clearly states in your last log overlapping partitions

    – eyoung100
    Aug 19 '15 at 19:15













  • It is already in my question, the second command. I already described what happens when started to follow removing overlapping partitions instructions

    – dstonek
    Aug 19 '15 at 20:25











  • What does Testdisk show?

    – eyoung100
    Aug 19 '15 at 20:32














2












2








2


1






I cannot format a corrupted Sandisk SDHC ULTRA 32Gb micro card.
So I used gparted in an Ubuntu system. I deleted the partition (/dev/sdf1), recreated it and formatted it in fat32. It still keeps its original label and 24% used space.



sudo parted /dev/sdf1 unit s print



Model: Unknown (unknown)



Disk /dev/sdf1: 62325760s



Sector size (logical/physical): 512B/512B



Partition Table: msdos



Number Start End Size Type File system Flags




sudo fdisk -l -u /dev/sdf



Disk /dev/sdf: 31.9 GB, 31914983424 bytes 255 heads, 63 sectors/track, 3880 cylinders, total 62333952 sectors



Units = sectors of 1 * 512 = 512 bytes



Sector size (logical/physical): 512 bytes / 512 bytes



I/O size (minimum/optimal): 512 bytes / 512 bytes



Disk identifier: 0x00000000



Device Boot Start End Blocks Id System



/dev/sdf1 * 8192 62333951 31162880 c W95 FAT32 (LBA)




sudo dd if=/dev/zero of=/dev/sdf bs=512 count=1



1+0 records in



1+0 records out 512 bytes (512 B) copied, 0.0122556 s,
41.8 kB/s




sudo shred -vzn 0 /dev/sdf


Then I tried to format again (gparted) to get the log info:
gparted infogparted log



sudo fsck -a /dev/sdf1



fsck from util-linux 2.20.1



dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN



There are differences between boot sector and its backup.



Differences: (offset:original/backup) 71:33/4e, 72:32/4f, 73:47/20, 74:42/4e, 75:5f/41, 76:47/4d, 77:4f/45 , 78:50/20, 79:4c/20, 80:55/20, 81:53/20



Not automatically fixing this.



Orphaned long file name part"173GOPRO"

Auto-deleting.



........



Free cluster summary wrong (813022 vs. really 744969)



Auto-correcting.



Performing changes.



/dev/sdf1: 417 files, 228615/973584 clusters




sudo mkfs.vfat -I /dev/sdf



mkfs.vfat 3.0.12 (29 Oct 2011)




After that, refresh gparted devices takes a long time to display them. Nothing has changed.



So I set two actions: delete the partition and re-created it.
This is the result:
Format 1Format 2gparted log



Here's where appears the 'overlapping' info



As suggested in an answer by burlian.vlastimil I tried



http://gparted.org/h2-fix-msdos-pt.php#overlapping-partitions



$ sudo parted /dev/sda unit s print



Error: Can't have overlapping partitions.



but as you can see above I did not get this error msg for my sdf unit



So, I'm stucked at this point.



Edit 1: in my Mac the card is recognized and it displays the tree of directories and files, correct file sizes and dates. Before trying anything I described before I could recover some jpgs I needed so I don't care to lose everything



Edit 2: Added some screenshots from testdisk /log



enter image description hereenter image description hereenter image description hereenter image description hereenter image description hereenter image description here










share|improve this question
















I cannot format a corrupted Sandisk SDHC ULTRA 32Gb micro card.
So I used gparted in an Ubuntu system. I deleted the partition (/dev/sdf1), recreated it and formatted it in fat32. It still keeps its original label and 24% used space.



sudo parted /dev/sdf1 unit s print



Model: Unknown (unknown)



Disk /dev/sdf1: 62325760s



Sector size (logical/physical): 512B/512B



Partition Table: msdos



Number Start End Size Type File system Flags




sudo fdisk -l -u /dev/sdf



Disk /dev/sdf: 31.9 GB, 31914983424 bytes 255 heads, 63 sectors/track, 3880 cylinders, total 62333952 sectors



Units = sectors of 1 * 512 = 512 bytes



Sector size (logical/physical): 512 bytes / 512 bytes



I/O size (minimum/optimal): 512 bytes / 512 bytes



Disk identifier: 0x00000000



Device Boot Start End Blocks Id System



/dev/sdf1 * 8192 62333951 31162880 c W95 FAT32 (LBA)




sudo dd if=/dev/zero of=/dev/sdf bs=512 count=1



1+0 records in



1+0 records out 512 bytes (512 B) copied, 0.0122556 s,
41.8 kB/s




sudo shred -vzn 0 /dev/sdf


Then I tried to format again (gparted) to get the log info:
gparted infogparted log



sudo fsck -a /dev/sdf1



fsck from util-linux 2.20.1



dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN



There are differences between boot sector and its backup.



Differences: (offset:original/backup) 71:33/4e, 72:32/4f, 73:47/20, 74:42/4e, 75:5f/41, 76:47/4d, 77:4f/45 , 78:50/20, 79:4c/20, 80:55/20, 81:53/20



Not automatically fixing this.



Orphaned long file name part"173GOPRO"

Auto-deleting.



........



Free cluster summary wrong (813022 vs. really 744969)



Auto-correcting.



Performing changes.



/dev/sdf1: 417 files, 228615/973584 clusters




sudo mkfs.vfat -I /dev/sdf



mkfs.vfat 3.0.12 (29 Oct 2011)




After that, refresh gparted devices takes a long time to display them. Nothing has changed.



So I set two actions: delete the partition and re-created it.
This is the result:
Format 1Format 2gparted log



Here's where appears the 'overlapping' info



As suggested in an answer by burlian.vlastimil I tried



http://gparted.org/h2-fix-msdos-pt.php#overlapping-partitions



$ sudo parted /dev/sda unit s print



Error: Can't have overlapping partitions.



but as you can see above I did not get this error msg for my sdf unit



So, I'm stucked at this point.



Edit 1: in my Mac the card is recognized and it displays the tree of directories and files, correct file sizes and dates. Before trying anything I described before I could recover some jpgs I needed so I don't care to lose everything



Edit 2: Added some screenshots from testdisk /log



enter image description hereenter image description hereenter image description hereenter image description hereenter image description hereenter image description here







sd-card gparted corruption






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 19 '15 at 21:21







dstonek

















asked Aug 18 '15 at 20:09









dstonekdstonek

1261 gold badge1 silver badge8 bronze badges




1261 gold badge1 silver badge8 bronze badges
















  • Can you post the output of fdisk /dev/sdf?

    – eyoung100
    Aug 18 '15 at 20:14













  • I recreated the question

    – dstonek
    Aug 19 '15 at 16:55











  • Please post the output of fdisk -l -u /dev/sdf and follow @burian.vlastimil's answer. GParted clearly states in your last log overlapping partitions

    – eyoung100
    Aug 19 '15 at 19:15













  • It is already in my question, the second command. I already described what happens when started to follow removing overlapping partitions instructions

    – dstonek
    Aug 19 '15 at 20:25











  • What does Testdisk show?

    – eyoung100
    Aug 19 '15 at 20:32



















  • Can you post the output of fdisk /dev/sdf?

    – eyoung100
    Aug 18 '15 at 20:14













  • I recreated the question

    – dstonek
    Aug 19 '15 at 16:55











  • Please post the output of fdisk -l -u /dev/sdf and follow @burian.vlastimil's answer. GParted clearly states in your last log overlapping partitions

    – eyoung100
    Aug 19 '15 at 19:15













  • It is already in my question, the second command. I already described what happens when started to follow removing overlapping partitions instructions

    – dstonek
    Aug 19 '15 at 20:25











  • What does Testdisk show?

    – eyoung100
    Aug 19 '15 at 20:32

















Can you post the output of fdisk /dev/sdf?

– eyoung100
Aug 18 '15 at 20:14







Can you post the output of fdisk /dev/sdf?

– eyoung100
Aug 18 '15 at 20:14















I recreated the question

– dstonek
Aug 19 '15 at 16:55





I recreated the question

– dstonek
Aug 19 '15 at 16:55













Please post the output of fdisk -l -u /dev/sdf and follow @burian.vlastimil's answer. GParted clearly states in your last log overlapping partitions

– eyoung100
Aug 19 '15 at 19:15







Please post the output of fdisk -l -u /dev/sdf and follow @burian.vlastimil's answer. GParted clearly states in your last log overlapping partitions

– eyoung100
Aug 19 '15 at 19:15















It is already in my question, the second command. I already described what happens when started to follow removing overlapping partitions instructions

– dstonek
Aug 19 '15 at 20:25





It is already in my question, the second command. I already described what happens when started to follow removing overlapping partitions instructions

– dstonek
Aug 19 '15 at 20:25













What does Testdisk show?

– eyoung100
Aug 19 '15 at 20:32





What does Testdisk show?

– eyoung100
Aug 19 '15 at 20:32










2 Answers
2






active

oldest

votes


















3
















Can't have overlapping partitions



The root cause is that the partition table contains at least one occurrence where the end of one partition overlaps the start of another partition.



Source: How-to Fix Invalid MSDOS Partition Tables



There is also a guide on how to fix it:
How-to Fix Overlapping Partitions






share|improve this answer


























  • I will edit my question to add first step result trying to fix that from gparted.org/h2-fix-msdos-pt.php It does not display "Error: can't have overlapping partitions"

    – dstonek
    Aug 19 '15 at 0:37











  • There's only one partition, what is overlapping?

    – dstonek
    Aug 19 '15 at 20:35











  • @dstonek It basically means, that one partition comes partialy over another partition

    – LinuxSecurityFreak
    Aug 20 '15 at 7:05











  • Anyway I don't understand why is that. It is a Gopro card occasionally formated in the camera, no partitions handling, just one partition Fat32

    – dstonek
    Aug 20 '15 at 14:01



















0
















Got similar issue on multiple SD who were working in a camera and phones, but won't mount at all on Ubuntu/Mint.



While trying to format, got:




Can't have overlapping partitions




Wasn't able to format using either Disks or gparted.



To resolve and mount, step by step:



First make sure you have the necessary packages:



sudo apt-get install exfat-fuse exfat-utils


Run the Disks gui, to be find in applications.



Note the SD device disk label: (example /dev/sde)



Run this command to get the current allocated size:



sudo fdisk -l -u /dev/sde 


Substract the END and START, example:



Device Boot Start End Sectors Size Id Type

/dev/sde1 * 8192 15572991 15564800 7.4G b W95 FAT32



So, in this case:



15572991 - 8192 = 15564799



To edit, write the output on a file:



sudo sfdisk -d /dev/sde > sde-bckup.txt 


Open sde-bckup.txt on the home folder with any text editor.



Sample input:



label: dos
label-id: 0x00000000
device: /dev/sde
unit: sectors

/dev/sde1 : start= 8192, size= 15564800, type=b, bootable


When done, write back the partition table to the device:



sudo sfdisk /dev/sde < sde-bckup.txt


If successful:




The partition table has been altered.




On my case, got the SD card instantly mounted and available on the files explorer.



After that, use the Disks utility, remove all partitions and format with full erasing. This action is mandatory for later usage. Strangely, when writing datas to the SD with other devices, the issue was coming back again.



Possible causes?



https://www.bunniestudios.com/blog/?page_id=1022



https://www.youtube.com/watch?v=nuruzFqMgIw






share|improve this answer






























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });















    draft saved

    draft discarded
















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f224060%2fcannot-format-a-corrupted-32gb-sd-card%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3
















    Can't have overlapping partitions



    The root cause is that the partition table contains at least one occurrence where the end of one partition overlaps the start of another partition.



    Source: How-to Fix Invalid MSDOS Partition Tables



    There is also a guide on how to fix it:
    How-to Fix Overlapping Partitions






    share|improve this answer


























    • I will edit my question to add first step result trying to fix that from gparted.org/h2-fix-msdos-pt.php It does not display "Error: can't have overlapping partitions"

      – dstonek
      Aug 19 '15 at 0:37











    • There's only one partition, what is overlapping?

      – dstonek
      Aug 19 '15 at 20:35











    • @dstonek It basically means, that one partition comes partialy over another partition

      – LinuxSecurityFreak
      Aug 20 '15 at 7:05











    • Anyway I don't understand why is that. It is a Gopro card occasionally formated in the camera, no partitions handling, just one partition Fat32

      – dstonek
      Aug 20 '15 at 14:01
















    3
















    Can't have overlapping partitions



    The root cause is that the partition table contains at least one occurrence where the end of one partition overlaps the start of another partition.



    Source: How-to Fix Invalid MSDOS Partition Tables



    There is also a guide on how to fix it:
    How-to Fix Overlapping Partitions






    share|improve this answer


























    • I will edit my question to add first step result trying to fix that from gparted.org/h2-fix-msdos-pt.php It does not display "Error: can't have overlapping partitions"

      – dstonek
      Aug 19 '15 at 0:37











    • There's only one partition, what is overlapping?

      – dstonek
      Aug 19 '15 at 20:35











    • @dstonek It basically means, that one partition comes partialy over another partition

      – LinuxSecurityFreak
      Aug 20 '15 at 7:05











    • Anyway I don't understand why is that. It is a Gopro card occasionally formated in the camera, no partitions handling, just one partition Fat32

      – dstonek
      Aug 20 '15 at 14:01














    3














    3










    3









    Can't have overlapping partitions



    The root cause is that the partition table contains at least one occurrence where the end of one partition overlaps the start of another partition.



    Source: How-to Fix Invalid MSDOS Partition Tables



    There is also a guide on how to fix it:
    How-to Fix Overlapping Partitions






    share|improve this answer













    Can't have overlapping partitions



    The root cause is that the partition table contains at least one occurrence where the end of one partition overlaps the start of another partition.



    Source: How-to Fix Invalid MSDOS Partition Tables



    There is also a guide on how to fix it:
    How-to Fix Overlapping Partitions







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 19 '15 at 0:08









    LinuxSecurityFreakLinuxSecurityFreak

    9,35020 gold badges81 silver badges173 bronze badges




    9,35020 gold badges81 silver badges173 bronze badges
















    • I will edit my question to add first step result trying to fix that from gparted.org/h2-fix-msdos-pt.php It does not display "Error: can't have overlapping partitions"

      – dstonek
      Aug 19 '15 at 0:37











    • There's only one partition, what is overlapping?

      – dstonek
      Aug 19 '15 at 20:35











    • @dstonek It basically means, that one partition comes partialy over another partition

      – LinuxSecurityFreak
      Aug 20 '15 at 7:05











    • Anyway I don't understand why is that. It is a Gopro card occasionally formated in the camera, no partitions handling, just one partition Fat32

      – dstonek
      Aug 20 '15 at 14:01



















    • I will edit my question to add first step result trying to fix that from gparted.org/h2-fix-msdos-pt.php It does not display "Error: can't have overlapping partitions"

      – dstonek
      Aug 19 '15 at 0:37











    • There's only one partition, what is overlapping?

      – dstonek
      Aug 19 '15 at 20:35











    • @dstonek It basically means, that one partition comes partialy over another partition

      – LinuxSecurityFreak
      Aug 20 '15 at 7:05











    • Anyway I don't understand why is that. It is a Gopro card occasionally formated in the camera, no partitions handling, just one partition Fat32

      – dstonek
      Aug 20 '15 at 14:01

















    I will edit my question to add first step result trying to fix that from gparted.org/h2-fix-msdos-pt.php It does not display "Error: can't have overlapping partitions"

    – dstonek
    Aug 19 '15 at 0:37





    I will edit my question to add first step result trying to fix that from gparted.org/h2-fix-msdos-pt.php It does not display "Error: can't have overlapping partitions"

    – dstonek
    Aug 19 '15 at 0:37













    There's only one partition, what is overlapping?

    – dstonek
    Aug 19 '15 at 20:35





    There's only one partition, what is overlapping?

    – dstonek
    Aug 19 '15 at 20:35













    @dstonek It basically means, that one partition comes partialy over another partition

    – LinuxSecurityFreak
    Aug 20 '15 at 7:05





    @dstonek It basically means, that one partition comes partialy over another partition

    – LinuxSecurityFreak
    Aug 20 '15 at 7:05













    Anyway I don't understand why is that. It is a Gopro card occasionally formated in the camera, no partitions handling, just one partition Fat32

    – dstonek
    Aug 20 '15 at 14:01





    Anyway I don't understand why is that. It is a Gopro card occasionally formated in the camera, no partitions handling, just one partition Fat32

    – dstonek
    Aug 20 '15 at 14:01













    0
















    Got similar issue on multiple SD who were working in a camera and phones, but won't mount at all on Ubuntu/Mint.



    While trying to format, got:




    Can't have overlapping partitions




    Wasn't able to format using either Disks or gparted.



    To resolve and mount, step by step:



    First make sure you have the necessary packages:



    sudo apt-get install exfat-fuse exfat-utils


    Run the Disks gui, to be find in applications.



    Note the SD device disk label: (example /dev/sde)



    Run this command to get the current allocated size:



    sudo fdisk -l -u /dev/sde 


    Substract the END and START, example:



    Device Boot Start End Sectors Size Id Type

    /dev/sde1 * 8192 15572991 15564800 7.4G b W95 FAT32



    So, in this case:



    15572991 - 8192 = 15564799



    To edit, write the output on a file:



    sudo sfdisk -d /dev/sde > sde-bckup.txt 


    Open sde-bckup.txt on the home folder with any text editor.



    Sample input:



    label: dos
    label-id: 0x00000000
    device: /dev/sde
    unit: sectors

    /dev/sde1 : start= 8192, size= 15564800, type=b, bootable


    When done, write back the partition table to the device:



    sudo sfdisk /dev/sde < sde-bckup.txt


    If successful:




    The partition table has been altered.




    On my case, got the SD card instantly mounted and available on the files explorer.



    After that, use the Disks utility, remove all partitions and format with full erasing. This action is mandatory for later usage. Strangely, when writing datas to the SD with other devices, the issue was coming back again.



    Possible causes?



    https://www.bunniestudios.com/blog/?page_id=1022



    https://www.youtube.com/watch?v=nuruzFqMgIw






    share|improve this answer
































      0
















      Got similar issue on multiple SD who were working in a camera and phones, but won't mount at all on Ubuntu/Mint.



      While trying to format, got:




      Can't have overlapping partitions




      Wasn't able to format using either Disks or gparted.



      To resolve and mount, step by step:



      First make sure you have the necessary packages:



      sudo apt-get install exfat-fuse exfat-utils


      Run the Disks gui, to be find in applications.



      Note the SD device disk label: (example /dev/sde)



      Run this command to get the current allocated size:



      sudo fdisk -l -u /dev/sde 


      Substract the END and START, example:



      Device Boot Start End Sectors Size Id Type

      /dev/sde1 * 8192 15572991 15564800 7.4G b W95 FAT32



      So, in this case:



      15572991 - 8192 = 15564799



      To edit, write the output on a file:



      sudo sfdisk -d /dev/sde > sde-bckup.txt 


      Open sde-bckup.txt on the home folder with any text editor.



      Sample input:



      label: dos
      label-id: 0x00000000
      device: /dev/sde
      unit: sectors

      /dev/sde1 : start= 8192, size= 15564800, type=b, bootable


      When done, write back the partition table to the device:



      sudo sfdisk /dev/sde < sde-bckup.txt


      If successful:




      The partition table has been altered.




      On my case, got the SD card instantly mounted and available on the files explorer.



      After that, use the Disks utility, remove all partitions and format with full erasing. This action is mandatory for later usage. Strangely, when writing datas to the SD with other devices, the issue was coming back again.



      Possible causes?



      https://www.bunniestudios.com/blog/?page_id=1022



      https://www.youtube.com/watch?v=nuruzFqMgIw






      share|improve this answer






























        0














        0










        0









        Got similar issue on multiple SD who were working in a camera and phones, but won't mount at all on Ubuntu/Mint.



        While trying to format, got:




        Can't have overlapping partitions




        Wasn't able to format using either Disks or gparted.



        To resolve and mount, step by step:



        First make sure you have the necessary packages:



        sudo apt-get install exfat-fuse exfat-utils


        Run the Disks gui, to be find in applications.



        Note the SD device disk label: (example /dev/sde)



        Run this command to get the current allocated size:



        sudo fdisk -l -u /dev/sde 


        Substract the END and START, example:



        Device Boot Start End Sectors Size Id Type

        /dev/sde1 * 8192 15572991 15564800 7.4G b W95 FAT32



        So, in this case:



        15572991 - 8192 = 15564799



        To edit, write the output on a file:



        sudo sfdisk -d /dev/sde > sde-bckup.txt 


        Open sde-bckup.txt on the home folder with any text editor.



        Sample input:



        label: dos
        label-id: 0x00000000
        device: /dev/sde
        unit: sectors

        /dev/sde1 : start= 8192, size= 15564800, type=b, bootable


        When done, write back the partition table to the device:



        sudo sfdisk /dev/sde < sde-bckup.txt


        If successful:




        The partition table has been altered.




        On my case, got the SD card instantly mounted and available on the files explorer.



        After that, use the Disks utility, remove all partitions and format with full erasing. This action is mandatory for later usage. Strangely, when writing datas to the SD with other devices, the issue was coming back again.



        Possible causes?



        https://www.bunniestudios.com/blog/?page_id=1022



        https://www.youtube.com/watch?v=nuruzFqMgIw






        share|improve this answer















        Got similar issue on multiple SD who were working in a camera and phones, but won't mount at all on Ubuntu/Mint.



        While trying to format, got:




        Can't have overlapping partitions




        Wasn't able to format using either Disks or gparted.



        To resolve and mount, step by step:



        First make sure you have the necessary packages:



        sudo apt-get install exfat-fuse exfat-utils


        Run the Disks gui, to be find in applications.



        Note the SD device disk label: (example /dev/sde)



        Run this command to get the current allocated size:



        sudo fdisk -l -u /dev/sde 


        Substract the END and START, example:



        Device Boot Start End Sectors Size Id Type

        /dev/sde1 * 8192 15572991 15564800 7.4G b W95 FAT32



        So, in this case:



        15572991 - 8192 = 15564799



        To edit, write the output on a file:



        sudo sfdisk -d /dev/sde > sde-bckup.txt 


        Open sde-bckup.txt on the home folder with any text editor.



        Sample input:



        label: dos
        label-id: 0x00000000
        device: /dev/sde
        unit: sectors

        /dev/sde1 : start= 8192, size= 15564800, type=b, bootable


        When done, write back the partition table to the device:



        sudo sfdisk /dev/sde < sde-bckup.txt


        If successful:




        The partition table has been altered.




        On my case, got the SD card instantly mounted and available on the files explorer.



        After that, use the Disks utility, remove all partitions and format with full erasing. This action is mandatory for later usage. Strangely, when writing datas to the SD with other devices, the issue was coming back again.



        Possible causes?



        https://www.bunniestudios.com/blog/?page_id=1022



        https://www.youtube.com/watch?v=nuruzFqMgIw







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 mins ago

























        answered 10 hours ago









        NVRMNVRM

        1731 silver badge7 bronze badges




        1731 silver badge7 bronze badges


































            draft saved

            draft discarded



















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f224060%2fcannot-format-a-corrupted-32gb-sd-card%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...