LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Fluxbuntu - "poor man's install" - is it possible (http://www.linuxquestions.org/questions/ubuntu-63/fluxbuntu-poor-mans-install-is-it-possible-531616/)

uncle-c 02-23-2007 05:01 AM

Fluxbuntu - "poor man's install" - is it possible
 
Basically I do not want to do a proper HDinstall, I just want to copy the entire contents of the live CD onto a spare partition and boot from there. I know this was possible in Knoppix using the "frmhd=/dev/hd*" cheat code. I was wondering if there is something similar for Fluxbuntu.
I've made initial attempts at this but only get as far as a limited shell.
I've got a grub boot floppy with Fluxbuntu as one of the menu options. The contents of the live CD are on /dev/hdb5 ( my 2nd hard drive)

Menu.lst is like this

Code:


title Fluxbuntu
root (hd1,4)
kernel /casper/vmlinuz ramdisk_size=1048576 root=/dev/hdb5 rw quiet splash--
initrd /capser/initrd.gz
savedefault
boot

I get to "uncompressing Linux kernel OK"
but then get error messages like "/dev/hdb5 on /root failed no such device."

/root/dev on /dev/.static failed
etc etc
Target filesystem does not have /sbin/init.
I then get dropped in an "ash" shell with limited functionality.

Obviously the kernel "cheat codes" need adjusting. Any ideas ?
I'm not sure this has been done before as I have got no response from the Fluxbuntu community forums.
Thanks.

Uncle

phantom_cyph 02-23-2007 05:20 AM

are you thinking of something similar to the Ubuntu live CD where you can tell it to install to the Hard Drive? Most liveCDs will allow for installation.

look at this screenshot:

http://shots.linuxquestions.org/?lin...Kubuntu%206.10

it already has the option for installing.

uncle-c 02-23-2007 05:38 AM

I think you misunderstood. It is not an "install" as such. What you do is manually copy all the files from your cd onto a spare partition. Then you give your bootloader (in my case Grub froom floppy) instructions to boot from that particular partition. There is no software installation as such. So in effect you are running the "live CD contents" but off your hard drive instead of the CD drive so your CD drive remains free for other tasks. This can be done in Knoppix where you use the "fromhd=/dev/(hd where your live cd files are kept)" cheat code.

uc

muha 02-23-2007 06:02 AM

Probably not what you mean but knoppix has the cheatcode toram which loads the kernel to ram memory and then ejects the cd.
http://www.kernel.org/pub/dist/knopp...cheatcodes.txt

alxarch 05-12-2007 12:42 PM

it just hit me!
 
i think the answer to the problem is NOT to change the root device to /dev/hdX but to put /dev/ram. this is because you are still on a live system which loads everything to ram. i'll try it out myself to see what will happen but i think that the first root=hd(X,Y) option doesn't have to be the same with the second.I'll post back for the results of my tests

uncle-c 05-15-2007 08:58 AM

Alxarch you are right.

I have successfully done the same with Slax. Here is the Grub stanza.

==========================================
title Slax 5.1.8

root (hd1,4)
kernel /boot/vmlinuz from=/dev/hdb5 root=/dev/ram0 ramdisk_size=1048576
max_loop=255 ide=nodma rw init=linuxrc

initrd /boot/initrd.gz
savedefault
boot
================================================

I will try the same with Fluxbuntu and see if it works. I assume the "from" boot option will be valid.

Cheers,
Uncle


All times are GMT -5. The time now is 09:31 AM.