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

Re: Unbootable machine



On 06/02/09 13:48, Bernie Innocenti wrote:
> On 06/02/09 07:10, H. Peter Anvin wrote:
>> Bernie Innocenti wrote:
>>> Ok, I wiped mbr and made fdisk create a new one:
>>>
>>> Disk /dev/sdb: 2055 MB, 2055208960 bytes
>>> 64 heads, 62 sectors/track, 1011 cylinders
>>   ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>> Equally weird.  The only "standard" ones are 64 heads, 32 sectors and
>> 255 heads, 63 sectors.
> 
> Shouldn't fdisk guess these values automagically?
> And, more importantly, who are we going to blame if it doesn't? ;-)

For the record, GNU parted gets it right:

bernie giskard:~$ sudo dd if=/dev/zero of=/dev/sdb
^C5017+0 records in
5017+0 records out
2568704 bytes (2.6 MB) copied, 1.63415 s, 1.6 MB/s

130!bernie giskard:~$ sudo parted /dev/sdb
GNU Parted 1.8.8
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel
New disk label type? msdos
(parted) unit chs
(parted) print
Model:  USB DISK 2.0 (scsi)
Disk /dev/sdb: 249,220,34
Sector size (logical/physical): 512B/512B
BIOS cylinder,head,sector geometry: 249,255,63.  Each cylinder is 8225kB.
Partition Table: msdos

Number  Start  End  Type  File system  Flags

(parted) mkpart 
File system type?  [ext2]? fat32 
Start? 0
End? 100%
Warning: You requested a partition from 0,0,0 to 249,220,34.              
The closest location we can manage is 0,1,0 to 248,254,62.  Is this still
acceptable to you?
Yes/No? y
(parted) p
Model:  USB DISK 2.0 (scsi)
Disk /dev/sdb: 249,220,34
Sector size (logical/physical): 512B/512B
BIOS cylinder,head,sector geometry: 249,255,63.  Each cylinder is 8225kB.
Partition Table: msdos

Number  Start  End         Type     File system  Flags
 1      0,1,0  248,254,62  primary               lba  


-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs       - http://sugarlabs.org/


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