PDA

View Full Version : Installing a second hard drive


pax anglia
24th Mar 2003, 18:22
Some weeks ago I attempted to install Linux alongside my Win XP OS. Despite having successfully partitioned the hard drive with Partition Magic, the whole exercise came to a grisly end when I was faced with a complete re-install of XP. I'm not sure exactly what I did wrong, but.......
I am now considering adding a second HDD and installing Red Hat Linux there. I imagine that the physical installation would be reasonably straight forward (or as straightforward as anything else in computing) but I am a little concerned about the allocation of letters to the various drives.
Current system is:
Floppy: A
HDD: C
CD-RW: D
DVD: E

Would the system allocate its own letter or is that something I would have to do? I am prompted to ask because somewhere in the dim and distant past I read that Windows would not recognise certain letters. I think the examples given were F and G.
Can anyone advise, please?

Thanks in anticipation, Gentlemen

spannersatcx
24th Mar 2003, 19:41
The new hard drive will be automatically assigned the letter D and the CD/DVD will be moved down to E and F, you can actually have letters all the way to Z.

Seagate has a handy utility that will automatically update your drive access for programs that are looking for a cd in drive D, as the CD is now E. I think it came as part of their diskwizzard software, there may well be other utilities out there that will do the same thing.

Background Noise
24th Mar 2003, 20:58
There's something odd/different in Win Xp - well there is in mine anyway. I installed with one HDD and 2 CD they are HD=C, DVD=D, CDRW=E. When I add a second HDD it becomes F. It doesn't matter, its just unusual. Anyway, you can change assigned drive letters through computer management (in XP) if you wish.

pax anglia
29th Mar 2003, 02:04
Thanks both. Your advice is very helpful and I'll have a go when I've saved up my pocket money!

I would have posted my thanks earlier but.......well, you know the story.

Mac the Knife
29th Mar 2003, 02:27
Unless the second hard drive has a DOS logical volume in some sort of DOS partition in addition to the Linux partition(s) neither XP not DOS will have any idea that it is there and no way to access it. Your drive letters won't change. FDISK will see it as a "Non-DOS partition" (remember that FDISK sees your first hard drive as Drive 0 and your second HDD as drive 1).

If you DO choose to setup a DOS logical volume in some sort of DOS partition on the second HDD (I see no reason to), then your present setup will see it as D: and the CD-RW and DVD will each move up a letter.

Linux will have no difficulty in seeing DOS logical volumes in your DOS partitions, whether FAT-16 or FAT-32 and you can set Linux up to automount directories of interest on boot.

DOS (and Windows, including XP) assigns drive letters by first looking for primary DOS partitions and assigning them driveletters; then, and only then, will it look for logical DOS volumes in extended DOS partitions and give them driveletters. Once all of the hard disk partitions have been assigned drive letters, the system will allocate letters for other devices that are operated using drivers like CD-ROMs or Zip drives.

[Note that in Win98SE (and DOS, using MSCDEX.EXE invocation parameters) you CAN change the assigned letter of driver-accessed drives like CD-ROMS and in XP you can change almost all of them (be careful you don't confuse yourself, the OS and installed programs). Note also that emergency boots from floppy or CD may not give the drive letters you have gotten used to expecting and be extra careful checking in this situation.

So suppose you have one physical hard drive in the system, with a primary DOS partition and a logical DOS volume in an extended DOS partition - DOS will assign these as C: and D: with a CD-ROM as E:

Add a second hard drive, similarly partitioned and DOS will allocate drive letters as follows:

C: 1ary DOS partition on 1st physical HDD (you can't subdivide 1ary partitions)
D: 1ary DOS partition on 2nd physical HDD
E: 1st Logical DOS volume in extended DOS partition on first HDD
F: 1st Logical DOS volume in extended DOS partition on second HDD
G: CDROM

This can be annoying and confusing, particularly if one is using a removable HDD. The solution is to create only an extended partition on the second or removable HDD (DOS doesn't HAVE to have a primary DOS partition unless you intend to boot from the drive). You must create at least one logical DOS drive in the extended partition (actually you can create as many logical DOS drives as you can spare driveletters and have space for if you want). So:

C: 1ary DOS partition on first HDD
D: 1st Logical DOS volume in extended DOS partition on first HDD
E: 1st Logical DOS volume in extended DOS partition on second HDD
F: 2nd Logical DOS volume in extended DOS partition on second HDD
G: CDROM

Of course, all DOS logical volumes (whether on a primary DOS partition or on an extended DOS partition must be formatted before you can use them.

FAT-16 restricts you to 2GB partitions, FAT-32 allows sizes up to 2 terabytes.

With SCSI drives Windows assigns fixed-disk drive letters like so:

1st -> Primary partition of Primary master
Next -> Primary partition of Primary slave
Next -> Primary partition of Secondary master
Next -> Primary partition of Secondary slave
Next -> Primary partition on SCSI ID 0
Next -> Primary partition on SCSI ID 1 (and so on)
Next -> All Logical DOS drives of partitions on Primary master
Next -> All Logical DOS drives of partitions on Primary slave
Next -> All Logical DOS drives of partitions on Secondary master
Next -> All Logical DOS drives of partitions on Secondary slave
Next -> All Logical DOS drives of partitions on SCSI ID 0
Next -> All Logical DOS drives of partitions on SCSI ID 1 (and so on)
Next -> CD-ROMs, Zip drives etc accessed through device drivers, letter depends on order in which device drivers are loaded)

So ALL Primary partitions receive drive letters before ANY Logical DOS drives do.

Most people don't bother to have anything but a big primary DOS partition on their Windows systems because they get confused or don't know how to do it. It's actually quite simple and very useful if organised sensibly and not overdone.

Unfortunately, by the time people realise that partitions would be useful and wish they had 'em they've been up and running for a while and don't want to FDISK/reformat/reinstall everything or cough up $60 for a copy of "Partition Magic" that allows you to repartition drives non-destructively and more or less on the fly.

Hope this helps (and open to additions/corrections).

pax anglia
30th Mar 2003, 01:16
Thanks Mac for that comprehensive response.
I am now rather better equipped for the task ahead than I was!

Mac the Knife
30th Mar 2003, 03:20
"...somewhere in the dim and distant past I read that Windows would not recognise certain letters. I think the examples given were F and G"

OOoops! Forgot to mention LASTDRIVE! (introduced in DOS 3.0)

DOS 6.x only assumes 5 driveletters (A to E) unless the LASTDRIVE specifier is used in CONFIG.SYS

SYNTAX:
lastdrive=[letter] - (don't use a colon)
OR lastdrivehigh=[letter]
where [letter] A-Z (default is E and A to E/F are ignored here)

EXAMPLE:
lastdrive=K

If the DOS command is used to manage the upper memory blocks (it usually is), the values for LASTDRIVE are automatically loaded into the HMA - (LASTDRIVEHIGH is invoked without needing to be explicitly stated).

If an invalid character (such as a trailing colon) is included, the minimum number of drives (A to E) are included. No error message is displayed.

The reason for LASTDRIVE is of historical interest only. Each additional drive above E: takes up 81 (some say 96) bytes of system RAM and in those far off real mode 640K limit days every byte saved could make a difference.

Windows 95/98 assumes LASTDRIVE=Z, though you CAN change it if you really want to (why bother). XP accepts the specifier for compatibility's sake, but ignores it.