Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

update the internal file system

0 views
Skip to first unread message

PM

unread,
Jun 27, 2008, 9:15:01 AM6/27/08
to
hello, everybody
I use a USB key on my PC under MS-DOS. when I delete files on the USB key
with an another PC and I replug it on my PC under MS-DOS then the DOS don't
see that the files is delete.
Do you know the DOS function that update or reset the "internal file system"
or "drive parameter block" to update the new value of USB key. The big
problem in DOS that he doesn't see when you unplug and plug the key and so
he doesn't update the modifications and I don't want restart the PC every
time.
thanks for your help.
Philippe


Jim Leonard

unread,
Jun 27, 2008, 10:25:09 AM6/27/08
to
On Jun 27, 8:15 am, "PM" <philippe.meyn...@laposte.net> wrote:
> I use a USB key on my PC under MS-DOS.

How do you do this?

PM

unread,
Jun 27, 2008, 10:49:54 AM6/27/08
to

"Jim Leonard" <Moby...@gmail.com> a écrit dans le message de news:
3b116169-b46b-4187...@m73g2000hsh.googlegroups.com...

> On Jun 27, 8:15 am, "PM" <philippe.meyn...@laposte.net> wrote:
>> I use a USB key on my PC under MS-DOS.
>
> How do you do this?

in fact my BIOS PC recognize the USB key automatically like a floppy. A
floppy with 32MB memory even if my USB key is 128MB memory. 32MB is enough
for me, it's only for transfer files on other system. So like my USB Key is
seen like a floppy , I can unplug and plug easily. So when I delete a file
on other PC then my DOS don't see the modifications.


Jim Leonard

unread,
Jun 27, 2008, 12:22:12 PM6/27/08
to
On Jun 27, 9:49 am, "PM" <philippe.meyn...@laposte.net> wrote:
> "Jim Leonard" <MobyGa...@gmail.com> a écrit dans le message de news:
> 3b116169-b46b-4187-8fa9-6e04dfb03...@m73g2000hsh.googlegroups.com...

>
> > On Jun 27, 8:15 am, "PM" <philippe.meyn...@laposte.net> wrote:
> >> I use a USB key on my PC under MS-DOS.
>
> > How do you do this?
>
> in fact my BIOS PC recognize the USB key automatically like a floppy. A
> floppy with 32MB memory even if my USB key is 128MB memory. 32MB is enough
> for me, it's only for transfer files on other system. So like my USB Key is
> seen like a floppy , I can unplug and plug easily. So when I delete a file
> on other PC then my DOS don't see the modifications.

But what DOS do you run, and how does it show up as a drive letter?

Or are you saying you boot from it?

Benjamin David Lunt

unread,
Jun 27, 2008, 1:43:26 PM6/27/08
to

"PM" <philippe...@laposte.net> wrote in message
news:g42p4m$a5k$1...@aioe.org...

If this is what I think it is, your BIOS isn't emulating the floppy disk
change line. You may be able to send a reset drive service call to the
BIOS.

using DEBUG

-a 100
xor ah,ah
mov dl,0 <- drive number
int 13h
int 20h
-rcx
:8
-nreset.com
-w
-q

It has been a while since I have used DEBUG, so I hope that is
the write sequence.

Make sure you use the correct drive number, 0 for the first floppy,
1 for the second, 80h for the first hard drive, etc.

If the BIOS is emulating the USB flash as 32meg, it probably is
80h instead of 00h, though I have never tried it myself.

I don't remember if the reset service clears the change line or
not. However, you can try it.

Ben

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Forever Young Software
http://www.frontiernet.net/~fys/index.htm
To reply by email, please remove the zzzzzz's

Batteries not included, some assembly required.


Ted Davis

unread,
Jun 27, 2008, 4:14:36 PM6/27/08
to

Try Ctrl + C when in the drive. It used to work for floppies that were
changed without the OS noticing.

--
T.E.D. (tda...@mst.edu)

Terence

