On 13-11-27 11:25 AM, Phillip Susi wrote:
On 11/27/2013 9:58 AM, Karel Zak wrote:
After 20 years it's feature ;-) as I'm almost sure that we cannot
fix it and disable all partition where is no the ID.
While that's cute and all, I think we both know it isn't really true ;)
Unfortunately at least one company produces devices that have partitions
with ID set to 0, yet these same partitions contain data.
An Apple iPod Shuffle is such an example as shown in the following fdisk
output:
user@debian:~$ sudo fdisk -l /dev/sde
Note: sector size is 2048 (not 512)
Disk /dev/sde: 8120 MB, 8120172544 bytes
250 heads, 62 sectors/track, 255 cylinders
Units = cylinders of 15500 * 2048 = 31744000 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 3 92876 0 Empty
/dev/sde2 4 255 7812000 b W95 FAT32
This has lead some people, who wish to re-partition such a device, to
use fdisk to temporarily set the ID to a non-zero value. Then they can
edit the partitions. When the partitioning tasks are complete they use
fdisk to set the ID back to zero again.
By doing this work-around, data loss can be avoided.
As such this "feature" of fdisk has been used and described on the
Internet. For example see the following post:
http://dreamlayers.blogspot.ca/2012/01/editing-ipod-partitions-with-gparted.html
Regards,
Curtis
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html