Why transaction log is not flushed?

Apologies as this is not quite a development question.
I connect a disk with 2 NTFS partitions to a WinXP machine over eSATA.
XP automounts one partition and assigns it, say, letter E:.
For some reason the other partition (a win7 x64 boot volume) won’t get a
letter auto assigned.

Everything looks perfect until I try to unplug the disk.
First I unmount the mounted partition by fsutil volume dismount E:.

But, after unplugging it, a bunch of ftdisk errors appear in the
eventlog: “The system failed to flush data to the transaction log.
Corruption may occur.”.

So, if none volumes on this disk are mounted, what remains in the
transaction log to be flushed? How to assure that the disk can be
cleanly unplugged?

Thanks,
– pa

“Pavel A” wrote in message news:xxxxx@ntdev…

Everything looks perfect until I try to unplug the disk.
First I unmount the mounted partition by fsutil volume dismount E:.

That dismounts the volume for a moment in time, it doesn’t guarantee that it
won’t be mounted again before you unplug the drive. Does the drive show up
in the Safely Remove Hardware dialog? That would be the correct way to make
the device safe for removal.

-scott


Scott Noone
Consulting Associate and Chief System Problem Analyst
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Pavel A” wrote in message news:xxxxx@ntdev…

Apologies as this is not quite a development question.
I connect a disk with 2 NTFS partitions to a WinXP machine over eSATA.
XP automounts one partition and assigns it, say, letter E:.
For some reason the other partition (a win7 x64 boot volume) won’t get a
letter auto assigned.

Everything looks perfect until I try to unplug the disk.
First I unmount the mounted partition by fsutil volume dismount E:.

But, after unplugging it, a bunch of ftdisk errors appear in the
eventlog: “The system failed to flush data to the transaction log.
Corruption may occur.”.

So, if none volumes on this disk are mounted, what remains in the
transaction log to be flushed? How to assure that the disk can be
cleanly unplugged?

Thanks,
– pa

On 01-Sep-2011 21:44, Scott Noone wrote:

“Pavel A” wrote in message news:xxxxx@ntdev…
> Everything looks perfect until I try to unplug the disk.
> First I unmount the mounted partition by fsutil volume dismount E:.

That dismounts the volume for a moment in time, it doesn’t guarantee
that it won’t be mounted again before you unplug the drive. Does the
drive show up in the Safely Remove Hardware dialog? That would be the
correct way to make the device safe for removal.

-scott

Thank you Scott for your reply.
The drive is not in safely remove dialog (it’s XP) but the cardbus SATA
adapter itself is.

One more data point - after removal of the driver letter using mountvol,
and unplugging, there are 4 ftdisk errors in eventlog.
Without removal of the mount point, there are 8 messages
Looks like 4 per each volume, and the other partition somehow gets
mounted (?) even when it does not have mount points?
Or, does the whole drive somehow get mounted (?) in raw mode?

Thanks,
Pavel A.

> The drive is not in safely remove dialog (it’s XP) but the cardbus SATA

adapter itself is.

Remove the adapter, then power down the disk.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
>> The drive is not in safely remove dialog (it’s XP) but the cardbus SATA
>> adapter itself is.
>
> Remove the adapter, then power down the disk.

I don’t want to remove the adapter: another disk sits on its 2nd channel.

–pa