William D Waddington wrote:
> James Cornell wrote:
>> Jefferson Kirkland wrote:
>>> I added the option to the menu.lst, but the same result. The boot
> menu simply sits there and does nothing, but allows me to select a
> different option.
>>> As for the grub.conf, I searched my whole system and it does not
> exist. I am not sure why, but it doesn't.
>>> I am not feigning ignorance, but how can I mount my linux partition
> under solaris so that I can get to the boot directory?
>>> This message posted from opensolaris.org
>>> laptop-discuss mailing list
>>> [email protected]
>> You'd need the FUSE enabled ext2 driver to mount the partition since
>> ext2 support legally cannot be provided in kernel space. It's
>> available from Belenix's site under downloads, but support cannot be
>> provided for it.
>> http://www.genunix.org/distributions/belenix_site/?q=download at the
>> bottom, FSWfsmisc.tar.gz and FSWpart.tar.gz are what you should grab,
>> unpack, compile, install. You'll need to take care on mount usage,
>> for the syntax is different, /sbin/mount -F filesystem
>> /dev/dsk/cxdxsx /mnt/point for example. (I use x's throughout to
>> describe variable device numbers, they vary between computers due to
>> controllers, and disk order, etc.) Just a warning about NTFS
>> support, it's very unstable, I don't have a lot of experience with
>> ext2/3 FSW support.
>> Here's the steps that you'll need to reinstall the grub you're using
>> for linux back onto the superblock of the linux boot partition.
>> Note, sdx and sdx# would be for scsi/sata, and # is specific to the
>> actual partition number as reported by fdisk/cfdisk. You can check
>> with dmesg for the respective /dev entry.
>> 1.) Boot a livecd, such as Gentoo 2007.0 x86 minimal
>> 2.) Check with cfdisk (or fdisk) to make sure your /boot (or /) is
>> bootable (active) mark if not... eg: cfdisk /dev/sdx
>> 3.) mkdir /mnt/linux
>> 4.) mount /dev/sdx# /mnt/linux
>> 5.) mount /dev/sdx# /mnt/linux/boot
>> 6.) mount -o bind /dev /mnt/linux/dev
>> 7.) mount -t proc none /mnt/linux/proc
>> 8.) cat /proc/mounts > /mnt/linux/etc/mtab (cp doesn't always work,
>> best to just go over the top)
>> 9.) chroot /mnt/linux /bin/bash
>> 10.) vi /etc/mtab (Change /dev/sdx# /mnt/linux/boot to /boot and
>> /dev/sdx# /mnt/linux to just /)
>> 11.) vi /boot/grub/menu.lst (Remove the non-linux OS' in the file)
>> 12.) grub-install --no-floppy /dev/sdx# (Install to superblock)
>> 13.) grub --no-floppy (Doing the following:)
>> root (hd0,x) *Try numbers starting with 0, depending on your setup,
>> when you hit an ext2/3 partition, you've found it)
>> setup (hd0) *to install to the above partition
>> 14.) cd /
>> 15.) exit
>> 16.) umount /mnt/linux/dev /mnt/linux/boot /mnt/linux/proc /mnt/linux
>> 17.) reboot
>> 18.) In OpenSolaris, vi /boot/grub/menu.lst add this:
>> title Linux
>> root (hdx,x) * same as the one you installed grub into using grub
>> (not grub-install)
>> chainloader +1
>> 19) Hopefully the OpenSolaris grub is intact, if not, use the
>> OpenSolaris install DVD and enter failsafe make sure /a is mounted
>> and use:
>> /sbin/installgrub -m /boot/grub/stage1 /boot/grub/stage2
>> /dev/rdsk/cxdxsx (Whatever / is according to /sbin/mount)
>> * = Don't enter anything past me, including me :-)
>> There should be a linux entry, and the entry should chainload to the
>> linux grub, which only boots linux.
> James & Jefferson,
> Here's another way to do this. I hope.
> I'd be inclined to spin up the original install media and get to a
> mount the installed Linux root partition and take a look at /boot/grub/.
> If stage1 is there see below. If not, locate the grub files on the CD
> or Linux installation and copy stage1 to /boot/grub. stage2 should
> already be there.
> run grub
> (assuming Linux is on the 2nd partition - please check and double
> grub> find /boot/grub/stage1 (a sanity check, should return (hd0,1)
> grub> root (hd0,1)
> grub> setup (hd0,1)
> This puts stage1 in the boot sector of the 2nd partition. setup (hd0)
> would put it in the MBR - and hose the Solaris boot setup.
> I usually do this from a Knoppix CD. In that case, I copy _all_ the
> grub files (except the current menu.lst/grub.conf) from
> /lib/grub/i386-pc/ on the Knoppix CD, and run grub from the Knoppix
> CD to make sure the versions match.
That's correct, I forgot to write setup (hd0,x) oops heh. But yeah,
that's about it. The whole issue is with UFS support in grub on Linux.
laptop-discuss mailing list