Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=subzero.git;a=commitdiff;h=11b2b4473aa0778621a412b606986ec1041c3c5b
commit 11b2b4473aa0778621a412b606986ec1041c3c5b Author: James Buren <[email protected]> Date: Mon Feb 27 17:34:03 2012 -0600 remove '#' prefixed in monospace sections diff --git a/docs/upgrade.txt b/docs/upgrade.txt index 000936e..8ee9926 100644 --- a/docs/upgrade.txt +++ b/docs/upgrade.txt @@ -11,7 +11,7 @@ The new release comes with an improved pacman-g2, you should install it first: ---- -# pacman-g2 -Sy pacman-g2 +pacman-g2 -Sy pacman-g2 ----- == Upgrading the system @@ -19,7 +19,7 @@ first: Now it's time to upgrade the system itself: ---- -# pacman-g2 -Su +pacman-g2 -Su :: Starting local database upgrade... ---- @@ -36,7 +36,7 @@ enter and wait. Make some tea, it can take a while. :-) them. You should run ---- -# find /etc -name '*.pacnew' +find /etc -name '*.pacnew' ---- and update each configuration file based on the `.pacnew` version. Once @@ -65,7 +65,7 @@ This command should work, assuming you replace the last part with your real first hard drive device node. ---- -# grub-install --recheck --no-floppy /dev/sdX +grub-install --recheck --no-floppy /dev/sdX ---- If you are using RAID1, run this command on each of the disks used in the @@ -75,22 +75,22 @@ Before you reboot, you must generate a new GRUB2 config. This is done by this command: ---- -#grub-mkconfig -o /boot/grub/grub.cfg +grub-mkconfig -o /boot/grub/grub.cfg ---- If you were using RAID1 with the old grub, you may run into these errors from grub-install, depending on how you set it up originally: ---- -#error: found two disks with the index 0 for RAID md0. -#error: superfluous RAID member (2 found). -#error: found two disks with the index 0 for RAID md0. -#error: superfluous RAID member (2 found). -#/usr/sbin/grub-probe: error: unknown filesystem. -#Auto-detection of a filesystem of /dev/md0 failed. -#Try with --recheck. -#If the problem persists please report this together with the output of "/usr/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub" to -#<[email protected]> +error: found two disks with the index 0 for RAID md0. +error: superfluous RAID member (2 found). +error: found two disks with the index 0 for RAID md0. +error: superfluous RAID member (2 found). +/usr/sbin/grub-probe: error: unknown filesystem. +Auto-detection of a filesystem of /dev/md0 failed. +Try with --recheck. +If the problem persists please report this together with the output of "/usr/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub" to +<[email protected]> ---- This is caused by a technical bug with the old 0.90 mdadm metadata format, and @@ -115,7 +115,7 @@ function keys from 2 to 6. Now, login to the shell. Replace /dev/sdXX with the proper device name for each one. ---- -#mdadm --zero-superblock /dev/sdXX +mdadm --zero-superblock /dev/sdXX ---- 4) Now, it's time to recreate your RAID1 array. Replace the /dev/mdX with what @@ -125,7 +125,7 @@ the (ALL RAID DEVICES) at the end with a complete list of all your RAID devices, using their full file paths. ---- -#yes | mdadm --create /dev/mdX --metadata=1.0 --level=1 --assume-clean --raid-devices=X (ALL RAID DEVICES) +yes | mdadm --create /dev/mdX --metadata=1.0 --level=1 --assume-clean --raid-devices=X (ALL RAID DEVICES) ---- 5) Now, if this worked, you should be able to mount it immediately. Run this @@ -133,47 +133,47 @@ command to be sure. Again, replace /dev/mdX with whatever you used in the previous step. ---- -#mount -o ro /dev/mdX /mnt +mount -o ro /dev/mdX /mnt ---- 6) If the previous step worked, then you are ready to install GRUB2. First, remount the RAID device as RW. ---- -#mount -o remount,rw /mnt +mount -o remount,rw /mnt ---- 7) Now, mount some support directories and chroot into it. ---- -#mount none -t proc /mnt/proc -#mount none -t sysfs /mnt/sys -#mount none -t devtmpfs /mnt/dev -#chroot /mnt /bin/sh +mount none -t proc /mnt/proc +mount none -t sysfs /mnt/sys +mount none -t devtmpfs /mnt/dev +chroot /mnt /bin/sh ---- 8) Next, install GRUB2. Run this command on each of your RAID device's MBR. Replace /dev/sdX with the appropriate device. ---- -#grub-install --recheck --no-floppy /dev/sdX +grub-install --recheck --no-floppy /dev/sdX ---- 9) Now, generate the first GRUB2 config. ---- -#grub-mkconfig -o /boot/grub/grub.cfg +grub-mkconfig -o /boot/grub/grub.cfg ---- 10) Finally, exit, unmount everything, and reboot. Commands are below. ---- -#exit -#umount /mnt/proc -#umount /mnt/dev -#umount /mnt/sys -#umount /mnt -#reboot +exit +umount /mnt/proc +umount /mnt/dev +umount /mnt/sys +umount /mnt +reboot ---- In the event that this previous method fails to convert your array, you will _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
