Re: cloning freebsd from desktop to laptop computer.

2006-03-02 Thread Dmitri Pisarev

Nikolas Britton wrote:


On 2/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 


Dmitri Pisarev wrote:
   


Nikolas Britton wrote:

 


On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:


   


I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
from USB flash supported etc. 40G HDD) and a desktop computer running
FreeBSD 6.0(athlon 3200+, WD 80G HDD).
I need to install freebsd on to my laptop computer.
The question is, is it posible to copy the freebsd patition to the
laptop computer somehow, so it would remain bootable? I tried to copy my
ad0s2(my BSD partition) to ad0s3 on laptop, using dd.exe for windows,
and all i get is Boot error. I'm using freebsd bootloader on desktop,
and BootMagic on laptop, could that be a problem?
any help or suggestions are appreciated.
 


I had the same problem (ThinkPad X30) - which I solved in a great way
with VMware (www.vmware.com). Speed of FreeBSD is about 80% compared to
native installation and stability is so far (2-3 months) rock solid.

You can do a minimal install within VMware, then mount the desktop drive
(via the network) and do dump/restore.

   



Better yet... use pqmagic to resize / setup the disk (if not already
done). Then in Windows Install and run VMware Workstation 5:

Click on File  New  Virtual Machine.
Click Next.
Select Custom.
Click Next.
Select Other, Version: FreeBSD
Click Next.
Click Next.
Click Next.
Click Next.
Select Use a physical disk.
Click Ok
 


Select Usage: Use individual partitions
 


Doesn't work. Had to use entire disk instead.


Select Partition you want FreeBSD installed on.
Click Finish.
--
Click on Edit virtual machine settings
Select CD-ROM (IDE 1:0), Change Connection to Use ISO Image
(If CD-ROM (IDE 1:0) is not in the list then click on Add, Next,
DVD/CD-ROM Drive, select Use ISO image)
Click on Browse
Find and Select: 6.1-BETA2-i386-disc2.iso

ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/6.1/6.1-BETA2-i386-disc2.iso

Click on ok.
Click on start this virtual machine.
Install FreeBSD. (select use boot loader when asked)
FreeBSD should now be installed on your disk.
Reboot and Configure BootMagic, pointing it to FreeBSD partition.
Boot into FreeBSD.


--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


 


Thank you for the wonderful advice! Had no idea of that feature before!
Now everything works as it's supposed to.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-28 Thread Nikolas Britton
On 2/27/06, Nikolas Britton [EMAIL PROTECTED] wrote:

[snipped]

 Click on Browse
 Find and Select: 6.1-BETA2-i386-disc2.iso

 ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/6.1/6.1-BETA2-i386-disc2.iso


That should be disc 1, sorry:
ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/6.1/6.1-BETA2-i386-disc1.iso
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-27 Thread Dmitri Pisarev

Nikolas Britton wrote:


On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
 


Nikolas Britton wrote:

   


On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:


 


I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
   


from USB flash supported etc. 40G HDD) and a desktop computer running
 


FreeBSD 6.0(athlon 3200+, WD 80G HDD).
I need to install freebsd on to my laptop computer.
The question is, is it posible to copy the freebsd patition to the
laptop computer somehow, so it would remain bootable? I tried to copy my
ad0s2(my BSD partition) to ad0s3 on laptop, using dd.exe for windows,
and all i get is Boot error. I'm using freebsd bootloader on desktop,
and BootMagic on laptop, could that be a problem?
any help or suggestions are appreciated.


   


The simple way would be to buy a 2.5 to 3.5 IDE adaptor. Pull the
drive out of the laptop and put it in your desktop to Install FreeBSD.

http://froogle.google.com/froogle?q=2.5%203.5%20IDE%20Adapter


 


Thank you for the reply!
I have already been replacing my HDD once, and it's a real problem for
me to disassemble it, takes hell of a lot of time, so I would like to
avoid it.
So, is there a way to clone partition from one system to another and
make it work?
Also, does anyone know, will my laptop netboot(PXE or smth?) from Xircom
100/10 PCMCIA adapter?
   



Will the BIOS let you do this?
 

Do you mean the netcard BIOS or the motherboard BIOS? In system BIOS 
there's an option to boot from network. I have no idea what booting 
capabilities(PXE, netboot) my network card supports, 'll try to figure 
it out somehow.


 


Here's a list of posible ways I'm considering to installing freebsd on
to my laptop:
1)Buy the toshiba floppy drive(difficult to find in russia...).
   



