How to fill in the /boot folder without installing GRUB

Hello, I have a laptop with the CD-ROM apparently broken, so I installed OpenSuSE 11.4 milestone4 from USB stick . unfortunately in the end of the installation I had a GRUB configuration error (twice) . then, in the third time I removed GRUB from the installation procedure. Since my other GNU / Linux is Ubuntu, I did update-grub on ubuntu, it detects the presence of OpenSuSE but it does not add it to its grub.cfg

when I wanted to add it manually to ubuntu’s GRUB, I realized that, in OpenSuSE, the /boot path was empty.

My Question is: Do you know how to put the files needed to boot OpenSuSE (initrd, vmlinuz , …) in the directory /boot without installing OpenSuSE’s GRUB ?? (ie keep the ubuntu’s GRUB)
Thanks.

/boot is mostly populated by the installation of a kernel package.

Installing a kernel package without being able to boot openSUSE will be an interesting challenge.

LasX wrote:

> OpenSuSE 11.4… My Question is: Do you know how to put the files
> needed to boot OpenSuSE (initrd, vmlinuz , …) in the directory
> /boot without installing OpenSuSE’s GRUB ??
(ie keep the ubuntu’s
> GRUB)

you do realize, don’t you that M4 is beta level software meant for
testing? that is, you should expect problems and when you find them,
report them via bugzilla, here:
http://en.opensuse.org/Submitting_Bug_Reports

which is another way of saying: why would you want to try to jimmy up
a local work around? just report your bug and answer all the developer
questions as they come…eventually they will send you a patch you
can try, or they will tell you to go to M5

and, also: in the future when running into these kind of problems on
unreleased software, please use the forum set up especially for
software testers, here:
http://forums.opensuse.org/english/get-help-here/pre-release-beta/


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
I feel annoyed that I can’t put my wide range of languages on stupid
Facebook. For example, I speak Sarcasm, fluently spoken and written,
and Various Forms of Geek…

Install grub to the partition where /root is

I’ve tried many options of bootloader installation:
on MBR, on /root, on sda anyway I get this error

Yfrog Photo : yfrog.com/1gerrorgrubp

Try to install that version in a Virtual machine (using Oracle VirtualBox with USB enabled) under Ubuntu. See if you have that error. If you do, that’s obviously a bug in M4. If you don’t, it might be a problem with your hd or its partitioning. If you succeeded to install it in the vm, you can run fsck on sda5, mount it in /mnt, copy the /boot directory from the live system in there, excluding initrd-xxx… , backup_mbr and /boot/grub/device.map, edit /mnt/boot/grub/menu.lst to match your system, chroot to /mnt, run mkinitrd and reinstall grub from the command line.

fsck /dev/sda5
mount /dev/sda5 /mnt
mkdir /mnt/boot 2>/dev/null
tar cf - -C /boot --exclude=initrd* --exclude=backup_mbr --exclude=grub/device.map . | tar xf - -C /mnt/boot
vi /mnt/boot/grub/menu.lst (or using another text editor available on the live system)
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /dev/shm /mnt/dev/shm
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sys
chroot /mnt
mkinitrd
grub
grub> root (hd0,4)
grub> setup (hd0,4)
grub> quit
exit

I dunno if it’s going to work but you can try… although installing 11.3 would probably be a more reasonable option.

perhaps you did not understand my previous hint, so i will try to make
it easy:

you have posted to the wrong forum…11.4 is pre-release software and
should be discussed in the correct forum, here:

http://forums.opensuse.org/english/get-help-here/pre-release-beta/


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
I feel annoyed that I can’t put my wide range of languages on stupid
Facebook. For example, I speak Sarcasm, fluently spoken and written,
and Various Forms of Geek…

On 2010-12-16 15:06, LasX wrote:
>
> I’ve tried many options of bootloader installation:
> on MBR, on /root, on sda anyway I get this error
>
> ‘Yfrog Photo : yfrog.com/1gerrorgrubp’ (http://yfrog.com/1gerrorgrubp)

To me it looks like a bug you should report in the appropriate place.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

I’ve already reported it as a Bug.
and found the M5 and installed it, everything worked out of the box :slight_smile:
thank you for your help ( the solution of copying the /boot from the vm looks right)