Frugal w. existing GRUB


Forum: HD Install
Topic: Frugal w. existing GRUB
started by: ivrobi

Posted by ivrobi on Aug. 05 2005,09:38
Hi!

Can somebody please tell me, how does the frugal_grub script behave, if I already have GRUB on my PC? (I have Win2k and Ubuntu installed, with GRUB as boot manager.) Do I have to download grub.dsl anyway, or is there an another way to add DSL to the existing GRUB menu?

Thanks in advance!
Robert

Posted by mikshaw on Aug. 06 2005,15:55
If you have grub already, there's no reason to use the grub frugal installer.  Just mount the ISO, copy the files onto your chosen partition, and then add it to grub's menu.lst file (probably in Ubuntu's /boot/grub).
Posted by stoneguy on Aug. 07 2005,03:18
Does this mean I could add DSL to a system that already has Ubuntu on it without adding any new partitions? Basically, what I want to have happen is a boot-time chroot at the end of stage2.

My only other choice is to put DSL in the 2nd hd, but not in the 1st partition. In cbagger01's instructions in
<
http://damnsmalllinux.org/cgi-bin....RL]
is mention that /KNOPPIX/KNOPPIX should go on the 1st drive. Is that really mandatory?

In case anyone's wondering, I want to build a custom kernel for my DSL system. But the prospect of doing that on a 64MB P133 is unappealing - and I have a somewhat larger and faster system dual-booting Win98 and Ubuntu.

Posted by mikshaw on Aug. 07 2005,03:41
I don't think it's mandatory...DSL should run from any available ext2/ext3/reiser partition as long as grub is properly configured.  If it doesn't then there is something seriously messed up with DSL/Knoppix.  I haven't tried this, but i don't see any reason why frugal couldn't be put on an existing partition, even if there is an operating system already there.  As long as there are no problems with filenames (both systems needing different files of the same name), it should work fine.  Since frugal extracts into ramdisk, your ubuntu should be untouched.

Just for the sake of organization, though, it's probably best to have a separate partition for each operating system

Posted by cbagger01 on Aug. 07 2005,04:07
I think you can load it to other partitions, but you will probably need to add something like this to your append statement:

fromhd=/dev/hda2

if you were going to boot from partition hda2 for example.

Posted by ivrobi on Aug. 07 2005,04:42
Thank you, guys! I'll give a try.
Posted by stoneguy on Aug. 08 2005,02:20
Here's a solution to frugal under Ubuntu, after assembling everyone's tips in this and other threads
.
BACKGROUND
Stoneguy1 is a dual boot Win98/DSLfrugal system. It has a leftover swap partition from another linux.

Stoneguy2 is a dual boot Win98/ubuntu system. This going to be the system that's having DSLfrugal added. Since I'm an old UNIX hacker, I installed ubuntu to separate root, boot, and home partitions. On this system, boot=hda5, home=hda7, and root=hda8. It also has a swap partition.

PREPARATION
I booted Stoneguy1 into DSL, and copied off /cdrom/boot/linux24 to DSLlinux24, and /cdrom/boot/minirt24.gz to DSLminirt24.gz so they could be moved to to Stoneguy2 (floppies, network drives, whatever).

INSTALLING
Then I booted Stoneguy2 into ubuntu.
First I copied DSLlinux24 and DSLminirt24.gz (from above) to hda8.
Then. from the CD burnt from the downloaded ISO, I copied the KNOPPIX file onto hda5.

Finally I added the following to menu.lst
title DSLfrugal
root (hd0,7)
kernel /DSLlinux24 root=/dev/hda8 fromhd=hda5 home=hda7 restore=hda7 frugal
initrd /DSLminirt24.gz
savedefault
boot

Add whatever else you need to the kernel line above. Reboot, and there's the menu entry for DSL.

COMMENT
I'm not so sure it would've worked if ubuntu's /home hadn't been on its own partition, and if frugal lacked the flexibility to specfy the locations of opt and home. Notice that DSL's /home is ON hda7, whereas ubuntu's /home IS hda7. No collision. Also, note that DSL's /opt is on hda7, whereas ubuntu's /opt is on hda8. No collision.

Posted by mikshaw on Aug. 08 2005,02:59
If you don't specify opt and home they will be located in ramdisk, so still no collision.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.