Hello, I imagine this is not the first email you receive informing of this problem, but I haven't found any bug tracker for libparted to make sure.

In my debian squeeze with libparted 2.3, the parted command can't detect the filesystems in the partitions inside a disk with 4096-byte sector size.

You can reproduce the error by generating a ramdisk drive using scsi_debug as follows:

#!/bin/bash

modprobe scsi_debug dev_size_mb=100 sector_size=4096

sleep 1

parted /dev/sdf mklabel msdos

parted /dev/sdf mkpart primary 0 55

parted /dev/sdf mkpart primary 56 105

mkfs.vfat -F 32 /dev/sdf1

mkfs.ext4 /dev/sdf2


And then running parted for examine the newly created partitions. the result is this:

GNU Parted 2.3

Utilitzant /dev/sdf

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) p

Model: Linux scsi_debug (scsi)

Disk /dev/sdf: 105MB

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

Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags

 1      262kB   55,1MB  54,8MB  primary

 2      55,1MB  105MB   49,8MB  primary


As you can see, the File system column is empty, which does not happen if we work with 512-byte sectors.

Regards


Reply via email to