Hi Martin,

On 10/27/2014 11:07 AM, Martin Ziegler wrote:

> here is the output of fdisk:

thanks! I see it is for /dev/sdb, while your initial report was about
/dev/sdd. Is there a flacky USB connection that resets too often in between?

>  Disk /dev/sdb: 7,2 GiB, 7745830400 bytes, 15128575 sectors
>  Units: sectors of 1 * 512 = 512 bytes
>  Sector size (logical/physical): 512 bytes / 512 bytes
>  I/O size (minimum/optimal): 512 bytes / 512 bytes
>  Disklabel type: dos
>  Disk identifier: 0x2c6b7369
> 
>  Device     Boot Start      End  Sectors  Size Id Type
>  /dev/sdb1  *     2048 15128574 15126527  7,2G f2 DOS
>  secondary

I created the very same setup here, and parted detects the partition
just fine.

Creation:
evgeni@nana ~ % sudo dd if=/dev/zero of=/tmp/grml-test.img bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 2.08537 s, 515 MB/s
evgeni@nana ~ % sudo losetup --find --show /tmp/grml-test.img
/dev/loop0
evgeni@nana ~ % sudo fdisk /dev/loop0

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xa2378f95.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p):

Using default response p.
Partition number (1-4, default 1):
First sector (2048-2097151, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-2097151, default 2097151):

Created a new partition 1 of type 'Linux' and of size 1023 MiB.

Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): f2
Changed type of partition 'Linux' to 'DOS secondary'.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

evgeni@nana ~ % sudo mkfs.vfat /dev/loop0p1
mkfs.fat 3.0.26 (2014-03-07)
Loop device does not match a floppy size, using default hd params
evgeni@nana ~ % sudo fdisk -l /dev/loop0

Disk /dev/loop0: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa2378f95

Device       Boot Start     End Sectors  Size Id Type
/dev/loop0p1       2048 2097151 2095104 1023M f2 DOS secondary



Parted by hand:
>>> import parted
>>> d = parted.getDevice('/dev/loop0')
>>> disk = parted.Disk(d)
>>> part = disk.getPartitionByPath('/dev/loop0p1')
>>> part
<parted.partition.Partition object at 0x7f0fb9643810>
>>> print part.getFlag(parted.PARTITION_BOOT)
False

> I observed that df needs very log to read informations from /dev/sdb1

That's odd.
Could you try another USB drive with the same partition layout? Just to
be sure?

Greets
Evgeni


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to