[Intel] stevenetphone:
Sorry guys if I am in the wronge section I currently am dual booting ubuntu and windows 7 on my pc so whatever works

I have 2 128 GB SDHC cards of course one is working. I Was hoping i could copy the partition information From the working one to the non working one but it does not format anything but fat and will not do ntfs anymore the non working one that is

When i do sudo fdisk -l

Disk /dev/sdb: 117.75 GiB, 126437294080 bytes, 246947840 sectors
Disk model: Storage Device
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00072451

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 246947839 246945792 117.8G c W95 FAT32 (LBA)

Disk /dev/sdd: 1.86 GiB, 1999110144 bytes, 3904512 sectors
Disk model: SD/MMC/MS PRO
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type
/dev/sdd1 129 3904511 3904383 1.9G 6 FAT16

The working one is obviously showing 128gb but the only difference is the size and the disk Identifier

Ive tried sfdisk -d /dev/sdb > sda.partition.table.7-29-2023.txt

to make backup of working sd card

The log file from the working one

label: dos
label-id: 0x00072451
device: /dev/sdb
unit: sectors
sector-size: 512

/dev/sdb1 : start= 2048, size= 246945792, type=c, bootable

and for the hell of it i did the one for the non working one

label: dos
label-id: 0x00000000
device: /dev/sdb
unit: sectors
sector-size: 512

/dev/sdb1 : start= 129, size= 3904383, type=6

and i tried cloning the partition from the working to the new

just by using

sfdisk -f /dev/sdc < sdb.partition.table.7-29-2023.txt

This is what it looks like

$ sudo sfdisk -f /dev/sdb < sdb.partition.table.7-29-2023.txt
Checking that no-one is using this disk right now ... FAILED

This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.

Disk /dev/sdb: 1.86 GiB, 1999110144 bytes, 3904512 sectors
Disk model: SD/MMC/MS PRO
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Old situation:

Device Boot Start End Sectors Size Id Type
/dev/sdb1 129 3904511 3904383 1.9G 6 FAT16

>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new DOS disklabel with disk identifier 0x00072451.
/dev/sdb1: No free sectors available.
Failed to add #1 partition: No space left on device
Leaving.

Well That dint work

I tried disks in ubuntu disk click on the setting looking icon in the drive and click create partition image of the newly formatted 128gb working card

and clicked restore in the non working one that says 2gb But it says

The disk image ins 124 GB bigger than the target device

and allso clicking repair filesystme

Error while repairing filesystem

Object does not exist at path "/org/free/desktop/UDisks2.block_devices/sdb1"(g-dbus-error-quark, 19)

tried resize and it only has 2gb not the full 128 gb

Ive tried Testdisk

Terminal < testdisk < Create Select disk < Partition table intel < analyse < quick search <

Disk /dev/sdb - 1999 MB / 1906 MiB - CHS 1015 62 62

Warning: the current number of heads per cylinder is 62
but the correct value may be 255.
You can use the Geometry menu to change this value.
It's something to try if
- some partitions are not found by TestDisk
- or the partition table can not be written because partitions overlap.

Continue

enter

then i get 1 E extended 0 1 1 1015 45 62 3904450

and 5 L Fat16 >32m 0 2 6 1015 45 62 3904383 [NO Name]

Ok the deeper search

I can change the cylinder heads and sectors but i dont know what i would put for a 128 gb card

Ive tried diskpart in windows

diskpart

list disk

select disk 2

select partition 1

clean

create primary partition

and i get a error that there is not enough space or something like that i cant remember ima have to log back into windows and find out and i will update this currently on linux

ive tried gparted but in only shows my harddrive and not the memory cards in linux

Anyone have any idea i even tried f3probe f3fix ect in linux not sure how to use them correctly but i think i got the gyst of it

in f3 it says the memory card is damaged but yet it works find for copying 2gb worth of data lol

Anyways thanks for the help

it would be great

toodles