Re: Swapping Hard Drives on the fly

1998-06-27 Thread Damon Muller
Greets,

> If you wanted a hot-swappable setup, you might try setting up some sort of
> ramdisk root fs with the ide driver compiled as a module and all your
> important
> stuff (/usr, /var etc) mounted off your ide drive, you could then drop to
> single
> user mode, umount the ide devices, rmmod the driver and maybe have a chance.

Maybe I neglected to mention that it isn't actually the boot device. I
have /dev/hdc1 mounted as /usr/local/rem, set as 'noauto' in /etc/fstab,
so it's not as if it should actually be trying to read or write to it
anyway, should it?

damon

--
Damon Muller  | Did a large procession wave their torches
([EMAIL PROTECTED]) | As my head fell in the basket,
Network Administrator | And was everyone dancing on the casket...
EmpireNET |  - TBMG, "Dead"


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Swapping Hard Drives on the fly

1998-06-25 Thread Ian Eure
On Wed, Jun 24, 1998 at 11:29:38PM -0700, Damon Muller wrote:
> Hey Folks,
> 
> I have a 1.2G IDE HD that I have in a removable drive cady on my Bo
> system. It's not a 'hot-swap' drive or anything sophisticated like that,
> and on my Windoze system I wouldn't have even considered pulling it out
> while the PC was running.
> 
> However, under Linux, shouldn't I just be able to unmount or mount the
> drive at will?  Would that damage or confuse anything? Or possibly put
> in the drive once I have booted without it?
> 
> Anyone have a similar setup?
Hotswapping devices not intended for it is a Bad Thing(tm). However, if you are
determined... I have safely hot-swapped network/sound/serial boards under Linux
with no problems, BUT that does not mean it is safe. Chances are you will fry
something. I do _NOT_ recommend that you even attempt a hot-swap of an IDE
device. If you are going to hotswap, you _must_ turn off the driver for it
first, ie rmmod it. Since you are booting off an IDE device, it is compiled in
the kernel, and you can't rmmod it- so when you disconnect the drive, the kernel
will complain _loudly_. I tried it once, just to see- ended up hard resetting
my box.

If you wanted a hot-swappable setup, you might try setting up some sort of
ramdisk root fs with the ide driver compiled as a module and all your important
stuff (/usr, /var etc) mounted off your ide drive, you could then drop to single
user mode, umount the ide devices, rmmod the driver and maybe have a chance.


-- 
 __
| ian eure, network admin, freelance security consultant, and  |
| manically depressed paranoid schizophrenic, at your service. |
;   <[EMAIL PROTECTED]> - http://minion.org ;
:   raw speed = 105.6 wpm with 4.5% errors :
.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Swapping Hard Drives on the fly

1998-06-25 Thread Brederlow
Damon Muller <[EMAIL PROTECTED]> writes:

> Hey Folks,
> 
> I have a 1.2G IDE HD that I have in a removable drive cady on my Bo
> system. It's not a 'hot-swap' drive or anything sophisticated like that,
> and on my Windoze system I wouldn't have even considered pulling it out
> while the PC was running.
> 
> However, under Linux, shouldn't I just be able to unmount or mount the
> drive at will?  Would that damage or confuse anything? Or possibly put
> in the drive once I have booted without it?
> 
> Anyone have a similar setup?

Linux can handle Hot-puging of harddrives and nearly any other
hardware, BUT:

Forget it with IDE. IDE drives that don't get power most likely crash
your ide bus (try booting with an unpowered drive conected).

With scsi you can send a commando to the scsi kernel thread to create
or kill a device (after unmounting all partitions on it). After that
you can 99.99% savely remove the drive. You should not do that while
large amounts of data are transfered over the scsi bus, but generally
its save.

You can try the same with ide, but I think the bus will crash and then 
your without any ide drive until reboot.

May the Source be with you.
Mrvn


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Swapping Hard Drives on the fly

1998-06-25 Thread Damon Muller
Hey Folks,

I have a 1.2G IDE HD that I have in a removable drive cady on my Bo
system. It's not a 'hot-swap' drive or anything sophisticated like that,
and on my Windoze system I wouldn't have even considered pulling it out
while the PC was running.

However, under Linux, shouldn't I just be able to unmount or mount the
drive at will?  Would that damage or confuse anything? Or possibly put
in the drive once I have booted without it?

Anyone have a similar setup?

damon

--
Damon Muller  | Did a large procession wave their torches
([EMAIL PROTECTED]) | As my head fell in the basket,
Network Administrator | And was everyone dancing on the casket...
EmpireNET |  - TBMG, "Dead"


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]