A little funny problem I'm curious about the reason.
I found an old SD Card, I even don't remember that it was used for.
So I want to remove the old partitions and use it for some of my devices.
And now the magic begins.
[root@localhost /]# parted /dev/mmcblk0
GNU Parted 3.4
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: SD 00000 (sd/mmc)
Disk /dev/mmcblk0: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 256MB 255MB primary fat32 lba
2 257MB 16.0GB 15.8GB primary ext4
(parted) rm 2
(parted) p
Model: SD 00000 (sd/mmc)
Disk /dev/mmcblk0: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 256MB 255MB primary fat32 lba
(parted) rm 1
(parted) p
Model: SD 00000 (sd/mmc)
Disk /dev/mmcblk0: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
(parted) quit
Information: You may need to update /etc/fstab.
[root@localhost /]# parted /dev/mmcblk0
GNU Parted 3.4
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: SD 00000 (sd/mmc)
Disk /dev/mmcblk0: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 256MB 255MB primary fat32 lba
2 257MB 16.0GB 15.8GB primary ext4
(parted)
So basically, I remove the partitions, everything seems ok, when I quit parted the partitions came back.
Of course, it's the same situation if I use gparted or fdisk. The removed partitions come back once I exit the utility.
I'm very curious that is the explanation ? I never seen something like this before.