MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Is DOS disk C: on master or slave, primary or secondary HDD?
PostPosted: July 6th, 2014, 12:40 
Offline

Joined: July 6th, 2014, 12:10
Posts: 15
Location: USA
1. Laptop's BIOS allows to boot from either primary or secondary HDD. Once the user boots into DOS, the first partition of the HDD booted from is assigned disk letter C:, and the other HDD's first partition is assigned disk letter D:, provided it is formatted, of course. The problem is, sometimes you tell the BIOS to boot from a secondary HDD, but it sees that the secondary HDD is not bootable or something, and automatically switches to booting from the primary HDD, without letting the user know it switched. So, there is never a complete certainty as to which HDD was booted from. Once the user is under DOS and can access the C: disk, how can he programmatically determine if disk C: actually belongs to the primary or the secondary HDD? Could somebody post an assembly language code?
2. The same question for master and slave HDDs.
3. The same question for SATA HDDs. The BIOS allows to boot from any of the three SATA HDDs. Once the user is under DOS, how can he determine which of the three HDDs disk C: belongs to?


Top
 Profile  
 
 Post subject: Re: Is DOS disk C: on master or slave, primary or secondary
PostPosted: July 6th, 2014, 14:20 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 16960
Location: Australia
I don't know how to answer your question directly, but I would choose appropriate Volume Names for each partition using the DOS Label command, eg ...

    LABEL x: IDE_PM_PAR1
    LABEL x: IDE_PM_PAR2
    LABEL x: IDE_PS_PAR1
    LABEL x: IDE_SM_PAR1
    LABEL x: SATA1_PART1
    LABEL x: SATA2_PART1

You could then identify the physical drive by typing ...

    VOL x:

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: Is DOS disk C: on master or slave, primary or secondary
PostPosted: July 6th, 2014, 21:12 
Offline

Joined: July 6th, 2014, 12:10
Posts: 15
Location: USA
That won't help much in my situation. I have two almost identical hard drives, they have identical partitions and identical volume labels. I want to create a backup by copying one hard drive onto the other sector by sector. I need to know exactly which hard drive is primary and which is secondary, so I don't end up copying the copy onto the original. Also, volume labels won't help in a case of sector-by-sector copying of unformatted and unpartitioned hard drives.
When you boot from a secondary hard drive, BIOS makes it look like it is HDD 1, even though it is physically connected to a secondary HDD slot, and the other hard drive, physically connected to the primary slot, becomes HDD 2. I need to be able to figure out which hard drive is which by using a DOS interrupt or reading / writing to or from some ports. Is it possible?


Top
 Profile  
 
 Post subject: Re: Is DOS disk C: on master or slave, primary or secondary
PostPosted: July 7th, 2014, 8:15 
Offline
User avatar

Joined: June 3rd, 2014, 14:18
Posts: 79
Location: Mitakihara - Japan
Greetings !

Buy a RAID card and connect the drives as RAID 1 (mirror).

Changing the volume label of one drive sounds fine as well, because it will not afect the drive content neither the files you store.

You can use the "dir" command to check what files are present on the directory.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: jimmydata and 99 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group