Any USB Floppy Drive should work.
 

Ha! I wish! Portege's only recognise their own booting peripherals as 
boot devices((( As I was told at least...


 


2)Boot over the network.
3)Pull the drive out and install BSD on the desktop.
4)Clone partition somehow??
5)Any other way? I know how to install Linux without booting up, is the
same posible with FreeBSD?
   



How do you do it with Linux?... and re-explane how you tired to do it
with FreeBSD.


 


Tool called loading lets you do it. Somebody already has replied.

and re-explane how you tired to do it
with FreeBSD.
1)downloaded tool dd for windows.
2)on desktop issued the following: dd.exe if=//?/mydrive_bsdparition(don't 
remember the syntaxis) of=g:\image.img
3)copy the image file over wi-fi to my laptop.
4)on laptop, use dd once again: dd.exe if=c:\image.img 
of=//?/mydrive_mydesiredbsdpartition.
5)tried to boot newly copied partition using Bootmagic and got Boot error. 
Could Bootmagic be the problem??





--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-27 Thread Dmitri Pisarev

[EMAIL PROTECTED] wrote:


On 2/26/06, Nikolas Britton [EMAIL PROTECTED] wrote:
 


On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
   


Nikolas Britton wrote:

 


On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:


   


I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
 


from USB flash supported etc. 40G HDD) and a desktop computer running
   


FreeBSD 6.0(athlon 3200+, WD 80G HDD).
I need to install freebsd on to my laptop computer.
 



snips

 


huh? what's snips?(I'm a novice:-))


5)Any other way? I know how to install Linux without booting up, is the
same posible with FreeBSD?
 


How do you do it with Linux?... and re-explane how you tired to do it
with FreeBSD.
   



Loadlin will boot linux from any dos partition, probably ntfs (I haven't
tried that) and you can then fdisk the old windows partition, etc etc.
Might be very tricky, but with a little ingenuity one should be able
to boot linux, dump some freebsd stuff into the former winders partition
 


Hey! I still want to keep my windows partition!



(I'd bet you'd want to use grub for booting, call me old-fashioned) (I just
realised I have no idea how to newfs for ufs in linux, maybe here dd
or dump might work).

Stream of consciousness:  loadlin to linux, qemu to freebsd,


is that really neccesary? isn't there a version of qemu for windows?


mounting
the raw /dev/hda1 on freebsd and proceed from there?


Didn't grasp this step completly, sorry. what do you mean by

mounting
the raw /dev/hda1 on freebsd

? isn't it the same operation as I have been trying to do already with
dd? Re-explain please, if you can.


 If it works,
you're the bee's knees.  If you fail, though, you may never boot again,
which is why I would suggest keeping a linux partition (slice) and grub
working until you know it works.
In any case it sounds quite dangerous.  Proceed with caution.

Could loadlin be rewritten to work with any kernel?  has it been?

--
--


 




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-27 Thread [EMAIL PROTECTED]

Dmitri Pisarev wrote:

Nikolas Britton wrote:


On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
 


I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
from USB flash supported etc. 40G HDD) and a desktop computer running
FreeBSD 6.0(athlon 3200+, WD 80G HDD).
I need to install freebsd on to my laptop computer.
The question is, is it posible to copy the freebsd patition to the
laptop computer somehow, so it would remain bootable? I tried to copy my
ad0s2(my BSD partition) to ad0s3 on laptop, using dd.exe for windows,
and all i get is Boot error. I'm using freebsd bootloader on desktop,
and BootMagic on laptop, could that be a problem?
any help or suggestions are appreciated.


I had the same problem (ThinkPad X30) - which I solved in a great way 
with VMware (www.vmware.com). Speed of FreeBSD is about 80% compared to 
native installation and stability is so far (2-3 months) rock solid.


You can do a minimal install within VMware, then mount the desktop drive 
(via the network) and do dump/restore.


Iv

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-27 Thread Nikolas Britton
On 2/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Dmitri Pisarev wrote:
  Nikolas Britton wrote:
 
  On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
 
 
  I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
  from USB flash supported etc. 40G HDD) and a desktop computer running
  FreeBSD 6.0(athlon 3200+, WD 80G HDD).
  I need to install freebsd on to my laptop computer.
  The question is, is it posible to copy the freebsd patition to the
  laptop computer somehow, so it would remain bootable? I tried to copy my
  ad0s2(my BSD partition) to ad0s3 on laptop, using dd.exe for windows,
  and all i get is Boot error. I'm using freebsd bootloader on desktop,
  and BootMagic on laptop, could that be a problem?
  any help or suggestions are appreciated.

 I had the same problem (ThinkPad X30) - which I solved in a great way
 with VMware (www.vmware.com). Speed of FreeBSD is about 80% compared to
 native installation and stability is so far (2-3 months) rock solid.

 You can do a minimal install within VMware, then mount the desktop drive
 (via the network) and do dump/restore.


