From owner-svn-doc-head@FreeBSD.ORG Tue Jan 29 13:41:08 2013 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CC72C9AD; Tue, 29 Jan 2013 13:41:08 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id B0057B69; Tue, 29 Jan 2013 13:41:08 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0TDf8lF017395; Tue, 29 Jan 2013 13:41:08 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0TDf8jA017394; Tue, 29 Jan 2013 13:41:08 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201301291341.r0TDf8jA017394@svn.freebsd.org> From: Eitan Adler Date: Tue, 29 Jan 2013 13:41:08 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r40800 - head/en_US.ISO8859-1/books/faq X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 13:41:09 -0000 Author: eadler Date: Tue Jan 29 13:41:08 2013 New Revision: 40800 URL: http://svnweb.freebsd.org/changeset/doc/40800 Log: Modernize a number of questions as they relate to bsdinstall. Also prefer ada over ad Submitted by: nwhitehorn Approved by: bcr (mentor) Modified: head/en_US.ISO8859-1/books/faq/book.xml Modified: head/en_US.ISO8859-1/books/faq/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/faq/book.xml Tue Jan 29 11:35:38 2013 (r40799) +++ head/en_US.ISO8859-1/books/faq/book.xml Tue Jan 29 13:41:08 2013 (r40800) @@ -1312,63 +1312,26 @@ - - &windows; killed my boot manager! How do I get it - back? + + Another operating system destroyed my Boot Manager. How + do I get it back? - You can reinstall the boot manager &os; comes with in - one of three ways: + This depends on what boot manager you have installed. + The &os; boot selection menu (likely what you are using + if you end up in this situation) can be reinstalled using + &man.boot0cfg.8;. For example, to restore the boot menu + onto the disk ada0: - - - Running DOS, go into the tools directory of your - &os; distribution and look for - bootinst.exe. You run it like - so: - - ...\TOOLS> bootinst.exe boot.bin - - and the boot manager will be reinstalled. - + &prompt.root; boot0cfg -B ada0 - - Boot the &os; boot floppy again and go to the - Custom menu item for custom - installation. Choose - Partition. Select the drive - which used to contain your boot manager (likely the - first one) and when you come to the partition editor for - it, as the very first thing (e.g., do not make any - changes) press W. This will ask for - confirmation, select &gui.yes;, and when you get the - Boot Manager selection prompt, be sure to select the - &os; Boot Manager. This will - re-write the boot manager to disk. Now quit out of the - installation menu and reboot off the hard disk as - normal. - + The non-interactive MBR bootloader can be installed using + &man.gpart.8;: - - Boot the &os; boot floppy (or CD-ROM) and choose the - Fixit menu item. Select - either the Fixit floppy or CD-ROM #2 (the - live file system option) as appropriate - and enter the fixit shell. Then execute the following - command: - - Fixit# fdisk -B -b /boot/boot0 bootdevice - - substituting bootdevice - for your real boot device such as - ad0 (first IDE disk), - ad4 (first IDE disk on - auxiliary controller), da0 - (first SCSI disk), etc. - - + &prompt.root; gpart bootcode -b /boot/mbr ada0 + + For more complex situations, including GPT disks, see &man.gpart.8;. @@ -3310,10 +3273,9 @@ kern.sched.name: ULE paragraph to find out how to move the data after doing this. - Should you decide not to do a fresh install, you need to - partition and label the new disk with either - &man.sysinstall.8;, or &man.fdisk.8; and &man.disklabel.8;. - You should also install booteasy on both disks with + Alternatively, partition and label the new disk with either + &man.sade.8; or &man.gpart.8;. If the disks are MBR-formatted, + you can also install booteasy on both disks with &man.boot0cfg.8;, so that you can dual boot to the old or new system after the copying is done. @@ -3355,12 +3317,12 @@ kern.sched.name: ULE For example, if you are going to move root to - /dev/ad1s1a, + /dev/ada1s1a, with /mnt as the temporary mount point, it is: - &prompt.root; newfs /dev/ad1s1a -&prompt.root; mount /dev/ad1s1a /mnt + &prompt.root; newfs /dev/ada1s1a +&prompt.root; mount /dev/ada1s1a /mnt &prompt.root; cd /mnt &prompt.root; dump 0af - / | restore rf - @@ -3371,8 +3333,8 @@ kern.sched.name: ULE as described above, then move the child partition into the empty directory that the first move created: - &prompt.root; newfs /dev/ad1s1a -&prompt.root; mount /dev/ad1s1a /mnt + &prompt.root; newfs /dev/ada1s1a +&prompt.root; mount /dev/ada1s1a /mnt &prompt.root; cd /mnt &prompt.root; dump 0af - / | restore rf - &prompt.root; cd var @@ -3384,11 +3346,11 @@ kern.sched.name: ULE partition on the appropriate directory in the temporary mount point, then move the old single partition: - &prompt.root; newfs /dev/ad1s1a -&prompt.root; newfs /dev/ad1s1d -&prompt.root; mount /dev/ad1s1a /mnt + &prompt.root; newfs /dev/ada1s1a +&prompt.root; newfs /dev/ada1s1d +&prompt.root; mount /dev/ada1s1a /mnt &prompt.root; mkdir /mnt/var -&prompt.root; mount /dev/ad1s1d /mnt/var +&prompt.root; mount /dev/ada1s1d /mnt/var &prompt.root; cd /mnt &prompt.root; dump 0af - / | restore rf - @@ -4594,9 +4556,13 @@ options SYSVMSG # enable for marked as insecure in /etc/ttys. In this case it will be required to boot from a &os; installation disk, choose - the Fixit shell from - &man.sysinstall.8; and issue the commands mentioned - above. + the Live CD or + Shell at the beginning of the install + process and issue the commands mentioned above. You will need to + mount the specific partition in this case and then chroot to it, + i.e. replace mount -urw / by + mount /dev/ada0p1 /mnt; chroot /mnt for + a system on ada0p1.