Re: migrate system disk
ok, solved! dd if=/dev/0 of=/dev/ad6 (new hdd) bs=512 count=1024 boot from old hdd newfs /dev/ad6s1a (new hdd) mc -> copy /old_hdd excluding /dev /proc /mnt /tmp boot new hdd From: Dánielisz László To: freebsd-questions@freebsd.org Sent: Sat, October 9, 2010 11:34:18 AM Subject: Re: migrate system disk Okay, I give up! I try the whole thing like 20 times and still not working. I'm not able to boot from the new device, it always says: FreeBSD/i386 boot Default: 0: ad(0,a)/boot/kernel/kernel boot: No /boot/kernel/kernel Do you have any other idea? ps: Yes I set the bootflag in sysinstall -> fdisk and I do pressed 'w' to write the changes, it says is ok. From: Edward To: Dánielisz László Cc: freebsd-questions@freebsd.org Sent: Thu, September 23, 2010 3:37:42 AM Subject: Re: migrate system disk > I have an old HDD which should be replaced soon, actually that HDD stands as > my > > > system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 > from > the old disk to the new one? I've used to do this a lot for server hardware migration, moving from 1 server to another new server. This blog post recorded what I tried & did : http://scratching.psybermonkey.net/2010/01/freebsd-backup-and-restore-freebsd.html Check it out, Edward. ___ 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: migrate system disk
Okay, I give up! I try the whole thing like 20 times and still not working. I'm not able to boot from the new device, it always says: FreeBSD/i386 boot Default: 0: ad(0,a)/boot/kernel/kernel boot: No /boot/kernel/kernel Do you have any other idea? ps: Yes I set the bootflag in sysinstall -> fdisk and I do pressed 'w' to write the changes, it says is ok. From: Edward To: Dánielisz László Cc: freebsd-questions@freebsd.org Sent: Thu, September 23, 2010 3:37:42 AM Subject: Re: migrate system disk > I have an old HDD which should be replaced soon, actually that HDD stands as > my > > system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 > from > the old disk to the new one? I've used to do this a lot for server hardware migration, moving from 1 server to another new server. This blog post recorded what I tried & did : http://scratching.psybermonkey.net/2010/01/freebsd-backup-and-restore-freebsd.html Check it out, Edward. ___ 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: migrate system disk
Am Wed, 22 Sep 2010 08:06:13 -0700 (PDT) schrieb Dánielisz László : > Hello, > > I have an old HDD which should be replaced soon, actually that HDD > stands as my system disk, what is your suggesion, how should I > migrate the FreeBSD 8.1 from the old disk to the new one? > > thank you! > Laszlo Have a look at recoverdisk(1). This should satisfy most your needs. Regards. ___ 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: migrate system disk <- thank you
Thank you everybody for your help! From: Matthias Apitz To: Edward Cc: Dánielisz László ; freebsd-questions@freebsd.org Sent: Thu, September 23, 2010 8:19:16 AM Subject: Re: migrate system disk El día Thursday, September 23, 2010 a las 09:37:42AM +0800, Edward escribió: > > > I have an old HDD which should be replaced soon, actually that HDD stands > > as >my > > > system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 >from > > > the old disk to the new one? > > I've used to do this a lot for server hardware migration, moving from 1 > server to another new server. This blog post recorded what I tried & did : >http://scratching.psybermonkey.net/2010/01/freebsd-backup-and-restore-freebsd.html >l I did an similar aproach, moving a complete system by dump/restore to another (virtual) hardware to get a 1:1 clone of my laptop. The steps are documented in detail here: http://www.unixarea.de/OS/moveFreeBSDintoVM.txt HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Solidarity with the zionistic pirates of Israel? Not in my name! ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre! ___ 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: migrate system disk
El día Thursday, September 23, 2010 a las 09:37:42AM +0800, Edward escribió: > > > I have an old HDD which should be replaced soon, actually that HDD stands > > as my > > system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 > > from > > the old disk to the new one? > > I've used to do this a lot for server hardware migration, moving from 1 > server to another new server. This blog post recorded what I tried & did : > http://scratching.psybermonkey.net/2010/01/freebsd-backup-and-restore-freebsd.html I did an similar aproach, moving a complete system by dump/restore to another (virtual) hardware to get a 1:1 clone of my laptop. The steps are documented in detail here: http://www.unixarea.de/OS/moveFreeBSDintoVM.txt HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Solidarity with the zionistic pirates of Israel? Not in my name! ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre! ___ 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: migrate system disk
> I have an old HDD which should be replaced soon, actually that HDD stands as > my > system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 > from > the old disk to the new one? I've used to do this a lot for server hardware migration, moving from 1 server to another new server. This blog post recorded what I tried & did : http://scratching.psybermonkey.net/2010/01/freebsd-backup-and-restore-freebsd.html Check it out, Edward. ___ 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: migrate system disk
On Wed, Sep 22, 2010 at 08:06:13AM -0700, D?nielisz L?szl? wrote: > Hello, > > I have an old HDD which should be replaced soon, actually that HDD > stands as my system disk, what is your suggesion, how should I migrate > the FreeBSD 8.1 from the old disk to the new one? If you must copy exactly what you currently have then I'd use a variation on the handbook method which has already been suggested at http://www.freebsd.org/doc/handbook/backup-basics.html Rather than example 18-1 or 18-2 I'd pipe dump directly into restore. Do this once for every filesystem. Something like: ( cd /; /sbin/dump -0uanf - / ) | ( cd /newmount; /sbin/restore -rf - ) Where /newmount is the temporary new mount point for your new drive. Left preparation of new disk as an exercise for the reader. However there is a good argument to be made for making a totally new installation of FreeBSD. Then go through the original disk picking up the necessary files to customize for your use. As you find these files put their names in a file named something like files.list that in the future one could "tar -T files.list" (thats an incomplete example) to do a minimal quick backup or restore of only the files which are unique to your machine. This is an opportunity to find these files, and to practice using tar -T to lift them from one drive and write them to another. I wouldn't try to move the ports collection with the above technique. However it would be a good idea to save a list of installed ports that one could use to reinstall. -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. ___ 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: migrate system disk
On Wed, 22 Sep 2010, D?nielisz L?szl? wrote: I have an old HDD which should be replaced soon, actually that HDD stands as my system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 from the old disk to the new one? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-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: migrate system disk
On 2010-09-22 19:20, Dánielisz László wrote: I'm using UFS. Thank you! I've just done that myself and by chance I found out that ghost4linux can copy a disk with UFS file systems. So if you don't have to worry about other partition sizes, you could try it. You will find on the Parted magic disk http://partedmagic.com/ /Leslie ___ 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: migrate system disk
On 22-9-2010 17:06, Dánielisz László wrote: I have an old HDD which should be replaced soon, actually that HDD stands as my system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 from the old disk to the new one? Attach the new disk to your system and do a dump / restore action (man dump/restore for options). The FreeBSD manual has very good examples. ___ 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: migrate system disk
I'm using UFS. Thank you! From: Polytropon To: Dánielisz László Cc: freebsd-questions@freebsd.org Sent: Wed, September 22, 2010 6:06:46 PM Subject: Re: migrate system disk On Wed, 22 Sep 2010 08:06:13 -0700 (PDT), Dánielisz László wrote: > Hello, > > I have an old HDD which should be replaced soon, actually that HDD stands as > my > > system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 > from > the old disk to the new one? Are you running ZFS or UFS on that disk? If UFS, go with the classical way: use dump + restore. There's a very good example in the handbook. http://www.freebsd.org/doc/handbook/backup-basics.html Also look here: http://forums.freebsd.org/showthread.php?t=11680 Use a FreeBSD live system CD or DVD to prepare the target disk (install boot code, make slices and partitions); you can also use sysinstall to do that. Then go with dump + restore. You'll find more hints when searching the mailing list archive. If you're on ZFS, use ZFS's tools to export and re-import the pool, quite simple. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: migrate system disk
On Wed, 22 Sep 2010 08:06:13 -0700 (PDT), Dánielisz László wrote: > Hello, > > I have an old HDD which should be replaced soon, actually that HDD stands as > my > system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 > from > the old disk to the new one? Are you running ZFS or UFS on that disk? If UFS, go with the classical way: use dump + restore. There's a very good example in the handbook. http://www.freebsd.org/doc/handbook/backup-basics.html Also look here: http://forums.freebsd.org/showthread.php?t=11680 Use a FreeBSD live system CD or DVD to prepare the target disk (install boot code, make slices and partitions); you can also use sysinstall to do that. Then go with dump + restore. You'll find more hints when searching the mailing list archive. If you're on ZFS, use ZFS's tools to export and re-import the pool, quite simple. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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"
migrate system disk
Hello, I have an old HDD which should be replaced soon, actually that HDD stands as my system disk, what is your suggesion, how should I migrate the FreeBSD 8.1 from the old disk to the new one? thank you! Laszlo ___ 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"