Better yet... use pqmagic to resize / setup the disk (if not already
done). Then in Windows Install and run VMware Workstation 5:

Click on File  New  Virtual Machine.
Click Next.
Select Custom.
Click Next.
Select Other, Version: FreeBSD
Click Next.
Click Next.
Click Next.
Click Next.
Select Use a physical disk.
Click Ok
Select Usage: Use individual partitions
Select Partition you want FreeBSD installed on.
Click Finish.
--
Click on Edit virtual machine settings
Select CD-ROM (IDE 1:0), Change Connection to Use ISO Image
(If CD-ROM (IDE 1:0) is not in the list then click on Add, Next,
DVD/CD-ROM Drive, select Use ISO image)
Click on Browse
Find and Select: 6.1-BETA2-i386-disc2.iso

ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/6.1/6.1-BETA2-i386-disc2.iso

Click on ok.
Click on start this virtual machine.
Install FreeBSD. (select use boot loader when asked)
FreeBSD should now be installed on your disk.
Reboot and Configure BootMagic, pointing it to FreeBSD partition.
Boot into FreeBSD.


--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-26 Thread Nikolas Britton
On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
 I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
 from USB flash supported etc. 40G HDD) and a desktop computer running
 FreeBSD 6.0(athlon 3200+, WD 80G HDD).
 I need to install freebsd on to my laptop computer.
 The question is, is it posible to copy the freebsd patition to the
 laptop computer somehow, so it would remain bootable? I tried to copy my
 ad0s2(my BSD partition) to ad0s3 on laptop, using dd.exe for windows,
 and all i get is Boot error. I'm using freebsd bootloader on desktop,
 and BootMagic on laptop, could that be a problem?
 any help or suggestions are appreciated.

The simple way would be to buy a 2.5 to 3.5 IDE adaptor. Pull the
drive out of the laptop and put it in your desktop to Install FreeBSD.

http://froogle.google.com/froogle?q=2.5%203.5%20IDE%20Adapter


--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-26 Thread Dmitri Pisarev

Nikolas Britton wrote:


On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
 


I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
from USB flash supported etc. 40G HDD) and a desktop computer running
FreeBSD 6.0(athlon 3200+, WD 80G HDD).
I need to install freebsd on to my laptop computer.
The question is, is it posible to copy the freebsd patition to the
laptop computer somehow, so it would remain bootable? I tried to copy my
ad0s2(my BSD partition) to ad0s3 on laptop, using dd.exe for windows,
and all i get is Boot error. I'm using freebsd bootloader on desktop,
and BootMagic on laptop, could that be a problem?
any help or suggestions are appreciated.
   



The simple way would be to buy a 2.5 to 3.5 IDE adaptor. Pull the
drive out of the laptop and put it in your desktop to Install FreeBSD.

http://froogle.google.com/froogle?q=2.5%203.5%20IDE%20Adapter


--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


 


Thank you for the reply!
I have already been replacing my HDD once, and it's a real problem for 
me to disassemble it, takes hell of a lot of time, so I would like to 
avoid it.
So, is there a way to clone partition from one system to another and 
make it work?
Also, does anyone know, will my laptop netboot(PXE or smth?) from Xircom 
100/10 PCMCIA adapter?
Here's a list of posible ways I'm considering to installing freebsd on 
to my laptop:

