cloning a FreeBSD HDD
- From: "Khaled Hussain" <khaled@xxxxxxxxxx>
- Date: Fri, 24 Mar 2006 16:01:12 -0000
Hi All,
This is my first day on the list so please pardon me if I am on the wrong
list and any mistakes I make.
I would like to create a bootable clone of a HDD running BSD version 4.8. I
have experience of cloning linux machines successfully but understand that
freebsd is a little different.
Please correct me if I'm wrong but my procedure would be to procedure would
be to:
1. Connect a new HDD as secondary to a freebsd host machine
2. create partitions and make filesystem on these partitions
3. mount the clone HDD on the host machine
4. scp all dirs exclusive of /dev and /proc from the original HDD to the
clone HDD
5. install the boot loader - this is pretty easy with grub or lilo on linux
but I have no idea what is required to be done at this stage or how the BSD
boot manager works
6. unmount the clone and shutdown the machine
7. restart the machine with the clone HDD set as primary HDD
I created the partitions and filesystem by using /stand/sysinstall off of
the host machine and editted the disk labels for the attached clone HDD. The
mount point for the root partition of the clone HDD was /mnt on the host
HDD. I also installed a boot manager on the HDD via /stand/sysinstall.
After copying all dirs over from the original source HDD, I booted the HDD
to find that the boot menu prompt is desplayed but followed by an error when
trying to boot, similar to:
--start--
Default: F1
Invalid Partition:
no /boot/loader
Default: 0: ad(0,a)/kernel
no /kernel
--end--
This is despite /boot/loader and /kernel existing in the cloned HDD.
Please can someone help me understand what I am doing wrong and how to
successfully clone a BSD disk; I would greatly appreciate any commands that
can shorten the process (as opposed to doing things via /stand/sysinstall).
Kindest Regards
Khaled
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: cloning a FreeBSD HDD
- From: Dirk GOUDERS
- Re: cloning a FreeBSD HDD
- Prev by Date: Re: copy paste in freebsd
- Next by Date: Re: Ricoh PCI to SD device?
- Previous by thread: OT: ftp.freebsd.org down?
- Next by thread: Re: cloning a FreeBSD HDD
- Index(es):
Relevant Pages
- Re: 160 Gb drive in a removable caddy give "disk error press ctrl alt del" on boot
... I never tried to boot on the 250Gb as it has ... *ever* worked properly while
it was installed in the mobile rack or has ... GB HDD it boots & functions just
fine, ... your Primary IDE connector on the motherboard, ... (microsoft.public.windowsxp.hardware) - Re: 160 Gb drive in a removable caddy give "disk error press ctrl alt del" on boot
... But the 120Gb does boot. ... so, you're working with only a single mobile
rack, right? ... GB HDD it boots & functions just fine, ... The full capacity
has always been seen of all drives it is just a boot ... (microsoft.public.windowsxp.hardware) - Re: Re: Re: Problem Finding Hard Drive Involving Cloning
... I have two 120GB hard drives as Primary Master & Slave. ... boot from
the slave drive. ... from either HDD following the disk cloning operation. ... stress
that the source HDD be *disconnected* from the system, i.e., no ... (microsoft.public.windowsxp.hardware) - Re: Re: Re: Re: Problem Finding Hard Drive Involving Cloning
... I have two 120GB hard drives as Primary Master & Slave. ... I remembered to
follow the cloning IMMEDIATELY with a boot-up from ... boot from the slave drive.
... from either HDD following the disk cloning operation. ... (microsoft.public.windowsxp.hardware) - Re: Re: Re: Problem Finding Hard Drive Involving Cloning
... I have two 120GB hard drives as Primary Master & Slave. ... I remembered to
follow the cloning IMMEDIATELY with a boot-up from ... boot from the slave drive.
... from either HDD following the disk cloning operation. ... (microsoft.public.windowsxp.hardware)