Re: transfering linux to new HDD

2002-11-25 Thread Russell Coker
On Mon, 25 Nov 2002 08:40, Craig wrote:
 I have transfered a current linux install across to a new
 drive using the cp -a command. I need to now chroot the
 existing install to the new hdd and tell lilo to boot
 from there.

 How do I do this from a remote location ?

If your new drive will be bootable as a secondary drive and you are not going 
to remove the primary drive then this should be easy.

If you are going to make the new drive /dev/hda afterwards then it'll be more 
difficult, check the bios= option in /etc/lilo.conf...

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


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




Re: transfering linux to new HDD

2002-11-25 Thread Statu Nascendi
It's easier if you boot from a rescue disk, then run lilo...
- Original Message -
From: Russell Coker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Debian-ISP [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 12:43 PM
Subject: Re: transfering linux to new HDD


 On Mon, 25 Nov 2002 08:40, Craig wrote:
  I have transfered a current linux install across to a new
  drive using the cp -a command. I need to now chroot the
  existing install to the new hdd and tell lilo to boot
  from there.
 
  How do I do this from a remote location ?

 If your new drive will be bootable as a secondary drive and you are not
going
 to remove the primary drive then this should be easy.

 If you are going to make the new drive /dev/hda afterwards then it'll be
more
 difficult, check the bios= option in /etc/lilo.conf...

 --
 http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
 http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
 http://www.coker.com.au/postal/Postal SMTP/POP benchmark
 http://www.coker.com.au/~russell/  My home page


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




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




Re: transfering linux to new HDD

2002-11-25 Thread Jeremy C. Reed
Craig, my solution is at bottom.

 It's easier if you boot from a rescue disk, then run lilo...

How do you do this remotely?

   I have transfered a current linux install across to a new
   drive using the cp -a command. I need to now chroot the

Hopefully, the cp -a worked properly.

   existing install to the new hdd and tell lilo to boot
   from there.

What disk?

   How do I do this from a remote location ?
 
  If your new drive will be bootable as a secondary drive and you are not
 going
  to remove the primary drive then this should be easy.
 
  If you are going to make the new drive /dev/hda afterwards then it'll be
 more
  difficult, check the bios= option in /etc/lilo.conf...

If hda is original and hdb is the new disk, I do:

/mnt/root/sbin/lilo -C /etc/lilo.conf-hdb-mirror -r /mnt/root -v -b /dev/hdb

(Note that chroot(1) is not needed.)

--- /etc/lilo.conf  Wed Jul 10 13:08:37 2002
+++ /etc/lilo.conf-hdb-mirror   Mon Aug 19 20:02:18 2002
@@ -1,4 +1,6 @@
 boot=/dev/hda
+disk=/dev/hdb
+  bios=0x80
 map=/boot/map
 install=/boot/boot.b
 prompt

  Jeremy C. Reed
..
 ISP-FAQ.com -- find answers to your questions
 http://www.isp-faq.com/


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




transfering linux to new HDD

2002-11-24 Thread Craig
Hi Guys

I have transfered a current linux install across to a new
drive using the cp -a command. I need to now chroot the
existing install to the new hdd and tell lilo to boot
from there.

How do I do this from a remote location ?

Thanks
Craig


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




Re: transfering linux to new HDD

2002-11-24 Thread CaT
On Mon, Nov 25, 2002 at 09:40:35AM +0200, Craig wrote:
 Hi Guys
 
 I have transfered a current linux install across to a new
 drive using the cp -a command. I need to now chroot the
 existing install to the new hdd and tell lilo to boot
 from there.
 
 How do I do this from a remote location ?

* ssh in
* mount the relevant new partitions as they would appear in the new
  setup
* chroot to the new root (/) filesystem
* make sure you have an entry for the old setup in the new lilo.conf
* lilo -v
* exit
* reboot

You might want to start screen before you do this (but after you ssh in ;).

That should do it. I don't think you'll get any interference from the
old lilo install. You may also want to play with the -R lilo option.

This is all from memory but you should be fine. Just keep cool.

-- 
All people are equal,
But some are more equal then others.
- George W. Bush Jr, President of the United States
  September 21, 2002 (Abridged version of security speech)


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