1)Buy the toshiba floppy drive(difficult to find in russia...).
2)Boot over the network.
3)Pull the drive out and install BSD on the desktop.
4)Clone partition somehow??
5)Any other way? I know how to install Linux without booting up, is the 
same posible with FreeBSD?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-26 Thread Nikolas Britton
On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
 Nikolas Britton wrote:

 On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
 
 
 I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
 from USB flash supported etc. 40G HDD) and a desktop computer running
 FreeBSD 6.0(athlon 3200+, WD 80G HDD).
 I need to install freebsd on to my laptop computer.
 The question is, is it posible to copy the freebsd patition to the
 laptop computer somehow, so it would remain bootable? I tried to copy my
 ad0s2(my BSD partition) to ad0s3 on laptop, using dd.exe for windows,
 and all i get is Boot error. I'm using freebsd bootloader on desktop,
 and BootMagic on laptop, could that be a problem?
 any help or suggestions are appreciated.
 
 
 
 The simple way would be to buy a 2.5 to 3.5 IDE adaptor. Pull the
 drive out of the laptop and put it in your desktop to Install FreeBSD.
 
 http://froogle.google.com/froogle?q=2.5%203.5%20IDE%20Adapter
 
 
 Thank you for the reply!
 I have already been replacing my HDD once, and it's a real problem for
 me to disassemble it, takes hell of a lot of time, so I would like to
 avoid it.
 So, is there a way to clone partition from one system to another and
 make it work?
 Also, does anyone know, will my laptop netboot(PXE or smth?) from Xircom
 100/10 PCMCIA adapter?

Will the BIOS let you do this?

 Here's a list of posible ways I'm considering to installing freebsd on
 to my laptop:
 1)Buy the toshiba floppy drive(difficult to find in russia...).

Any USB Floppy Drive should work.

 2)Boot over the network.
 3)Pull the drive out and install BSD on the desktop.
 4)Clone partition somehow??
 5)Any other way? I know how to install Linux without booting up, is the
 same posible with FreeBSD?

How do you do it with Linux?... and re-explane how you tired to do it
with FreeBSD.




--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-26 Thread [EMAIL PROTECTED]
On 2/26/06, Nikolas Britton [EMAIL PROTECTED] wrote:
 On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
  Nikolas Britton wrote:
 
  On 2/26/06, Dmitri Pisarev [EMAIL PROTECTED] wrote:
  
  
  I've got laptop Toshiba Portege 3480CT(no floppy, no CD-ROM, no booting
  from USB flash supported etc. 40G HDD) and a desktop computer running
  FreeBSD 6.0(athlon 3200+, WD 80G HDD).
  I need to install freebsd on to my laptop computer.

snips

  5)Any other way? I know how to install Linux without booting up, is the
  same posible with FreeBSD?

 How do you do it with Linux?... and re-explane how you tired to do it
 with FreeBSD.

Loadlin will boot linux from any dos partition, probably ntfs (I haven't
tried that) and you can then fdisk the old windows partition, etc etc.
Might be very tricky, but with a little ingenuity one should be able
to boot linux, dump some freebsd stuff into the former winders partition
(I'd bet you'd want to use grub for booting, call me old-fashioned) (I just
realised I have no idea how to newfs for ufs in linux, maybe here dd
or dump might work).

Stream of consciousness:  loadlin to linux, qemu to freebsd, mounting
the raw /dev/hda1 on freebsd and proceed from there?  If it works,
you're the bee's knees.  If you fail, though, you may never boot again,
which is why I would suggest keeping a linux partition (slice) and grub
working until you know it works.
In any case it sounds quite dangerous.  Proceed with caution.

Could loadlin be rewritten to work with any kernel?  has it been?

--
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cloning freebsd from desktop to laptop computer.

2006-02-26 Thread [EMAIL PROTECTED]
On 2/26/06, Jordan Mendler [EMAIL PROTECTED] wrote:
 I'm not sure if a similar tool exists for the
 BSD bootloader, but there might be one.

man 8 boot0cfg

http://tinyurl.com/jsyuz
(assuming I can type, which I cannot afford to do)

--
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cloning FreeBSD installations

2005-07-14 Thread lars

Peter wrote:

Hi all,

I've some PC with identical HW with FreeBSD 5.4. I'm looking for a way to
clone FreeBSD installations from one PC to another.
I've read in mailing list about script clone.sh. The script copies the MBR
and  disklabel from ad0 to ad1 and then creates the file systems and copies
data with dump and restore. The cloned configuration file /etc/rc.conf is
edited using 'sed' to update the ip address and hostname.

Have you this script or something similar? Is the possible send me that?

Thanks a lot,
Peter Macko

You can also use ghost4unix, check www.feyrer.de/g4u
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cloning FreeBSD installations

2005-07-14 Thread Steve Quinn
Peter Macko wrote

 Hi all,
 
 I've some PC with identical HW with FreeBSD 5.4. I'm looking for a way to
 clone FreeBSD installations from one PC to another.
 I've read in mailing list about script clone.sh. The script copies the MBR
 and  disklabel from ad0 to ad1 and then creates the file systems and copies
 data with dump and restore. The cloned configuration file /etc/rc.conf is
 edited using 'sed' to update the ip address and hostname.
 
 Have you this script or something similar? Is the possible send me that?
 
 Thanks a lot,
 Peter Macko


