-
Starnge dd behaviour in 8.2.0
Dear All -
If I use the command fdisk -l I get the usual and expected output of the style
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 131604479 131602432 62.8G 7 HPFS/NTFS/exFAT
/dev/sda2 131604480 1180327679 1048723200 500.1G 7 HPFS/NTFS/exFAT
/dev/sda3 1180327680 2229050879 1048723200 500.1G 7 HPFS/NTFS/exFAT
My question concerns the line
/dev/sda1 * 2048 131604479 131602432 62.8G 7 HPFS/NTFS/exFAT
Surely that means that /dev/sda1 starts at sector number 2048 and that there are 2,048 sectors at the start of /dev/sda (yes, numbered 0000-2047) allocated otherwise?
For various reasons I want to zero these initial sectors of /dev/sda using the command
dd if=/dev/zero of=/dev/sda count=2048
but to my annoyance (and very considerable damage to the system) this also zeroes the first sector of /dev/sda1.
That is, the dd command zeroes not just those sectors numbered 0000-2047 but also the sector numbered 2048: so 2049 altogether. not 2048.
I am absolutely convinced that my understanding of counts / numbers / numbering as described above was correct under 7.4.2 and that I issued commands, many times, in the manner describe without damaging /dev/sda1; (but I am a bit nervous now about checking that)!
Can anybody conform that I am right? That I am wrong? That dd under 8.2.0 is glitchy?
Thank you!
Fergus
PS And by the way (completely different and unconnected) I find the file /boot/isolinux/ifcpu64.c32 is broken in the 8.2.0 installation and I have to over-write it with the same file from 7.4.2 for things to work properly. Anybody else?
Fergus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 32gb / 500gb / 495w
$164.99
Supermicro 2U 6028R-E1CR24N 24x LFF- Wholesale Build Your Own Storage Server
$249.99
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$180.99
Dell Poweredge R730 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 128gb / H730 / 8x Trays
$274.99
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$159.20
Dell PowerEdge R730xd Dual Intel Xeon E5-2630 V4 @2.2GHz 96GB 12-Bay 3.5" Server
$299.99
New Gigabyte 10 bay SFF Server 2x Xeon Gold 6130 Total 32 Core 64GB DDR4 3x PCIe
$319.20
HP PROLIANT DL380 G9 12 x 3.5" HSTNS-2145 Server INTEL XEON E5-2623 V3 3GHz 32GB
$110.00
Dell R640 8x 2.5" SFF Server iDRAC - Wholesale Custom Build Your Server
$270.99
Supermicro X10DRT-H Server System Node with 2*Xeon E5-2650v3 2.3GHz 32GB RAM
$79.99