Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

MkPriLog batch to access a same disk under two different interfaces

- - - - -

  • Please log in to reply
2 replies to this topic

#1
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,190 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Once upon a time in a not-so-far away forum, here:

http://www.msfn.org/...ent-interfaces/

someone found himself in a "queer" situation with an external hard disk case that provided two connections, a USB one and a e-SATA one.

This specific enclosure worked fine with the disk it originally came with as that was a "real" 512 bytes/sector disk and both interfaces exposed a 512 bytes/sector device.

But, once the disk was changed to a "new" one that is one of the so called "Advanced Format" kind, something strange happened.

The e-SATA interface exposed a 512 bytes/sector device 

The USB interface exposed a 4096 bytes/sector device.

The net result was that the disk was unreadable when connected through the "other" interface.

 

Provided "solutions" involved one or more of the following:

  • buy a new disk
  • buy a new enclosure/interface
  • give up and buy a new external disk
  • buy new PC's and have everything USB3
  • ....

Being, besides old and grumpy, also cheap, I proposed instead a "workaround" that after quite a bit of experimenting (thanks to the OP Dave-H) seems like being "good enough" to be useful to other (I hope few) people being affected by the same issue, and that (possibly) may become useful when/if similar issues will present themselves.

 

Basically the disk is divided into two partitions, the first one being a small FAT12 volume that will always be accessible (both when connected through the 512 bytes/sector interface and when connected through the 4096 bytes/sector one) on which a small batch (and a few needed command line executable used by the batch) resides.

The second partition is a (large or main) NTFS one that can be accessed from the one or the other interface but that needs to be "switched" every time the connection is changed to the "other" interface.

 

All is needed when you connect the disk is to run the switcher.cmd from the first (FAT) small partition and it will "switch" the second (NTFS) main partition to the appropriate byte/sectors settings.

 

Though the scope of the thingy is quite "narrow", probably the underlying "principles" may be useful in other situations, we will see. 

 

The attached is version 0.99 which more or less means that all the various batches which were at various releases like 0.06 , 0.07 or 0.09 mod3, since they seemed to work, were suddenly - after very little and mostly esthetical changes - promoted to 0.99 which should give the impression of "not really final, yet almost there". 

 

Have fun. :)

 

jaclaz

Attached Files


Edited by jaclaz, 18 March 2015 - 07:22 AM.



How to remove advertisement from MSFN

#2
Dave-H

Dave-H

    MSFN Expert

  • MSFN Sponsor
  • 1,042 posts
  • Joined 04-January 06
  • OS:98SE
  • Country: Country Flag

Thanks jaclaz!

I'll check it out and let you know if I find any issues.

It's been really fascinating doing this with you, and thanks for all your perseverance and patience with me at times!

Cheers, Dave.

:)


Triple boot Windows 98SE SP2.1a, Windows XP Professional SP3 32 bit, and Windows 8.1 Pro 64 bit.
Dual 3.16GHz X5460 Quad Core Xeons with 8GB RAM. Dual graphics cards ATI Radeon X850 and Nvidia Geforce 210. 1920x1080 32 Bit Colour with Large Fonts.


#3
shae

shae

    Advanced Member

  • Member
  • PipPipPip
  • 343 posts
  • Joined 06-July 08
The wonders of technology...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users