At 13:43:55 on Wednesday Wednesday 25 November 2009, Felix Miata <mrmazda@earthlink.net> wrote:
On 2009/11/25 12:42 (GMT+0200) Stan Goodman composed:
1) A notebook machine that had initially v11.1 that I have been using, and unused partitions which I prepared for installation of v11.2. OS/2 BootManager chooses between the two. There is also a single Swap partition, for the use of both. Before installation of v11.2 on the vacant partitions, BootManager contained lines ONLY for the two sets.
Now, after v11.2 is installed (and working!), I can boot to either version, but now BootManager contains an additional line, telling me that sda5 (the swapspace) is not formatted. Assuming that this was true, I ran <mkswap /dev/sda5> to fix it; bash returned the message: "Device or resource busy". It's hard to understand how it can be busy if it isn't formatted, but my next step was to boot to a live operating system and try again, but this produced the same busy message. I do not believe that the partition is really unformatted.
Can anyone comment?
The partition is unformatted is IIRC a generic IBM BM message generated among other things when a partition really is unformatted, and also when the PBR is corrupted or empty. Take a look at it (DFSee is one way) to see if it's empty. There's no reason for a swap partition to show up in IBM BM. Take it out of the BM menu with LVM or DFSee.
The first thing I did was to look at the partitions with DFSee. The Swap partition is NOT labeled as bootable, hence has no business being in the BootManager menu. In DFSee, the line for the Swap partition is as follows: Format - SWAP Related - LinuxxV1 VolumeLabel - SWAPSPACE LVM Volume - Swap, Swap Size = 2117.9 (Obviously because I forgot to set a size, so DFSee apparently chose the maximum permissible size).
If you really want to "format" the swap partition, unmount it first with the swapoff command, or before the next boot, remove the line from fstab that causes the swap partition to be mounted.
2) A desktop machine which initially had both v11.1 and v10.3 installed, with GRUB installed separately for them in the root partitions, and OS/2 BootManager to choose between them. I wanted to replace the v10.3 installation with v11.2 (as in the notebook machine, the idea is always to have the previous version available as a maintenance partition). I cannot boot to v11.2, because there is not GRUB present on it. I need to install GRUB on sda6. but all the information I have found on the subject is only for installing on the MBR, which is what I don't want.
How can I install GRUB on a partition?
Typically a Grub HOWTO will say 'setup (hd0)', which installs to the MBR. To install to a partition is almost the same; in your case 'setup (hd0,5)' for /dev/sda6.
I usually do it natively/manually. First make sure it's mounted so you can look to see if its /boot/grub exists and contains the usual files. If not, copy them there from /usr/lib/grub on the 11.2 partition, making sure an appropriate device.map exists there. Once the necessary files are there, setup Grub according to http://www.gnu.org/software/grub/manual/grub.html#Installing-GRUB-nativ ely where it also shows how you can inspect to see if e.g. /boot/grub/stage1 exists there already.
Very helpful. Thanks much.
If your 11.2 is not on an ext4 partition, you can use the older Grub to boot 11.2, either by adding a stanza for it to the 10.3 menu.lst, or by exiting the menu to a grub prompt to load the kernel and initrd manually. Once booted, you can run the grub-install script, or install natively/manually.
But it is on an ext4 partition, so this option is out.
-- The husband should fulfill his marital duty to his wife, and likewise the wife to her husband. 1 Corinthians 7:3 NIV
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://fm.no-ip.com/
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org