Date: Mon, 1 Aug 2005 22:26:46 +0200 From: "Alexandre D." <alexandre.delay@free.fr> To: <freebsd-questions@freebsd.org> Subject: RE: Migrate primary disk (duplicate) Message-ID: <MAEBLPAGHGPMOKCBICBNOEKPCHAA.alexandre.delay@free.fr> In-Reply-To: <MAEBLPAGHGPMOKCBICBNMEKNCHAA.alexandre.delay@free.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
I made several tests. the exact problem is to install the freebsd boot manager. If I use any command line utility to restore the boot manager, it doesnt work. If I use /stand/sysinstall, choose fdisk and "Install the FreeBSD boot Manager", it works What is the exact command line for this? cheers Alex -----Message d'origine----- De : owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]De la part de Alexandre D. Envoye : lundi 1 aout 2005 20:21 A : freebsd-questions@freebsd.org Objet : RE: Migrate primary disk (duplicate) Interresting thing: After all this (even restore), I launched sysinstall. I went in the fdisk section, selected the right disk, the right slice and pressed S (toggle bottable flags), then w (write changes) and q to quit. Then I choosed the "Install the FreeBSD Boot Manager". Now it works. It boots from the second disk. I don't understand what went wrong in my script. What do I forget? Do you understand?? cheers -----Message d'origine----- De : owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]De la part de Giorgos Keramidas Envoye : lundi 1 aout 2005 19:06 A : Alexandre D. Cc : Gary W. Swearingen; freebsd-questions@freebsd.org Objet : Re: Migrate primary disk (duplicate) On 2005-08-01 18:59, "Alexandre D." <alexandre.delay@free.fr> wrote: > Here is the complete process I follow: > > sysctl kern.geom.debugflags=16 > dd if=/dev/zero of=/dev/${disk} bs=1k count=1 > fdisk -BI ${disk} The dd/geom stuff shouldn't really be necessary, AFAIK. > disklabel -B -w -r ${disk}s1 auto > disklabel -R ${disk}s1 generique.disklabel > newfs /dev/${disk}s1a > newfs /dev/${disk}s1d > mount /dev/${disk}s1a ./mnt > cd ./mnt > dump 0uafL - / | restore xf - > cd .. > umount ./mnt > mount /dev/${disk}s1d ./mnt > cd ./mnt > dump 0uafL - /usr | restore xf - > cd .. > umount ./mnt Hmmm, are you sure restore doesn't write files in their absolute location? Also, can you try running boot0cfg on the destination disk, as a final step, before trying to boot from it? _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MAEBLPAGHGPMOKCBICBNOEKPCHAA.alexandre.delay>