DIR =?iso-8859-1?q?=ABsees=BB?= almost 2 GB free in a 500 MB partition! What is wrong? - OS2

This is a discussion on DIR =?iso-8859-1?q?=ABsees=BB?= almost 2 GB free in a 500 MB partition! What is wrong? - OS2 ; Here is an edited output of three DIR commands on C: (502 MB), D: (1004 MB), and E: (1200 MB). epm: F:\ >dir c: Répertoire C:\ C 1 05-02-28 17:28 2097119 K octet(s) disponible(s) epm: F:\ >dir d: Répertoire D:\ ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: DIR =?iso-8859-1?q?=ABsees=BB?= almost 2 GB free in a 500 MB partition! What is wrong?

  1. DIR =?iso-8859-1?q?=ABsees=BB?= almost 2 GB free in a 500 MB partition! What is wrong?

    Here is an edited output of three DIR commands on C: (502 MB), D:
    (1004 MB), and E: (1200 MB).


    epm: F:\ >dir c:

    Répertoire C:\

    C 1 05-02-28 17:28
    2097119 K octet(s) disponible(s)

    epm: F:\ >dir d:

    Répertoire D:\

    D 1 05-02-28 17:28
    2097053 K octet(s) disponible(s)

    epm: F:\ >dir e:

    Répertoire E:\

    E 1 05-02-28 17:29
    1258225 K octet(s) disponible(s)

    Why does DIR «see» almost 2 GB free in the first two partitions?
    Why does DIR give the right value for the third partition?

    I tried to reformat, and FORMAT «sees» the C partition as an almost 2
    GB sized partition!
    Where does FORMAT pick up the partition size?
    How can I correct the problem? I did not use the /L option because I
    was afraid FORMAT would format beyond the partition boundary.


    There is no doubt about the partition sizes. Here is the output of
    both FDISK and DFSOS2.

    epm: F:\ >fdisk /query


    Unité Nom Partition TypeV TypeSF Etat Début Taille

    1 0000003f : 1 0a 2 0 7
    1 DOS+WIN C: 1 06 1 7 502
    1 000fef40 D: 2 06 0 509 1004
    1 002f4fc0 E: 2 06 0 1514 1200
    1 OS2 WARP F: 2 07 1 2714 800
    1 006dd1ff G: 2 07 0 3514 1506
    1 009ce2bf H: 2 07 0 5020 2000
    1 Fedora : 2 83 1 7020 1004
    1 00fac57e I: 2 07 0 8024 8001
    1 01f4ce7a : 2 82 0 16025 502
    1 02047eba : 2 83 0 16527 2000
    1 024300f9 J: 2 07 0 18528 8001
    1 033d09f5 K: 2 07 0 26529 8001
    1 043712f1 L: 2 07 0 34530 8001
    1 05311bed M: 2 07 0 42531 8001
    1 062b24e9 N: 2 07 0 50532 8001
    1 07252da6 : 3 00 0 58533 17759
    **BIOS:8032MB

    DFSOS2 output:
    DFSee OS/2 7.00 : executing: part
    Execute timestamp : Monday 28-02-2005 17:22:58
    +---+--+-----------------+--+--------+--------+-----------+----------+
    --------+
    |ID |Dr|Type, description|ux|Format |Related |VolumeLabel|BM-Name
    |Size MiB|
    +---+-------------+--------+----------- 76>--------+
    |01>| |Prim 0a IBM-BMGR | 1|BMGR |FDISK |I13X-aware | |
    7.8|
    |02*|C:|Prim 06 FAT16 | 3|FAT |IBM 4.50|DOS+WINDOWS|BMOS+WIN|
    502.0|
    |03 |D:|Log 06 FAT16 | 5|FAT |IBM 4.50|DOS APPLICA| |
    1004.0|
    |04 |E:|Log 06 FAT16 | 6|FAT |IBM 20.0|DOS DONNEES| |
    1200.1|
    |05*|F:|Log 07 Inst-FSys| 7|HPFS |OS2 20.0|OS2 WARP |BM:OS2 WAR|
    800.0|
    |06 |G:|Log 07 Inst-FSys| 8|HPFS |OS2 20.0|OS2 APPLICA| |
    1506.0|
    |07 |H:|Log 07 Inst-FSys| 9|HPFS |IBM 4.50|OS2 DONNEES| |
    2000.2|
    |08*| |Log 83 LinuxNatv|10|unknown |Linux | |BM:Fedora |
    1004.0|
    |09 |I:|Log 07 Inst-FSys|11|HPFS |IBM 4.50|COPIE D | |
    8001.0|
    |10 | |Log 82 Solar/SWP|12|SWAP |Linux | | |
    502.0|
    |11 | |Log 83 LinuxNatv|13|unknown |Linux | | |
    2000.2|
    |12 |J:|Log 07 Inst-FSys|14|HPFS |IBM 4.50|COPIE E | |
    8001.0|
    |13 |K:|Log 07 Inst-FSys|15|HPFS |IBM 4.50|EXTRA HPFS | |
    8001.0|
    |14 |L:|Log 07 Inst-FSys|16|HPFS |IBM 4.50|OS2 FP15 | |
    8001.0|
    |15 |M:|Log 07 Inst-FSys|17|HPFS |IBM 4.50|OS2 S3 | |
    8001.0|
    |16 |N:|Log 07 Inst-FSys|18|HPFS |IBM 4.50| | |
    8001.0|
    |17 | |FreeSpace Pri/Log| |-- -- --|-- -- --|- - - - - -| |
    17759.3|
    +---+--+-----------------+--+--------+--------+-----------+----------+
    --------+

    I studied the partition table chain with the help of the WALK command
    output of DFSOS2, and it appears OK to me.

    What is wrong?

    Let me add that my machine BIOS does not see beyond 8 GB. Could it be
    part of the problem?

    Thank you very much in advance for any suggestion.
    --
    Jean Castonguay
    Électrocommande Pascal


  2. Re: DIR =??q?=AEsees=AF?= almost 2 GB free in a 500 MB partition! What is wrong?

    On Mon, 28 Feb 2005 23:10:56 UTC, "Jean Castonguay" wrote:
    Hello Jean,

    > I tried to reformat, and FORMAT ®sees¯ the C partition as an almost 2
    > GB sized partition!
    > Where does FORMAT pick up the partition size?


    From the existing bootsector that is there.

    There probably used to be a 2GB partition in that same location.
    Format defaults to the same values as 'before' ...

    That is why many FDISK programs clear that sector with an 'F6' pattern
    when you create new partitions. You can do the same with DFSee if
    you specify the "-C" option (clear) on the CR command, or the
    corresponding checkbox in the create dialog:

    [x ] Clear Bootsector

    By default DFSee will NOT clear the bootsector, since in many cases
    DFSee is used to RECOVER partitions and you do not want to wipe
    the bootsector in that case :-)

    > How can I correct the problem? I did not use the /L option because I
    > was afraid FORMAT would format beyond the partition boundary.


    I don't think the /L option would help, but I have never tested that.
    It will not write beyond the partition boundary I think, but that may
    depend on OS version and the particular FORMAT program.

    You can fix it by WIPING the bootsector with zeroes.

    Using DFSee version 7, that would be:

    File -> Open object to work with -> Partition -> ... select the one ...
    Actions -> Erase, wipe selected areas -> Erase, wipe 'This' sector(s)

    And keep the value of 1 (sectors to wipe)

    From the commandline it would be

    part xx ;select partition
    wipe z 0 1 ;wipe first sector

    Regards, JvW


    --
    Jan van Wijk; Author of DFSee: http://www.dfsee.com

  3. Re: DIR ®sees¯ almost 2 GB free in a 500 MB partition! What is wrong?

    when was version 7 released???

    "Jan van Wijk" wrote in message
    news:W1d6fUB5m4qH-pn2-hPem2ZzIQVVF@merlin...
    > On Mon, 28 Feb 2005 23:10:56 UTC, "Jean Castonguay"

    wrote:
    > Hello Jean,
    >
    > > I tried to reformat, and FORMAT ®sees¯ the C partition as an almost 2
    > > GB sized partition!
    > > Where does FORMAT pick up the partition size?

    >
    > From the existing bootsector that is there.
    >
    > There probably used to be a 2GB partition in that same location.
    > Format defaults to the same values as 'before' ...
    >
    > That is why many FDISK programs clear that sector with an 'F6' pattern
    > when you create new partitions. You can do the same with DFSee if
    > you specify the "-C" option (clear) on the CR command, or the
    > corresponding checkbox in the create dialog:
    >
    > [x ] Clear Bootsector
    >
    > By default DFSee will NOT clear the bootsector, since in many cases
    > DFSee is used to RECOVER partitions and you do not want to wipe
    > the bootsector in that case :-)
    >
    > > How can I correct the problem? I did not use the /L option because I
    > > was afraid FORMAT would format beyond the partition boundary.

    >
    > I don't think the /L option would help, but I have never tested that.
    > It will not write beyond the partition boundary I think, but that may
    > depend on OS version and the particular FORMAT program.
    >
    > You can fix it by WIPING the bootsector with zeroes.
    >
    > Using DFSee version 7, that would be:
    >
    > File -> Open object to work with -> Partition -> ... select the one ...
    > Actions -> Erase, wipe selected areas -> Erase, wipe 'This' sector(s)
    >
    > And keep the value of 1 (sectors to wipe)
    >
    > From the commandline it would be
    >
    > part xx ;select partition
    > wipe z 0 1 ;wipe first sector
    >
    > Regards, JvW
    >
    >
    > --
    > Jan van Wijk; Author of DFSee: http://www.dfsee.com




  4. Re: DIR =??q?=AEsees=AF?= almost 2 GB free in a 500 MB partition! What is wrong?

    On Sat, 5 Mar 2005 23:54:51 UTC, "eric w" wrote:
    Hi Eric,
    >
    > when was version 7 released???
    >



    23rd of February ...

    Regards, JvW

    --
    Jan van Wijk; Author of DFSee: http://www.dfsee.com

  5. Re: DIR =?iso-8859-1?q?=AEsees=AF?= almost 2 GB free in a 500 MB partition! What is wrong?

    On Thu, 3 Mar 2005 05:53:09 UTC, "Jan van Wijk"
    wrote:

    > > Where does FORMAT pick up the partition size?

    >
    > From the existing bootsector that is there.
    >

    That is correct!

    Thank you Mr. van Wijk.

    In order to better understand the interplay between FDISK and FORMAT,
    I plan to carry out experiments on an old hard disk. Moreover, I will
    read the source code of the FreeDOS version of these two programs.
    --
    Jean Castonguay
    Électrocommande Pascal


  6. Re: DIR =?iso-8859-1?q?=AEsees=AF?= almost 2 GB free in a 500 MB partition! What is wrong? Repost

    On Thu, 3 Mar 2005 05:53:09 UTC, "Jan van Wijk"
    wrote:

    > On Mon, 28 Feb 2005 23:10:56 UTC, "Jean Castonguay" wrote:
    > Hello Jean,
    >
    > > I tried to reformat, and FORMAT ®sees¯ the C partition as an almost 2
    > > GB sized partition!
    > > Where does FORMAT pick up the partition size?

    >
    > From the existing bootsector that is there.
    >
    > There probably used to be a 2GB partition in that same location.
    > Format defaults to the same values as 'before' ...
    >
    > That is why many FDISK programs clear that sector with an 'F6' pattern
    > when you create new partitions. You can do the same with DFSee if
    > you specify the "-C" option (clear) on the CR command, or the
    > corresponding checkbox in the create dialog:
    >
    > [x ] Clear Bootsector
    >
    > By default DFSee will NOT clear the bootsector, since in many cases
    > DFSee is used to RECOVER partitions and you do not want to wipe
    > the bootsector in that case :-)
    >
    > > How can I correct the problem? I did not use the /L option because I
    > > was afraid FORMAT would format beyond the partition boundary.

    >
    > I don't think the /L option would help, but I have never tested that.
    > It will not write beyond the partition boundary I think, but that may
    > depend on OS version and the particular FORMAT program.
    >
    > You can fix it by WIPING the bootsector with zeroes.
    >
    > Using DFSee version 7, that would be:
    >
    > File -> Open object to work with -> Partition -> ... select the one ...
    > Actions -> Erase, wipe selected areas -> Erase, wipe 'This' sector(s)
    >
    > And keep the value of 1 (sectors to wipe)
    >
    > From the commandline it would be
    >
    > part xx ;select partition
    > wipe z 0 1 ;wipe first sector
    >


    Thank you Mr. van Wijk. That solved the problem.

    I would have thought that FORMAT takes its partition data from the
    partition table rather than from «leftovers» of a previous formatting
    operation.

    Some day, I will read the sources of FDISK and FORMAT to see how these
    two programs interact.
    --
    Jean Castonguay
    Électrocommande Pascal


  7. Re: DIR =?iso-8859-1?q?=A9sees=AF?= almost 2 GB free in a 500 MB partition! What is wrong? Repost

    On Thu, 24 Mar 2005 01:33:57 UTC, "Jean Castonguay" wrote:

    > Some day, I will read the sources of FDISK and FORMAT to see how these
    > two programs interact.
    >


    the problem is that the different OS platforms all do it differently...

    moving to a platform independent partioning tool like DFSEE is the ONLY
    solution!

    ....eric

+ Reply to Thread