Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 16:43
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Use LILO (from another distro) to boot Puppy w/o CD
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Author Message
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Mon 07 Aug 2006, 14:19    Post subject:  Use LILO (from another distro) to boot Puppy w/o CD  

Using LILO (from another distro) to boot Puppy w/o CD
a.k.a. "Frugal Install," "Poor Man's Install," or "Option 1 install" using Lilo


To start off, I want to clarify that I am reffering to an "option 1" Puppy installation, as in it still uses pup001 OR pup_save.3fs. This is NOT for an "option 2" installation, which is Puppy installed to a partition.

This also assumes you have a working Lilo installation on a distro on your machine. Mine is in Vector Linux. You can either boot that distro and folow these instructions, or use chroot. For example, I have Vector mounted at /mnt/vector, so I can type "chroot /mnt/vector" and my terminal will switch to Vector's terminal with access to all Vector's software. Keep in mind you may encounter errors if you use chroot (though it works for me).

These instructions will work for Puppy 1 and Puppy 2. I wrote it for 2, but for 1 you just replace 'initrd.gz' with 'image.gz', 'pup_xxx.sfs' with 'usr_cram.fs', and 'pup_save.3fs' with 'pupxxx'.

pup_xxx.sfs, initrd.gz, and vmlinuz can all be found in the Puppy iso or on the cd. Mount the cd using MUT to access them. To get them from the iso, open a terminal and type "mount ISONAMEHERE /mnt/data -o loop" then go to /mnt/data to find the files. Make sure to unmount it with the command "umount /mnt/data".


Step 1
First, you need to choose which partition to use with the pup_save.3fs file. You need to put pup_xxx.sfs (pup_202.sfs for Puppy 2.02) there. If you already have a pup_save.3fs file or devx_xxx.sfs file that you want to use, they go there too. They all neet to be at the top of that partition.


Step 2
Next, go to the /boot/ directory of the distro that has Lilo. Make a directory called "puppy" there. Inside, place vmlinuz and initrd.gz.


Step 3
Okay, now open /ect/lilo.conf in that same distro. Add these lines to it.
Code:

# Puppy Linux
image = /boot/puppy/vmlinuz
    root = /dev/ram0
    label = PuppyLinux
    initrd = /boot/puppy/initrd.gz
    read-only

If you want to add those parameters that Puppy mentions when it boots, do it like this:
Code:

# Puppy Linux
image = /boot/puppy/vmlinuz
    root = /dev/ram0
    label = Puppy
    initrd = /boot/puppy/initrd.gz
    append = "pfix=ram"
    read-only

You can also add a password to your Puppy, or any other features that Lilo supports. Use "man lilo.conf" in the distro with Lilo to check it. That file can also be found on the internet.
If Lilo is set to automatically load another distro without allowing you to choose, you might want to change that. See "man lilo.conf" for more info. That file can also be found on the internet. Just type "man lilo.conf" into Google.


Step 4
Next, run the command "lilo" from the distro with Lilo. Assuming there are no errors, you are done. Smile Your computer will now be able to boot Puppy without a cd. To upgrade, repeat steps 1, 2, and 4. You do not need to repeat step 3.


I hope that all works. If not, let me know and I'll see what I can do. I am by no means a Lilo master, but I'll try my best Wink

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib


Last edited by Pizzasgood on Thu 17 Aug 2006, 11:39; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Wolfen


Joined: 18 Jul 2006
Posts: 86
Location: Behind you..

PostPosted: Thu 17 Aug 2006, 08:56    Post subject:  

Is there a way to install LILO in Puppy, meaning you are not depending on another Linux distro?
And is there a way to boot Windows from LILO, say dualbooting Puppy and Windows?

PS: Great that you have got LILO working, at least for your computer Wink

_________________
Wolfen
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11184
Location: Arizona USA

PostPosted: Thu 17 Aug 2006, 10:52    Post subject:  

Wolfen wrote:
Is there a way to install LILO in Puppy, meaning you are not depending on another Linux distro?

And is there a way to boot Windows from LILO, say dualbooting Puppy and Windows?
<>

I think what you want is to install LILO to the boot sector of the hard drive, replacing the Windows boot program. Then configure the LILO boot menu so that you can choose either Windows or Linux (if you have them both on the computer) when you boot.

If it doesn't work you can put the Windows boot program back by booting your Windows installation disk and running "fixmbr" and all will be as it was before.

_________________
Puppy Help 101 - an interactive tutorial for Lupu 5.25
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Thu 17 Aug 2006, 11:30    Post subject:  

