coreutils
[Top][All Lists]
Advanced

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

Re: dd effect on cloning of iso file to usb stick


From: jb
Subject: Re: dd effect on cloning of iso file to usb stick
Date: Fri, 3 Oct 2014 17:47:59 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Bob Proulx <bob@...> writes:

> 
> jb wrote:
> > It looks like fdisk, cfdisk, etc are confused about identifying those 
> > partitions and their start/end sectors. Is there a partition table at
> > all ?
> > If so, where is it located, sectorwise ?
> 
> If fdisk and cfdisk are confused then it is probably because the
> partition table used in the image is one of the newer formats.  Newer
> formats have expanded capabilities.  But the older fdisk and cfdisk
> tools haven't been updated yet to deal with those partitions.
> 
> Basically seeing fdisk confused about a partition table is normal if
> the partition table is a newer format than it knows how to deal with.
> You might try using parted to print the partition table.  It has been
> updated for the newer formats.
> 
>   parted /dev/sdb print
> ...

First fdisk:

# fdisk -l /dev/sdb
...
Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  *        0 1171455 1171456  572M  0 Empty
/dev/sdb2         252   63739   63488   31M ef EFI (FAT-12/16/32)

Some more (weird) entries:

# fdisk -l /dev/sdb1

Disk /dev/sdb1: 572 MiB, 599785472 bytes, 1171456 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: 0x574a1394

Device      Boot Start     End Sectors  Size Id Type
/dev/sdb1p1 *        0 1171455 1171456  572M  0 Empty
/dev/sdb1p2        252   63739   63488   31M ef EFI (FAT-12/16/32)

Any comment on these /dev/sdb1p1 and /dev/sdb1p2 device names ?

# fdisk -l /dev/sdb2

Disk /dev/sdb2: 31 MiB, 32505856 bytes, 63488 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: 0x00000000

Now parted:
 
# parted /dev/sdb unit s print
Model: SanDisk Cruzer (scsi)
Disk /dev/sdb: 7913471s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start  End     Size    Type     File system  Flags
 2      252s   63739s  63488s  primary  fat16        esp

What happened to first partition ?

Some more (weird) entries:

# parted /dev/sdb1 unit s print
Model: Unknown (unknown)
Disk /dev/sdb1: 1171456s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start  End     Size    Type     File system  Flags
 2      252s   63739s  63488s  primary  fat16        esp

# parted /dev/sdb2 unit s print
Model: Unknown (unknown)
Disk /dev/sdb2: 63488s
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system  Flags
 1      0s     63487s  63488s  fat16

Somewhat unusual :-)

jb





reply via email to

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