Hi Peter

I use G4U from http://www.feyrer.de/g4u/ quite a bit for backup's and cloning
It's very easy to setup and use

If you choose to go with G4U, take note of the advantages of Zeroing out 
unused blocks as it
makes a HUGE difference in backup file size

I talk about this in sickening detail on this page :-)
http://www.digitalissues.co.uk/html/os/misc/partimage.html#22

I hope this helps

Namaste

Steve Quinn


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cloning FreeBSD installations

2005-07-14 Thread Marshall Pierce


On Jul 14, 2005, at 8:34, Peter wrote:


Hi all,

I've some PC with identical HW with FreeBSD 5.4. I'm looking for a  
way to

clone FreeBSD installations from one PC to another.
I've read in mailing list about script clone.sh. The script copies  
the MBR
and  disklabel from ad0 to ad1 and then creates the file systems  
and copies
data with dump and restore. The cloned configuration file /etc/ 
rc.conf is

edited using 'sed' to update the ip address and hostname.

Have you this script or something similar? Is the possible send me  
that?


Thanks a lot,
Peter Macko



Try the Frisbee package: http://www.emulab.net/software.php3
For what you need, it should be very easy to figure out how to use  
Frisbee from the
README. Frisbee is very fast at distributing OS images (read the  
USENIX paper on it,
if you're sufficiently interested), and scales extremely well when  
sending out an

image to multiple clients at once.

-Marshall Pierce

Re: Cloning FreeBSD installations?

2003-10-30 Thread Nico Meijer
Hi ewald,

o) Is there a way to clone one machine to another one over the net,
i.e. by writing an image file from one machine to a server and then
setting up the other machines from that image?
http://www.feyrer.de/g4u/

o) Is there a way to clone FreeBSD installations by copying the entire
FreeBSD slice to another drive (I thought about installing the
harddisks of the other machines in the master machines and then
copying the installtion) (Is Knoppix capable of doing this?)
If the disks are indeed identical, set up one disk the way you like; 
boot into single user mode (boot -s) and dd away (as in `dd if=/dev/ad0 
of=/dev/ad2 bs=[whatever]`).

Maybe experiment a bit with dd's block size. I've had great results with 
Maxtor DiamondMax Plus 8 40Gb disks and a blocksize of 512k. Takes about 
15 minutes.

If you're indeed running IDE disks, put both disks on their own IDE 
controller.

HTH... Nico

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cloning FreeBSD installations?

2003-10-30 Thread Malcolm Kay
On Thu, 30 Oct 2003 19:49, [EMAIL PROTECTED] wrote:
 Hi,

 I'm about to set up several identical machines (identical hardware
 both in terms of processor, harddisk, LAN etc.) with FreeBSD 4.9. The
 only difference between these machines is they're running under
 different IP-addresses - all the rest (kernel, software,...) should be
 identical.


I suggest you probably also want different host names.
I had a similar task to create clones of a machine 'phoenix00'
as machines 'phoenix01' to 'phoenix14' for which I wrote (and used)
the attached script.

The original machine had ip 192.168.3.237 and the clones were to have ip
addresses in the range 192.168.3.211 to 192.168.3.249

The original system is in partitions ad0s1a, ad0s1e, ad0s1f and ads1g with
swap on ad01b.

To use the script attach the (identical) drive to as ad1 to 'phoenix00'
and call the script (as root):-
(There is no secondary IDE port on the machines in question which might have 
been somewhat faster)
 
# ./clone.sh ip mach
where ip is the last group for the required ip and mach is the numeric part
of the clone host name 'phoenixNN'.

The script copies the MBR and disklabel from ad0 to ad1 and then creates the 
file systems and copies data with dump and restore. The cloned configuration
file /etc/rc.conf is edited using 'sed' to update the ip address and hostname.

Plug the cloned disk into the new machine (as ad0) and it should boot without 
problems (remembering to fix master/slave links on the disk).

Adapt, use and enjoy.

 In order to keep installation effort at a minimum I'm looking for a
 way to clone FreeBSD installations from one machine to another.

 To be specific:

 o) Is there a way to clone one machine to another one over the net,
 i.e. by writing an image file from one machine to a server and then
 setting up the other machines from that image?