unread,
Jun 27, 2008, 6:03:18 PM6/27/08
to
It if helps, I notice that after I have removed a "floppy" 1.4 Mb
diskette from a drive, the Windows DOS emulator still has a copy in
memory of the directory of that diskette, and I have had the next disk
directory damaged by not immediately requesting a directory listing of
the new disk inserted, before writing a new file to the disk I just
inserted. It only has happened to me on Windows systems (and a litttle
too many times), not with real DOS.

So if you cannot easily do a reset, at least try DIR myusbkeydisk:
first like " DIR B:"

PM

unread,
Jun 30, 2008, 4:24:37 AM6/30/08
to
Thanks
I have already try it.
here is what happen exactly:
When I deleted the file on another system, the reset drive Bios function see
that the file is deleted but the space memory free on the USB key isn't
changed!! After power off /power on the system so the memory free on the Key
is OK !
Here is my configuration : Panel PC with HDD 40gb(C:) no
floppy,128Mo,Pentium M intel 1 Ghz.DOS 6.22.
I boot with my HDD with a USB key plug see like a floppy (A:) on my key
there is no os only files data.
I can unplug and plug my Key with no problem.
So when I boot the free memory space on my Key is OK and when I delete the
files of my key on another PC then my system DOS don't see the memory space
free?

and yet , Thanks a lot for your helps.
Philippe


"Benjamin David Lunt" <zf...@frontiernet.net> a écrit dans le message de
news: _E99k.33579$t44....@fe105.usenetserver.com...

Benjamin David Lunt

unread,
Jun 30, 2008, 1:01:21 PM6/30/08
to

"PM" <philippe...@laposte.net> wrote in message
news:g4a588$doj$1...@aioe.org...

> Thanks
> I have already try it.
> here is what happen exactly:
> When I deleted the file on another system, the reset drive Bios function
> see that the file is deleted but the space memory free on the USB key
> isn't changed!! After power off /power on the system so the memory free on
> the Key is OK !
> Here is my configuration : Panel PC with HDD 40gb(C:) no
> floppy,128Mo,Pentium M intel 1 Ghz.DOS 6.22.
> I boot with my HDD with a USB key plug see like a floppy (A:) on my key
> there is no os only files data.
> I can unplug and plug my Key with no problem.
> So when I boot the free memory space on my Key is OK and when I delete the
> files of my key on another PC then my system DOS don't see the memory
> space free?
>
> and yet , Thanks a lot for your helps.
> Philippe

You can take the USB key to another computer, delete a file, then
bring the USB key back to original computer, and see that the file
has been deleted, but the freespace value has unchanged. i.e.: when
you do a dir listing, the amount of space left on the disk is unchanged,
but the delete file is not listed. Is this what you are saying?

Well, it could be one of a few things.

1. the OS you used to delete the file, marks the files dir entry
as deleted, but does not free the fat chain, if indeed the USB
key is using FAT. This may be due to some type of undelete
mechanism the deleting OS uses.

2. The OS on the original machine may be storing the freespace amount
in memory so that it doesn't have to calculate it each time you
do a dir listing, which is a slow process. However, I don't remember
DOS doing this.

Is it a true DOS you are running on the original machine, or is it a
DOS window under Windows? If it is a DOS session under Windows, I
have seen similar results using a floppy disk.

Before you insert the USB key back into the original machine, try
to do a dir listing of that logical drive. This may tell the host
OS that there is no disk in the drive. Then insert the USB key
and do another dir listing.

The way it sounds, you are using a DOS session under the Windows95
family. Win95/98/ME family.

PM

unread,
Jul 1, 2008, 3:13:19 AM7/1/08
to

"Benjamin David Lunt" <zf...@frontiernet.net> a écrit dans le message de
news: oj8ak.35391$t44....@fe105.usenetserver.com...

