bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't detect filesystems in devices with 4096-byte sector size


From: Joan Lledó
Subject: Can't detect filesystems in devices with 4096-byte sector size
Date: Sat, 07 Apr 2012 01:33:41 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120207 Icedove/3.0.11

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

[Prev in Thread] Current Thread [Next in Thread]