I parted the mmcblk0 and then printed. tried to remove the partitions with rm 1 and rm 2 commands, everything went fine. But when i again printed, partitions were still there.
I tried to made random partitions to show the problem. You can see it below.
Any ideas or suggestions?
Code:
~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Model: MMC M8G4DD (sd/mmc)
Disk /dev/block/mmcblk0: 8221MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.8kB 6208MB 6208MB primary fat32 lba
2 6208MB 8221MB 2013MB primary lba
(parted) rm 1
rm 1
rm 1
(parted) rm 2
rm 2
rm 2
(parted) mkpart primary 0 2000
mkpart primary 0 2000
mkpart primary 0 2000
Warning: You requested a partition from 0.00B to 2000MB.
The closest location we can manage is 512B to 32.3kB.
Is this still acceptable to you?
Yes/No? y
y
y
(parted) print
print
print
Model: MMC M8G4DD (sd/mmc)
Disk /dev/block/mmcblk0: 8221MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.8kB 6208MB 6208MB primary fat32 lba
2 6208MB 8221MB 2013MB primary lba
(parted) mkpart primary 6208 8221
mkpart primary 6208 8221
mkpart primary 6208 8221
Error: Can't have overlapping partitions.
(parted)
|