Probably but would need more preparatory work.

 o) Is there a way to clone FreeBSD installations by copying the entire
 FreeBSD slice to another drive (I thought about installing the
 harddisks of the other machines in the master machines and then
 copying the installtion) (Is Knoppix capable of doing this?)


I don't know Knoppix but if you have large disks any literal byte to byte 
disk copying will take quite a while. Should also be possible with dd
but if the source is mounted rw at the time the copy will not appear to be 
clean when booted in the new machine.


Malcolm Kay___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cloning FreeBSD

2002-07-24 Thread Jerry McAllister

 
 On Tue, 2002-07-23 at 06:50, Jack L. Stone wrote:
  At 12:31 PM 7.23.2002 -0400, Bertel, Markus R wrote:
 23
  Jul 02
  
  Dear Sir/Ma'am
  
   We have been using FreeBSD for a few years and have been so far very
  satisfied in its performance.  We would like to make a back up of the hard
  drive that has FreeBSD and its configuration.  Is there a disk cloning
  software that would work and be compatable with FreeBSD where we could copy
  from one disk to another disk?  Thank you for your input.
  
  Regards
  Markus R Bertel
  
  See DD(1) to copy an exact image to another HD. Be aware that HD #2 (copy
  to) needs to be equal to or larger than HD #1 (copy from).
 
 What device name would I use? Let's say I have two SCSI drives. Would I
 use /dev/da0 and /dev/da1, or /dev/da0s1 and /dev/da1s1?

How are they normally mounted?   Use that or preferably either
raid mirroring for a complete mirror or dump/restore for backups.

jerry
 
 -- 
 
   Gary Dunn
   Open Slate Project
   http://www.aloha.com/~knowtree/
   Honolulu
   registered Linux user #273809
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Cloning FreeBSD

2002-07-23 Thread Jack L. Stone

At 12:31 PM 7.23.2002 -0400, Bertel, Markus R wrote:
   23
Jul 02

Dear Sir/Ma'am

 We have been using FreeBSD for a few years and have been so far very
satisfied in its performance.  We would like to make a back up of the hard
drive that has FreeBSD and its configuration.  Is there a disk cloning
software that would work and be compatable with FreeBSD where we could copy
from one disk to another disk?  Thank you for your input.

Regards
Markus R Bertel

See DD(1) to copy an exact image to another HD. Be aware that HD #2 (copy
to) needs to be equal to or larger than HD #1 (copy from).

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Cloning FreeBSD

2002-07-23 Thread Jerry McAllister

Hi,

 Dear Sir/Ma'am
 
  We have been using FreeBSD for a few years and have been so far very
 satisfied in its performance.  We would like to make a back up of the hard
 drive that has FreeBSD and its configuration.  Is there a disk cloning
 software that would work and be compatable with FreeBSD where we could copy
 from one disk to another disk?  Thank you for your input.

If you just want to have a backup kept on disk, use dump(8) 
(and restore(8) if needed).  
Just dump to a file on to the other disk using dump with the -f flag.
Such as dump 0af /bakdisk/dump_of_root /
and dump 0af /bakdisk/dump_of_home /home
or whatever file systems you have and want to back up.

The dump and restore utillities know how to keep file info like owners
and links, etc properly and are easy to use and reliable.

If what you are asking about is keeping an ongoing mirror of the disk
then you need to check out either hardware or software raid support.

jerry

 
 Regards
 Markus R Bertel
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Cloning FreeBSD

2002-07-23 Thread Gary Dunn

On Tue, 2002-07-23 at 06:50, Jack L. Stone wrote:
 At 12:31 PM 7.23.2002 -0400, Bertel, Markus R wrote:
  23
 Jul 02
 
 Dear Sir/Ma'am
 
  We have been using FreeBSD for a few years and have been so far very
 satisfied in its performance.  We would like to make a back up of the hard
 drive that has FreeBSD and its configuration.  Is there a disk cloning
 software that would work and be compatable with FreeBSD where we could copy
 from one disk to another disk?  Thank you for your input.
 
 Regards
 Markus R Bertel
 
 See DD(1) to copy an exact image to another HD. Be aware that HD #2 (copy
 to) needs to be equal to or larger than HD #1 (copy from).

What device name would I use? Let's say I have two SCSI drives. Would I
use /dev/da0 and /dev/da1, or /dev/da0s1 and /dev/da1s1?

-- 

  Gary Dunn
  Open Slate Project
  http://www.aloha.com/~knowtree/
  Honolulu
  registered Linux user #273809

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message