>
> "PM" <philippe...@laposte.net> wrote in message
> news:g4a588$doj$1...@aioe.org...
>> Thanks
>> I have already try it.
>> here is what happen exactly:
>> When I deleted the file on another system, the reset drive Bios function
>> see that the file is deleted but the space memory free on the USB key
>> isn't changed!! After power off /power on the system so the memory free
>> on the Key is OK !
>> Here is my configuration : Panel PC with HDD 40gb(C:) no
>> floppy,128Mo,Pentium M intel 1 Ghz.DOS 6.22.
>> I boot with my HDD with a USB key plug see like a floppy (A:) on my key
>> there is no os only files data.
>> I can unplug and plug my Key with no problem.
>> So when I boot the free memory space on my Key is OK and when I delete
>> the files of my key on another PC then my system DOS don't see the memory
>> space free?
>>
>> and yet , Thanks a lot for your helps.
>> Philippe
>
> You can take the USB key to another computer, delete a file, then
> bring the USB key back to original computer, and see that the file
> has been deleted, but the freespace value has unchanged. i.e.: when
> you do a dir listing, the amount of space left on the disk is unchanged,
> but the delete file is not listed. Is this what you are saying?
>

Yes,

> Well, it could be one of a few things.
>
> 1. the OS you used to delete the file, marks the files dir entry
> as deleted, but does not free the fat chain, if indeed the USB
> key is using FAT. This may be due to some type of undelete
> mechanism the deleting OS uses.
>
> 2. The OS on the original machine may be storing the freespace amount
> in memory so that it doesn't have to calculate it each time you
> do a dir listing, which is a slow process. However, I don't remember
> DOS doing this.
>
> Is it a true DOS you are running on the original machine, or is it a
> DOS window under Windows? If it is a DOS session under Windows, I
> have seen similar results using a floppy disk.
>

it's a TRUE DOS (MS-DOS 6.22)

> Before you insert the USB key back into the original machine, try
> to do a dir listing of that logical drive. This may tell the host
> OS that there is no disk in the drive. Then insert the USB key
> and do another dir listing.

good idea.
so, when we try to do a dir listing of A: withou USB key -> Problem on
drive A: ->OK
insert the USB key , dir listing -> OK and the memory space free is OK
Then there is therefore definitily a function which exists to make it !!!
I seached with BPB (bios parameter block) ,DPB ( drive parameter block) but
without succes!
can yopu help me

Benjamin David Lunt

unread,
Jul 2, 2008, 7:17:48 PM7/2/08
to

"PM" <philippe...@laposte.net> wrote in message
news:g4cleh$vsa$1...@aioe.org...

>
>> Before you insert the USB key back into the original machine, try
>> to do a dir listing of that logical drive. This may tell the host
>> OS that there is no disk in the drive. Then insert the USB key
>> and do another dir listing.
>
> good idea.
> so, when we try to do a dir listing of A: withou USB key -> Problem on
> drive A: ->OK
> insert the USB key , dir listing -> OK and the memory space free is OK
> Then there is therefore definitily a function which exists to make it !!!
> I seached with BPB (bios parameter block) ,DPB ( drive parameter block)
> but without succes!
> can yopu help me

DOS is resetting the Disk Parameter Block entry (DPB).
Without going and looking, I think the List of Lists points to this
DPB list and there you can modify the first entry, as long as the
first entry is your USB disk.

Okay, I went and looked:
http://www.ctyme.com/intr/rb-2983.htm

Offset 00h is the pointer to first Drive Parameter Block.

Then it should have a DPB outlined at
http://www.ctyme.com/intr/rb-2724.htm

If you are using DOS 4.0 - 6.0, then change the value at 1Fh
to 0FFFFh.

However, I don't recommend modifying it directly. You could
really mess something up if it wasn't done correctly. If this
is the only thing you got, though, make sure you do it correctly.

Ben


PM

unread,
Jul 3, 2008, 3:37:34 AM7/3/08
to
Good, we have find it yesterday and thank for your help.
Another Thing :
actually we must plug the USB key before power on the panel PC, after we can
unplug and plug the key without problem.
there is a function (in BIOS I suppose) which allow to discover the key
after power on withou the USB key ?

"Benjamin David Lunt" <zf...@frontiernet.net> a écrit dans le message de

news: B0Uak.40678$aQ3....@fe085.usenetserver.com...

0 new messages