[parted-devel] parted reporting old file system names

Mike Fleetwood mike.fleetwood at googlemail.com
Fri Dec 14 14:03:08 UTC 2012


On 14 December 2012 10:44,  <g.esp at free.fr> wrote:
>
>> Hi,
>>
>> I've been doing some testing of wiping file systems, either using the
>> wipefs command or by writing zeros over the whole partition, and find
>> that in many distribution / parted version combinations it prints the
>> type of the file system that use to be there, even after formatting with
>> a new file system.  I'm doing this for a GParted patch I am working on.
>> Can anybody explain the behaviour and how to fix it?
>>
>> Thanks,
>> Mike
>>
> You need to inform the kernel of the changes by running partprobe.
>
> Gilles

Unfortunately that didn't help.

I think that partprobe is about telling the kernel when partitions
change?  My problem is parted not recognising the change of file
system when the partition boundaries remain the same.

Parted thinks there is still a jfs file system on /dev/sda12.  But I
overwrote it with ext2 in my original email.  Blkid thinks it's an
ext2 file system and the kernel mounts it as an ext2 file system.

# partprobe
# parted /dev/sda print
Model: ATA SAMSUNG SSD 830 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  525MB   524MB   primary   ext4            boot
 2      525MB   2673MB  2147MB  primary   linux-swap(v1)
 3      2673MB  13.4GB  10.7GB  primary   ext4
 4      13.4GB  121GB   107GB   extended
 5      13.4GB  77.8GB  64.4GB  logical   ext3
 6      77.8GB  78.4GB  524MB   logical   ext4
 7      78.4GB  80.5GB  2147MB  logical   linux-swap(v1)
 8      80.5GB  91.2GB  10.7GB  logical   ext4
 9      91.2GB  91.8GB  524MB   logical   ext4
10      91.8GB  93.9GB  2147MB  logical   linux-swap(v1)
11      93.9GB  105GB   10.7GB  logical   ext4
12      105GB   106GB   1074MB  logical   jfs

# blkid /dev/sda12
/dev/sda12: UUID="5fe4cc76-61be-4878-b337-b4c5c155fb0c" TYPE="ext2"
# mount /dev/sda12 /mnt/1
# grep sda12 /proc/mounts
/dev/sda12 /mnt/1 ext2 rw,seclabel,relatime 0 0
# mount | grep sda12
/dev/sda12 on /mnt/1 type ext2 (rw,relatime,seclabel)



More information about the parted-devel mailing list