fdisk and mkfs tools



Hi,

I am new to disks. I wrote a block disk driver, and am trying to debug
it based on what userspace apps expect.

1) Why would fdisk not use the disk geometry returned by
ioctl(HD_GETGEO) but some other value it has determined? Namely the
cylinder and head fields are not what I am returning from the driver.

2) How does a mkfs tool (such as mke2fs.jffs or mke2fs.ext3) determine
the size of a partition? Doing an fstat() on e.g.
/dev/blockdev_partition1 or something else? The actual problem is,
mke2fs.ext3 tries to write beyond the end of maximum available sectors
on the disk.

Thanks,
Bahadir

.



Relevant Pages

  • Re: CHDSK message Vista wont boot
    ... Vista won't use a FAT32 partition, it needs to be NTFS, so using fdisk to repartition would be useless. ... Windows help - www.rickrogers.org ... You may find though, that your restore disk is not capable of this, it depends on the manufacturer. ...
    (microsoft.public.windows.vista.performance_maintenance)
  • Re: Resizing NTFS partition to make room for FC10
    ... I have a 150GB ATA disk, /dev/hdb, containing winxp. ... I started by using ntfsresize to shrink the xp partition ... still, according to fdisk, thinks its 150GB. ... quickly blue screening a message I couldn't read, and rebooting. ...
    (Fedora)
  • Re: Error 16: Inconsistent filesystem structure
    ... My preference would be a /home partition to protect my data ... Here is a copy of the output of fdisk -l and fdisk /dev/sdb with x then ... I used the Negus Fedora 7 book's Live cd. ... Disk /dev/sdb: 200.0 GB, 200049647616 bytes ...
    (Fedora)
  • Re: Samba and RAID 1 using gmirror on 2 new disks
    ... This resolved the SCSI parity error. ... fdisk: ... I also want to have the server run scheduled backups of the mirror disk. ... I am not able to initialize da1 and da2 successfully. ...
    (freebsd-questions)
  • Re: Physical Disk Size
    ... I have just found the info in dmesg when i do a "dmesg |grep SCSI", ... The fdisk -l does not come back with anything, ... The dmesg does not give me the disk size in the output either. ... This transmission is confidential and must not be used or disclosed by ...
    (RedHat)