Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
For many distro's there will be a small (<50MB) ISO image whose only purpose it to boot up with and choose one of several installation options, such as from a network directory, or from an image. This small image may be in the DVD image, so you could mount it using a loop device and explore the disk for the exact instructions:
sudo mount -t iso9660 <dvdimagefile> /mnt -o ro,loop
If such an install.iso or boot.iso exists, burn that to a CD and boot with it.
How much spare room do you have on your hard drive? Is there enough room to make a 4.5 gig partition for the .iso (unpacked), as well as a partition to install Slackware into?
If so, make and format the 4.5 gig partition, mount the .iso as jschiwal instructed, then use these instructions (quoting myself from an earlier post on how to mount and install an iso from the hard drive, without floppy, cd/dvd, or flash drive).
Just change the references to distro name to Slackware, and references to hard drive and partition to whatever applies to the partition you make to hold the unpacked .iso.
1. You could format hda4 for ext2 (don't need journaled fs; this is for temporary use to install the liveCD from the hard drive). Remember that hds4 must be unmounted when you run mkfs to format it.
2. Download the liveCD you want to try into DSL.
3. Make a temporary directory to mount the iso into: mkdir /mnt/iso.
4. Make a mount point for /dev/hda4: mkdir /mnt/hda4.
4. Mount the iso: mount -t iso9660 -o loop /path/to/image.iso /mnt/iso. Then mount hda4: mount /dev/hda4 /mnt/hda4.
6. Copy the mounted iso into hda4: cp -R /mnt/iso/* /mnt/hda4.
7. Unmount the iso: umount /mnt/iso.
Now some tricky work. Some livdCDs use isolinux to boot; oters use syslinux. At any rate, you want to set this up so that your current grub installation in DSL can boot the iso now copied to hda4. To do that, grub wants to find the kernel imange and initrd image in a boot folder, which may or may not exist in the liveCD you unpacked. If there is no boot folder, create one.
8. Find the kernel image and initrd and move/copy them into the boot folder you just created. In some distros the kernel image may be called vmlinuz; in others it may be called linux. One I could name has a linux and a vmlinuz file. By experimentation I learned that vmlinuz doesn't boot, but linux does (openSUSE 10.3 iso). So you may have to try more than one file in your grub config to get it to work.
At this point you are done with the iso you copied to hda4.
9. In DSL, cd to /boot/grub and edit menu.lst (or grub.conf if that's what's used) to add an entry for the iso you want to boot.
kernel (hd0,3)/boot/linux root=/dev/hda4 <other boot parameters, if any>.
initrd (hd0,3)/boot/initrd.gz (or whatever it's called).
Save and exit.
10. Reboot. You should see grub menu entries for DSL and the iso you copied to hda4.
11. Select the iso and press enter. If you got the correct kernel image file and initrd in the iso's boot folder, it should boot.
Now you can run is as a liveCD from the hard drive, try it out, put it through it's paces. If you want to install to the DSL partition, run the installer script.
Once you have it working, you can delete the iso image you downloaded and the mount point /mnt/iso. Once you have installed the liveCD to the present DSL partition, you can reformat hda4 to get rid of the unpacked iso.
Nicest thing about it all is that you can create several small cd sized partitions (or dvd sized partitions) to run liveCD/DVDs from the hard drive without a working CD/DVD drive.
Bottom line: this is the technique I used for openSUSE 10.3 iso image. Have it to the point that I can boot it. But, it isn't a liveCD, so it wants to install and I've not done the rest of what I need to do vis a vis creating a partition for it to install into.
Saikee hangs out in these parts. He may be able to tell you how to use the chainloader option in the grub conf file to boot the iso without creating folders and moving/coping files.
You may also want to investigate using virtualization software as a means to boot isos on hard drive, such as qemu.
I've used the steps listed above to copy and boot OpenSuse 10.3 installation .iso (although I haven't installed it yet; still musing the partition re-distribution I want to do first).
Hi. Some distros have a directory with MS-DOS tools to boot linux from MS-DOS or Windows. Take a look in the subdirectories of the DVD (from MS or Linux) and extract rawrite.exe (or some like this name) and the floppy iso.
Then (in MS)
rawrite floppy.iso a:
dd if=floppy.iso of=/media/floppy