Other than a failed attempt over the summer to manually transfer Lilo from Vector into Puppy file by file (as I didn't have access to a package), I haven't tried it. Other than this summer, I didn't need it. Maybe I'll make time to try it out the right way over the next couple days.

Mine is configured to boot Windows, Puppy, Ram-Puppy, and Vector. The lilo.conf looks like this:

Code:
# Partition 1 : DOS/Windows
other = /dev/sda1
    label = Windows
    table = /dev/sda

# Partition 2: Puppy Linux
image = /boot/puppy/vmlinuz
    root = /dev/ram0
    label = Puppy
    #append = "acpi=off  PFILE=no"
    initrd = /boot/puppy/initrd.gz
    password = ************
    read-only
   
# Partition 3: Ram-Puppy
image = /boot/puppy/vmlinuz
    root = /dev/ram0
    label = RamPuppy
    append = "pfix=ram"
    initrd = /boot/puppy/initrd.gz
    password = ************
    read-only

# Partition 4: Linux GUI mode
image = /boot/vmlinuz
    root = /dev/sda6
    label = Vector
    append = ""
    read-only


That's not the best way to do the password-protection, but I'm lazy and the only people it's stopping are people who wouldn't know how to beat it anyway.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
dani

Joined: 23 Aug 2006
Posts: 2

PostPosted: Wed 23 Aug 2006, 12:25    Post subject:  

Pizzasgood, I followed exactly your instructions, but when I want to install lilo, I get the following error with the puppylinux entry:

Code:
Fatal: Setup length exceeds 31 maximum; kernel setup will overwrite boot loader


any idea what might be wrong?
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 23 Aug 2006, 17:46    Post subject:  

Maybe the "label" entry is too long. Make sure it's concise. Try just "Puppy" to test it, just to be sure it's small enough.

Otherwise I don't know off the top of my head. If shortening it doesn't work, post your entry and we can examine it.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
Wolfen


Joined: 18 Jul 2006
Posts: 86
Location: Behind you..

PostPosted: Fri 25 Aug 2006, 08:09    Post subject:  

How do I install LILO, or where to get the the install-file?
_________________
Wolfen
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Fri 25 Aug 2006, 22:57    Post subject:  

I don't know. Installing it is still on my to-do list. I'm going to jam it in sometime between now and October, because if I get it working I may include it with Pizzapup.

If you search the net a bit, you should find some packages. I don't know if it can work with Puppy or not. It should, but it may need some libraries.

Probably you'd have to run "unrpm" or "undeb" or "tar -zxf" to unpack it, then either compile it or move the files to the correct places, depending on if it's a source or binary.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11184
Location: Arizona USA

PostPosted: Fri 25 Aug 2006, 23:11    Post subject:  

The easiest way I found to install LILO is with a Mandrake 9 or 10 installation CD. The real advantage of installing LILO that way is that you can use the GUI LILO configuration program in Mandrake - which requires a (minimal) installation of Mandrake.
Back to top
View user's profile Send private message 
noip

Joined: 06 Oct 2005
Posts: 93
Location: Sydney

PostPosted: Sat 26 Aug 2006, 23:54    Post subject:  

From a previous post...

http://www.murga.org/~puppy/viewtopic.php?t=6278&highlight=lilo

Rgds

GS
Back to top
View user's profile Send private message 
gamfa

Joined: 26 Oct 2005
Posts: 113
Location: So. Central Indiana, USA

PostPosted: Sun 27 Aug 2006, 10:21    Post subject:  

If you load a complete lilo package, say from slackware, It includes a config utility called liloconfig, It's installed in /sbin.
_________________
"Don't tell my cattle that I have leather seats in my truck"

"I don't let my schooling get in the way of my education"...Mark Twain
Back to top
View user's profile Send private message 
sisifito

Joined: 16 Jul 2006
Posts: 17
Location: Argentina

PostPosted: Tue 03 Oct 2006, 23:21    Post subject:  

why puppy dont load my pup_save.sf3 ? in my hard dish i put all files needed pup_save.3fs devxxx.sfs , but puppy dont load my save file and when i shutdown de pc , it save all changes in my fat32 partition , but i have a ext3 partition
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 04 Oct 2006, 00:40    Post subject:  

Are pup_xxx.sfs and pup_save.sfs in the same place? Is the partition a big number? I have a problem with /dev/sda9 because Puppy goes only to /dev/sda8 by default.

Also, if you have any Puppy files (pup_save.3fs, etc.) in the fat partition, that may throw off Puppy's search. Make sure the puppy files on the ext3 partition are the only puppy files.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
sisifito

Joined: 16 Jul 2006
Posts: 17
Location: Argentina

PostPosted: Wed 04 Oct 2006, 01:11    Post subject:  

i had two pup_save.3fs , 1 in my fat partition an another in my ext3 partition , then i remove the pup_save in my fat part and puppy load the save file from the ext3 partition , thanks pizza Laughing
Back to top
View user's profile Send private message 
Gn2


Joined: 16 Oct 2006
Posts: 936
Location: virtual - Veni vidi, nihil est adpulerit

PostPosted: Tue 17 Oct 2006, 21:57    Post subject:  

http://freshmeat.net/projects/lilo/
http://www.google.ca/search?hl=en&ie=UTF-8&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=how+to+determine+installed+lilo+version&spell=1

May I suggest: Get lilo source - then follow offical documentation for use;


Once the configuration is edited to satisfaction - any optional parameters etc.;
Install it to device of choice - that can be floppy {/dev/fd0)

Suggestion - backup MBR/fstab
fdisk -l > my partitions_date_xx.txt
less /etc/lilo.conf >my_boot_loader.txt
less /etc/fstab >my drives.txt
/sbin/lilo -v4 -t >what _if.txt (("test & query")
***************************************************************
Off -topic - if wish to ask about any Puppy Cfgs - NOT how to implement them -
Where should this be posted:

Appologies for off-topic & inappropriate placement of errata

Last edited by Gn2 on Tue 24 Oct 2006, 00:50; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0889s ][ Queries: 12 (0.0047s) ][ GZIP on ]