Package: util-linux
Version: 2.12p-5
Severity: wishlist
File: /sbin/fdisk

Odd, one perhaps would hope the output of these two fdisk -l runs
would be exactly the same, instead of so many zeros?
# dd if=/dev/sda of=/usr/local/pqi
# fdisk -l /usr/local/pqi
You must set cylinders.
You can do this from the extra functions menu.

Disk /usr/local/pqi: 0 MB, 0 bytes
4 heads, 16 sectors/track, 0 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

         Device Boot      Start         End      Blocks   Id  System
/usr/local/pqi1   *           1         500       15979+   1  FAT12
# fdisk -l /dev/sda

Disk /dev/sda: 16 MB, 16384512 bytes
4 heads, 16 sectors/track, 500 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         500       15979+   1  FAT12

The man page says
       -C cyls
              Specify the number of cylinders of the disk.  I have no idea why
              anybody would want to do so.

And indeed it still doesn't change "0 MB, 0 bytes".

(P.S., ls on the contrary shows the number of bytes of the other file

# ls -l /usr/local/pqi /dev/sda
brw-rw----  1 root disk     8, 0 2002-03-15 05:51 /dev/sda
-rw-r--r--  1 root root 16384512 2005-09-24 04:24 /usr/local/pqi )


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to