[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to make hda become hdb?



levi.waldron@utoronto.ca wrote:
> 
> I have debian installed on /dev/hda, how can I switch this hard drive
> to
> become /dev/hdb?
> 
> What I know:
> 
> edit lilo.conf, run lilo
> edit fstab
> 
> What about the partition table though?

I am surprised not to have seen this among all of the answers about
switching the cables and master/slave switches.  (NOTE: This probably
means that there is an error in my thinking..  If so, someone please
correct me.)

If you are not comfortable, or just don't want to open your case and
switch cabling and deal with the switches (you do have your hardware
manuals, don't you) then it may be possible to simply switch the to from
your lilo.conf file, without physically changing the cabling, etc.

I had Debian installed on /dev/hda and needed to set up a dual boot with
Win98.  I had a spare disk that I could install Windoze on, but Windows
really wants to be on the master drive on IDE0 and I didn't want to mess
with changing my linux configurations.  Someone on this list (I don't
remember who, just now) suggested the following solution:

In lilo.conf:
other=/dev/hdc1
        label=Win98SE
        map-drive=0x80
                to=0x81
        map-drive=0x81
                to=0x80

This switched the drives in memory at boot time, so that linux still
knew that it was on /dev/hda and Windows THOUGHT that it was on
/dev/hda.

Come to think of it, this may, or may not work.  Windows is actually on
/dev/hdc on my system, so it seems that this is changing entire IDE
ports, not individual drives.  Maybe you can put the other drive as
master on IDE1: and use this method to switch IDE0: and IDE1:, or maybe
someone else can chime in and suggest a way to switch the individual
drives.  Then, again, it may be that you can fool Windows this way, but
linux is smart enough not to be fooled.

Can anyone give more details on this?
-- 
Marc Shapiro                         "If you drink melomel every day,
m_shapiro@bigfoot.com                you will live to be 150 years old,
Please visit "The Meadery" at:       unless your wife shoots you."
http://www.bigfoot.com/~m_shapiro/   -- Dr. Ferenc Androczi, winemaker,
                                     Little Hungary Farm Winery



Reply to: