Re: Cloning a FreeBSD system
Stephen Cook wrote: On 3/2/2012 11:57 PM, Shane Ambler wrote: On 28/02/2012 03:24, Stephen Cook wrote: I have FreeBSD 9.0 installed as a VirtualBox guest, and I plan on cloning it repeatedly to set up a fake network for me to toy with (e.g. setting up clusters of replicated databases, web server pools, etc). Another option to look at is using FreeBSD's Jails. Handbook chapter 16 Basically you can setup multiple jails on the machine that use the kernel of the base system (so it's not an entire emulated machine) but each jail has it's own environment, apps etc. I read up on jails and I am impressed, I had a vague idea about them but they are apparently a lot more powerful than I thought. This will get some use from me in the future when I'm setting up real servers. However, for what I'm currently doing, I want to stick with a bunch of VirtualBox VMs so I can simulate database failover by killing the VM in rude way, dynamically throw another machine into the mix, etc. Thanks! -- Stephen Cloning or duplicating a running system using dump/restore http://forums.freebsd.org/showthread.php?t=11680 You should check out the qjail port for simple jail cloning. Only takes 30 seconds to clone a jail. http://qjail.sourceforge.net/ Both vm's and jails are targeted by ip address, killing one results in same outcome on the network no matter which one you use. I don't use Virtual Box but if it does not have a dump/restore function then cloning at that level is not possible. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning a FreeBSD system
On 28/02/2012 03:24, Stephen Cook wrote: Hello all! I'm relatively new to FreeBSD but I'm enjoying it so far. I have FreeBSD 9.0 installed as a VirtualBox guest, and I plan on cloning it repeatedly to set up a fake network for me to toy with (e.g. setting up clusters of replicated databases, web server pools, etc). Another option to look at is using FreeBSD's Jails. Handbook chapter 16 Basically you can setup multiple jails on the machine that use the kernel of the base system (so it's not an entire emulated machine) but each jail has it's own environment, apps etc. --- Shane Ambler FreeBSD (at) ShaneWare (dot) Biz http://ShaneWare.Biz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning a FreeBSD system
On 3/2/2012 11:57 PM, Shane Ambler wrote: On 28/02/2012 03:24, Stephen Cook wrote: I have FreeBSD 9.0 installed as a VirtualBox guest, and I plan on cloning it repeatedly to set up a fake network for me to toy with (e.g. setting up clusters of replicated databases, web server pools, etc). Another option to look at is using FreeBSD's Jails. Handbook chapter 16 Basically you can setup multiple jails on the machine that use the kernel of the base system (so it's not an entire emulated machine) but each jail has it's own environment, apps etc. I read up on jails and I am impressed, I had a vague idea about them but they are apparently a lot more powerful than I thought. This will get some use from me in the future when I'm setting up real servers. However, for what I'm currently doing, I want to stick with a bunch of VirtualBox VMs so I can simulate database failover by killing the VM in rude way, dynamically throw another machine into the mix, etc. Thanks! -- Stephen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning a FreeBSD system
On 2/27/12 5:54 PM, Stephen Cook wrote: Hello all! I'm relatively new to FreeBSD but I'm enjoying it so far. I have FreeBSD 9.0 installed as a VirtualBox guest, and I plan on cloning it repeatedly to set up a fake network for me to toy with (e.g. setting up clusters of replicated databases, web server pools, etc). [snip] 3) Create new SSH keys 3a) For host keys, I can delete the existing ones in /etc/ssh/ and reboot, is there a better way? 3b) Should I bother changing the SSH keys for any users I have? It is basically one user (I use to log in with) which will be the same across the board anyway. Why bother changing keys if this is only a fake network for you to toy with ? Let them be. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning a FreeBSD system
On Mon, Feb 27, 2012 at 10:54 AM, Stephen Cook scli...@gmail.com wrote: 2a) I saw (on the internet) some people having problems because VirtualBox generates a new MAC address for cloned machines, which somehow screws up the naming of the network interfaces (e.g. they get renumbered, thereby ignoring any configuration you have set up). Now I can't find it anymore, at least not for FreeBSD. Some Linux forums have info about /etc/udev/rules.d/70-**persistent-net.rules which doesn't exist in FreeBSD as far as I can tell. Is this a concern? I don't seem to be having a problem but TBH I'd rather understand what is going on than just be lucky. You can set the MAC address statically in the VB machine. I don't know if it changes it by cloning a system, but even if it does you can change to what you want even with the GUI tools. FreeBSD doesn't use udev, and you should be thankful for it. What a nightmare when you want to do advanced things with your NIC's. What I'm guessing your reading about are people who have multiple nic's in the Vbox guest, and upon cloning mac addresses are changed for the devices. Since Linux device detection doesn't enumerate things the same way each time they created udev so devices would appear to have this. Well as you've seen evidence of, this doesn't work so well when tryin to script things on unknown devices. All this trouble to save a few seconds of boot time. 3) Create new SSH keys 3a) For host keys, I can delete the existing ones in /etc/ssh/ and reboot, is there a better way? ssh-keygen(1) is the typical method. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning a FreeBSD system
On 2/27/12 7:05 PM, Adam Vande More wrote: On Mon, Feb 27, 2012 at 10:54 AM, Stephen Cook scli...@gmail.com wrote: 3) Create new SSH keys 3a) For host keys, I can delete the existing ones in /etc/ssh/ and reboot, is there a better way? ssh-keygen(1) is the typical method. Or just delete the existing keys and sshd will recreate them at first boot ;) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning a FreeBSD system
On Mon, Feb 27, 2012 at 10:21 AM, Damien Fleuriot m...@my.gd wrote: ssh-keygen(1) is the typical method. Or just delete the existing keys and sshd will recreate them at first boot ;) No, sshd will not create the keys. They are created by /etc/rc.d/sshd, which invokes ssh-keygen if it doesn't find the key files. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning question
On Wed, 26 May 2010 22:33:16 -0400, Steve Bertrand st...@ipv6canada.com wrote: I've written a few howto's on backup/restore/cloning in the past, but now I have a question that I hope to have quickly answered. I'm not looking for criticism on my approach, only on whether it will work. With that said, I'll lay out my scenario and my questions. Scenario: - live web server (300 domains), shut the box down and booted up a copy of the system on new hardware - changed the normal system items (nic, fstab etc) - new box is running fine under old system, but I need to transfer the old system data (all of it...*all* data) to the new disk sub-structure - new box has RAID card, but not compatible w/FBSD - new box has had RAID card disabled, so new disks show up as standard adX drives Questions: - while running the 'new' box under the 'old' system, can I: --- atacontrol create RAID1 ad4 ad6 --- fdisk --- label: to items under /mnt, as to prepare for copy - stop all services (or go into single-user), and dump each slice from orig to new ...if so, please advise of the dump command that I'd be using. Normally I'd use rsync, but this situation can sustain some downtime to ensure a complete and utter mirror. If you want to use dump/restore to copy the root partition from ad0s1a to ad4s1a you can use: # newfs -L NEWROOT /dev/ad4s1a # mount -t ufs /dev/ufs/NEWROOT /mnt # cd /mnt # dump -0auL -C 32 -f - / | restore -rf - When this is run in single-user mode, the partiion mounted at /mnt should have a copy of the root filesystem. Repeat the dump-restore pipe for other filesystems, e.g.: # newfs -L NEWDATA /dev/ad4s2a # mount -t ufs /dev/ufs/NEWDATA /mnt/data # cd /mnt/data # dump -0auL -C 32 -f - /data | restore -rf - # newfs -L NEWHOME /dev/ad4s3a # mount -t ufs /dev/ufs/NEWHOME /mnt/home # cd /mnt/home # dump -0auL -C 32 -f - /home | restore -rf - ... When you have dumped all your filesystems to properly mounted graft points under /mnt, update /mnt/etc/fstab and boot the new disk. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning to different disks.
Grant Peel wrote: Hi all, I have serveral machines that are running different versions of FreeBSD. Each machine only has 1 hard disk, but they all have a CD ROM and USB available. I have built a pristine system with all packages and ports installed that I need. I am now wanting to clone this to all the machines. The dificulty being that they all have various Disk sizes and interfaces (i.e. SCSI 3, SAS, etc). I am wondering how everyone else might handle this situation. BTW, The new build uses a standard Generic kernel, i386 build. I was thinking of: Booting with a live CD, refdisking, labeling, then using dumps from memory stick. Comments please, -Grant Done that and it works. Don't forget also to install the boot blocks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning to different disks.
Thanks Sir! What is the easiest way to make sure the new disk is bootable. Also, it just occured to mewe have a few different versions of SCSI drives SCSI-2 SAS etc. Can I assume the the da driver will handle all these OK...ie. should not see any fstab problems? -Grant - Original Message - From: Manolis Kiagias son...@otenet.gr To: Grant Peel gp...@thenetnow.com Cc: freebsd-questions@freebsd.org Sent: Wednesday, July 01, 2009 3:40 PM Subject: Re: Cloning to different disks. Grant Peel wrote: Hi all, I have serveral machines that are running different versions of FreeBSD. Each machine only has 1 hard disk, but they all have a CD ROM and USB available. I have built a pristine system with all packages and ports installed that I need. I am now wanting to clone this to all the machines. The dificulty being that they all have various Disk sizes and interfaces (i.e. SCSI 3, SAS, etc). I am wondering how everyone else might handle this situation. BTW, The new build uses a standard Generic kernel, i386 build. I was thinking of: Booting with a live CD, refdisking, labeling, then using dumps from memory stick. Comments please, -Grant Done that and it works. Don't forget also to install the boot blocks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning to different disks.
Each machine only has 1 hard disk, but they all have a CD ROM and USB available. I have built a pristine system with all packages and ports installed that I need. I am now wanting to clone this to all the machines. The dificulty being that they all have various Disk sizes and interfaces (i.e. SCSI 3, SAS, etc). there is no difficulty. tar up your set to file, on disk or available on network (NFS for example) boot from live CD, make disklabels, do newfs and untar your set on each machine, then change /etc/rc.conf - like hostname and IP ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning to different disks.
What is the easiest way to make sure the new disk is bootable. bsdlabel -B disk (or disks1 and fdisk -B disk if you use MBR partitions at all). Also, it just occured to mewe have a few different versions of SCSI drives SCSI-2 SAS etc. this is no difference Can I assume the the da driver will handle all these OK...ie. should not see any fstab problems? just put right device names in fstab. nothing more ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning to different disks.
Grant Peel wrote: Thanks Sir! What is the easiest way to make sure the new disk is bootable. Also, it just occured to mewe have a few different versions of SCSI drives SCSI-2 SAS etc. Can I assume the the da driver will handle all these OK...ie. should not see any fstab problems? -Grant For fstab, I would consider labelling the partitions (see http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-glabel.html esp. the example at the end of the section). I am not very familiar with SCSI disks, but all should appear as 'da', the only problem is whether the drivers for the specific SCSI adapters are already in GENERIC. Otherwise, you would need to load them as modules or compile them in a custom kernel. To make sure your new disk is bootable: # fdisk -B -b /boot/boot0 /dev/da0 (use actual device name of course) or if you just need a standard MBR (no custom F1 ... F2 boot menu at start): # fdisk -B -b /boot/mbr /dev/da0 Then install boot1 and boot2 in your boot slice: # bsdlabel -B /dev/da0s1 For more information, see this handbook section: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot-blocks.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning to different disks.
Each machine only has 1 hard disk, but they all have a CD ROM and USB available. I have built a pristine system with all packages and ports installed that I need. I am now wanting to clone this to all the machines. The dificulty being that they all have various Disk sizes and interfaces (i.e. SCSI 3, SAS, etc). there is no difficulty. tar up your set to file, on disk or available on network (NFS for example) boot from live CD, make disklabels, do newfs and untar your set on each machine, then change /etc/rc.conf - like hostname and IP If he set up the original on the box with the smallest drive really he need only make an image with dd on to a usb drive, boot to a live disk on the new machine, and write the image to the new disk. On disks with compatible interfaces you could temporarily install the drive and skip the usb portion. After the write he'll need to mount the new drive and modify rc.conf and fstab to the correct settings -- other then that he should be good. No disk(re)labeling needed. Sure you might be out some space if the other drives are substantially bigger but you can always add the partitions later. Depends if time is of the essence or not I guess. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cloning a gmirrored hard drive
Sasa Stupar wrote: Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is this possible or is it better to switch back from RAID 1 to single disk system and then do cloning with dump/restore (or dd) and then make RAID 1 again? You'll need to dump/restore (not dd) from an old drive to a new one. signature.asc Description: OpenPGP digital signature
Re: Cloning a gmirrored hard drive
Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is gmirror remove yourmirrorname /dev/oneofdisk shutdown and replace this one with 160GB boot single user make gmirror with this new 160GB drive (only one drive now so not real mirror) newfs and copy all data make it bootable, shutdown, remove second 40GB drive, add second 160GB drive, boot and then gmirror insert yournewmirror seconddrive that's all. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning a gmirrored hard drive
Stupid question: can't you use growfs on the existing gmirror (after replace /dev/oneofdisk, resync, replace /dev/otherdisk, resync) ? Is it mandatory to create a *new* gmirror ? Thanks On Mon, 2008-08-25 at 14:37 +0200, Wojciech Puchar wrote: Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is gmirror remove yourmirrorname /dev/oneofdisk shutdown and replace this one with 160GB boot single user make gmirror with this new 160GB drive (only one drive now so not real mirror) newfs and copy all data make it bootable, shutdown, remove second 40GB drive, add second 160GB drive, boot and then gmirror insert yournewmirror seconddrive that's all. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Julien Cigar Belgian Biodiversity Platform http://www.biodiversity.be Université Libre de Bruxelles (ULB) Campus de la Plaine CP 257 Bâtiment NO, Bureau 4 N4 115C (Niveau 4) Boulevard du Triomphe, entrée ULB 2 B-1050 Bruxelles Mail: [EMAIL PROTECTED] @biobel: http://biobel.biodiversity.be/person/show/471 Tel : 02 650 57 52 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning a gmirrored hard drive
Sasa Stupar wrote: My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is this possible or is it better to switch back from RAID 1 to single disk system and then do cloning with dump/restore (or dd) and then make RAID 1 again? I use a variation of this guide[1] when I'm setting up gmirror. The last time I increased the size of the array, I removed one drive from the array (gmirror remove). I rebooted with the bigger drive. I created /dev/mirror/gm1 with the new drive. I followed the dump/restore steps from the guide, switching up the logic a little bit. I then booted the system from the new, larger mirror (gm1) with the other large disk inserted, and did a `gmirror insert'. In the process of building the new mirror on gm1, I made bigger labels in the labeling step for the ones that were filling up. [1] http://people.freebsd.org/~rse/mirror/ -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley pgpU3D7uhPgt8.pgp Description: PGP signature
Re: Cloning a gmirrored hard drive
On Monday 25 August 2008 11:50:41 am Julien Cigar wrote: Stupid question: can't you use growfs on the existing gmirror (after replace /dev/oneofdisk, resync, replace /dev/otherdisk, resync) ? Is it mandatory to create a *new* gmirror ? There is no way to resize a gmirror provider without creating a new one. You could possibly insert the new large drive into the mirror, deactivate it, make a new gmirror on it (clobbering the old one), THEN use growfs.. but that's a lot mor ecomplicated and error-prone than doing it the right way using dump/restore. If downtime is a concern then use Ivan's method below but without going into single-user--just be sure to give -L to dump. On Mon, 2008-08-25 at 14:37 +0200, Wojciech Puchar wrote: Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is gmirror remove yourmirrorname /dev/oneofdisk shutdown and replace this one with 160GB boot single user make gmirror with this new 160GB drive (only one drive now so not real mirror) newfs and copy all data make it bootable, shutdown, remove second 40GB drive, add second 160GB drive, boot and then gmirror insert yournewmirror seconddrive that's all. ___ 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 a Windows Xp single hard drive to RAID 0 array
On Sunday 21 October 2007 08:55:31 Frank Gaenger wrote: I have a system built on a Gigabyte GA-M59SLI-S5 motherboard. At present it has only one 250GB SATA hard drive. I would like to modify the system by installing two (2) SATA 320 GB drives in RAID configuration. I have read the info on your web site about cloning a hard drive to RAID configuration by using Acronis True Image software. This article is silent on the matter of getting RAID and SCSI drivers for Windows XP to use. My question is: How is the F6 requirement for loading RAID and SCSI drivers handled. I have these drivers, copied to a floppy, from the Gigabyte CD disk that came with the motherboard package. Would appreciate some guidance on this question. Thanks for the consideration. Frank er... thats a windows configuration question, that likely wont get answered well here. -- Jonathan Horne http://dfwlpiki.dfwlp.org [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 a Windows Xp single hard drive to RAID 0 array
On Sun, Oct 21, 2007 at 04:30:38PM -0500, Jonathan Horne wrote: On Sunday 21 October 2007 08:55:31 Frank Gaenger wrote: I have a system built on a Gigabyte GA-M59SLI-S5 motherboard. At present it has only one 250GB SATA hard drive. I would like to modify the system by installing two (2) SATA 320 GB drives in RAID configuration. I have read the info on your web site about cloning a hard drive to RAID configuration by using Acronis True Image software. This article is silent on the matter of getting RAID and SCSI drivers for Windows XP to use. My question is: How is the F6 requirement for loading RAID and SCSI drivers handled. I have these drivers, copied to a floppy, from the Gigabyte CD disk that came with the motherboard package. Would appreciate some guidance on this question. Thanks for the consideration. Frank er... thats a windows configuration question, that likely wont get answered well here. Actually, in a perverse way, you might actually be able to do it with FreeBSD. I think it would have to be FAT (32) partitions(slices) built on the single drive and the raid entity and not NTFS. Basically, you build the MS Filesystems using either something like Partition Magic and then booting a FreeBSD fixit from CD and using the CD based FreeBSD to copy the file systems from the single disk to the raid.I don't know if dump/restore will do it and get all the MS junk, but it might. Or you could try using dd. If you do use dd, then do it at the file system level and not the disk level. Have fun trying.If you do, let me know if it works. Anyway, if it doesn't, you haven't lost anything except a little time to experiment.You will just have to find a different way. jerry -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ 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
I clone Thinkpads all the time with G4L. I haven't used G4U but from what I gather it's what G4L is based on (either the code or the concept - not sure). You can clone everything including the recovery partition no problem. The only snag I've run into doing this is with some of the older systems that shipped with a 15 head hard disk. You can clone them all you want but it has to be to another 15 head disk. Same limitation applies regardless of the cloning software. I usually use an ftp server to store and retrieve the images but I've done it direct to the new drive via a USB enclosure also. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Richard Rice Sent: Sunday, April 08, 2007 11:09 AM To: freebsd-questions@freebsd.org Subject: Cloning Any ideas on cloning an IBM T60 Thinkpad with G4U (Ghost for You)? The T60 comes with a recovery partition. First I killdisk the drive, re-install Windows XP. Then I want to capture an image with G4U so that I can clone other T60 machines. Is this possible with G4U? My present imaging software, Imagecaster, fails. Richard ___ 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
Just because it was brought up. Can Norton Ghost, run from a floppy be used to clone a FreeBSD disk? (SCSI - SCSI) -Grant - Original Message - From: Brown, Steve To: Richard Rice ; freebsd-questions@freebsd.org Sent: Wednesday, May 23, 2007 12:31 PM Subject: RE: Cloning I clone Thinkpads all the time with G4L. I haven't used G4U but from what I gather it's what G4L is based on (either the code or the concept - not sure). You can clone everything including the recovery partition no problem. The only snag I've run into doing this is with some of the older systems that shipped with a 15 head hard disk. You can clone them all you want but it has to be to another 15 head disk. Same limitation applies regardless of the cloning software. I usually use an ftp server to store and retrieve the images but I've done it direct to the new drive via a USB enclosure also. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Richard Rice Sent: Sunday, April 08, 2007 11:09 AM To: freebsd-questions@freebsd.org Subject: Cloning Any ideas on cloning an IBM T60 Thinkpad with G4U (Ghost for You)? The T60 comes with a recovery partition. First I killdisk the drive, re-install Windows XP. Then I want to capture an image with G4U so that I can clone other T60 machines. Is this possible with G4U? My present imaging software, Imagecaster, fails. Richard ___ 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] -- Total Control Panel Login To: [EMAIL PROTECTED] Block messages from this sender (blacklist) From: [EMAIL PROTECTED] Remove this sender from my whitelist You received this message because the sender is on your whitelist. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning
On 5/23/07, Grant Peel [EMAIL PROTECTED] wrote: Just because it was brought up. Can Norton Ghost, run from a floppy be used to clone a FreeBSD disk? (SCSI - SCSI) -Grant Yup - you'll need the DOS scsi drivers, but it'll work, at the bit level. Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning
Grant Peel wrote: Just because it was brought up. Can Norton Ghost, run from a floppy be used to clone a FreeBSD disk? (SCSI - SCSI) -Grant - Original Message - From: Brown, Steve To: Richard Rice ; freebsd-questions@freebsd.org Sent: Wednesday, May 23, 2007 12:31 PM Subject: RE: Cloning I clone Thinkpads all the time with G4L. I haven't used G4U but from what I gather it's what G4L is based on (either the code or the concept - not sure). You can clone everything including the recovery partition no problem. The only snag I've run into doing this is with some of the older systems that shipped with a 15 head hard disk. You can clone them all you want but it has to be to another 15 head disk. Same limitation applies regardless of the cloning software. I usually use an ftp server to store and retrieve the images but I've done it direct to the new drive via a USB enclosure also. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Richard Rice Sent: Sunday, April 08, 2007 11:09 AM To: freebsd-questions@freebsd.org Subject: Cloning Any ideas on cloning an IBM T60 Thinkpad with G4U (Ghost for You)? The T60 comes with a recovery partition. First I killdisk the drive, re-install Windows XP. Then I want to capture an image with G4U so that I can clone other T60 machines. Is this possible with G4U? My present imaging software, Imagecaster, fails. Richard I don't see why not, as long as you choose the partition option, then very carefully install the FreeBSD MBR a little bit later. Note the difference between DOS partitions (actually slices) and FreeBSD partitions. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning a disk -large to small
On Sun, 4 Mar 2007, Grant Peel wrote: I have been researching the use of 'dd' quite a bit lately as I have had to clone a newly setup server. dump/restore is generally a better solution for cloning drives. On large drives, dd wastes a lot of time copying empty sectors. I was wondering though, if one had a newly setup disk on a 74 GB SCSI dirve, is there some know turning that can be done to clone it to a smaller drive? Say 36 GB? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK Using dump works for going from large to small partitions, too, as long as the small partition is big enough to hold all the data. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning a disk -large to small
On 04/03/07, Warren Block [EMAIL PROTECTED] wrote: On Sun, 4 Mar 2007, Grant Peel wrote: I have been researching the use of 'dd' quite a bit lately as I have had to clone a newly setup server. dump/restore is generally a better solution for cloning drives. On large drives, dd wastes a lot of time copying empty sectors. Also, your disk label would be wrong, albeit correctable, though by that time, you may as well have just manually redone it. -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning boot drive - more details
[EMAIL PROTECTED] writes: My system partitions (/, swap, /usr, /var, /home) are currently spread onto a 10GB and a 20GB IDE drive, but I'd like to save space by consolidating these along with some (not heavily accessed) data partitions into a larger 250GB disk. The other drives (at this point a couple of SATA in RAID0) should be unaffected. I'm a relative newbie and although I've read the handbook and the past months' threads regarding cloning, I still have a few questions. 1) Am I correct in understanding that I can simply connect the new drive to a spare IDE controller and boot from the old disk, using sysinstall to make the new partitions and give them temporary mount points (choosing yes to install bootmanager), then dump | restore to move each FS, and simply take out the old drives and switch over to the new one? Will this boot and run seamlessly? At what point should I edit the old /etc/fstab that was copied over? If I *can* do this, then what are the benefits of doing a fresh install on the new drive first? 2) If I dump | restore from a *running* system, will the resulting clone be confused when it's booted up? Are any crucial changes or balancing acts made upon shutdown that the new drive will miss? Or, is its main purpose fulfilled when it's loaded into memory on boot? 3) The handbook also recommends using boot0config, but how necessary is this if I just plan on simply replacing the original drive? 4) How are the prospects of data recovery affected by FreeBSD's use of slices for filesystems on top of partitions? Experience tells me that with traditional partitions, a corrupted file tree or data in one area needn't prevent retreival of the other areas. Is this so with slices as well? I suspect that a slice *is* what you mean by a traditional partition. Either way, yes, problems on one shouldn't affect another. For the rest of your questions, start with the FAQ entry on How do I move my system over to my huge new disk?. ___ 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.
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.
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.
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.
[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.
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.
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.
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.
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.
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.
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.
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 machines with 5.4-REL
On 11/1/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I've setup one notebook with 5.4-REL and used the ports collection to pick up what I wanted (KDE and all other stuff); this took some time, of course but run without big trouble; now I want to setup a second notebook with the same installation and my idea is: - just install the base system on the 2nd notebook, - NFS-mount the /usr/ports from the 1st - remove all the files /usr/ports/.../work/.install_done - and just say make install on the new toy Comments? Thx matthias -- Matthias Apitz / Sisis Informationssysteme GmbH Gruenwalder Weg 28g / D-82041 Oberhaching Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211 http://www.sisis.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You can safely omit the third step (removing those files). Just run make install - and you're done. A neater way would be to install portupgrade on both machines, create /usr/ports/packages dir on the first one, run something like portupgrade -wWpaf, NFS mount /usr/ports on the 2nd one and use portupgrade -P whatever. [Basically, it will create packages on the 1st machine and then install ports from packages on the 2nd one]. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cloning installed packages?
On Mon, Aug 29, 2005 at 05:53:27AM -0400, Wolfgang Lausenbart wrote: I want to setup a FreeBSD 5.4 Server, which should have all packages, as an older 4.11 based Server. What is the best way of providing the same packages to as installed on the 4.11 based? Note that it must not be *exactly* the same :o) Is there any option to sysinstall/pkg_* to import a list of packages? Well, the ports collection might then be cvsupd'd... Wolfgang, How about: pkg_info -oa | grep / You can feed that to portinstall, or such: pkg_info -oa | grep / manifest.txt ... copy manifest.txt to your new system ... cd /usr/ports/sysutils/portupgrade make install rehash portinstall -p `cat manifest.txt` Cheers, -danny -- http://dannyman.toldme.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
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
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
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 with nfs?
On June 22, 2005 02:40 am, Dick Hoogendijk wrote: Yesterday I ruined my partition table on one of my machines. Luckely this machine was almost an exact copy of another that still is running fine. So, I can follow the procedure of copying one disk to another (following the handbook). But this requires a fysical removal / action on the machines and harddisks witch I don't want to do if not needed. I did a minimal install on the crashed machine (#B) If disk'cloning' can be done through NFS that'll be the way to go for me. Will it be enough to export /var /usr /tmp and / (#B) to mountpoints on machine #A and then follow the 'normal' dump/restore procedure mentioned in the handbook? Or are there side_effects and will fysical placement of the 'new' drive in machine #A be the right way to do it? I don't think restore works reliably on NFS mounted disks but I have copied disks using dump/restore through ssh. I would not do a blind dump/restore of / or /var. Those filesystems can contain some installation specific information. I think the only thing out of / that you need to copy would be /etc and possibly /boot if you have a custom kernel. Just remember that a kernel install is not as simple as copying files. You don't need to copy /tmp since it should not contain any information that is needed to survive a reboot. Just reboot after you restore. As for /usr you should be able to dump/restore that one. If you have additional packages installed, you will also want to copy /var/db/pkg and possibly /var/db/ports. Likewise, if the system is a mail server, you will want to copy over the appropriate directory structure (typically /var/spool) but you need to make sure you don't copy over any of the spool files or your users are going to get 2 copies of the same message delivered. Thanks for any advice. -- Ean Kingston E-Mail: ean AT hedron DOT org URL: http://www.hedron.org/ I am currently looking for work. If you need competent system/network administration please feel free to contact me directly. ___ 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?
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?
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 a jail
At 2003-04-01T14:32:51Z, Hari Bhaskaran [EMAIL PROTECTED] writes: When I need to clone a jail, would a cp -Rp do? I don't know about `cp' (I'm not sure how well it deals with device nodes, symlinks, etc), but yes, making an exact copy of the file structure should result in an identical jail. Also can I hardlink a tree (outside) to inside the jail? Once you've made a hardlink, the system has no concept of the original location. Both of the filesystem entries point to a structure on the disk; that structure doesn't refer back to those entries, point to one, and say that's my parent! However, depending on what you want to do, using NFS may be a nice approach. You can make a directory and its children read-only to the jail, but read-write outside of the jail. It's also a lot clearer later on that a particular directory is used by several different systems on the same machine. -- Kirk Strauser In Googlis non est, ergo non est. pgp0.pgp Description: PGP signature
Re: Cloning a jail
Hi. On Tue, 1 Apr 2003 08:32:51 -0600 Hari Bhaskaran [EMAIL PROTECTED] wrote: When I need to clone a jail, would a cp -Rp do? Yes and no. To do a exact copy of a jail, use the cpdup program (it is in the ports). (and change rc.conf). Or do I have to go through the jail(8) steps again? (make hierarchy, install etc). No. That would take to much time ;). Use cpdup. Just change the IP and stuff in rc.conf. Also use a new startup script on the host system /usr/local/etc/rc.d/ Thats it. By 'clone', I meant an identical jail session, on top of which I will install other packages, not necessarily same on both. see above. Also can I hardlink a tree (outside) to inside the jail? assuming I don't mind it being writeable. Would it open a hole to the rest of the system? You can use mount_nullfs from the host system. Or NFS to on the hostsystem. With that you can do a NFS mount from /usr/ports of the hostsystem to /jail/usr/ports. I do that with my jails. Works great. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning FreeBSD
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
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
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
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