Installation:No CD

From Lunar Linux
(Difference between revisions)
Jump to: navigation, search
m (Reverted edit of Engelsman, changed back to last version by UkfNcg)
m (Usb bootable lunar)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[http://people.msoe.edu/~millerni/forums.php?show=topic&id=114&forum=13 meridia] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=157&forum=13 free wwe ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=128&forum=13 phentermine online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=158&forum=13 xanax online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=106&forum=13 hydrocodone online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=160&forum=13 zanaflex online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=102&forum=13 free ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=97&forum=13 buy didrex] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=135&forum=13 free real ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=100&forum=13 buy fioricet] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=96&forum=13 buy diazepam] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=136&forum=13 cheap rivotril] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=87&forum=13 ativan online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=144&forum=13 sonyericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=137&forum=13 free sagem ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=152&forum=13 verizon ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=139&forum=13 free sharp ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=125&forum=13 ortho online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=156&forum=13 cheap wellbutrin] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=151&forum=13 valium online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=121&forum=13 nexium online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=147&forum=13 tracfone ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=142&forum=13 sony ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=94&forum=13 cool ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=161&forum=13 zoloft] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=117&forum=13 free motorola ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=133&forum=13 qwest ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=138&forum=13 free samsung ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=122&forum=13 nextel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=89&forum=13 cheap celexa] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=99&forum=13 free ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=115&forum=13 free midi ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=146&forum=13 tenuate online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=109&forum=13 levitra online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=82&forum=13 adipex online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=132&forum=13 free punk ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=130&forum=13 cheap propecia] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=83&forum=13 cheap albuterol] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=85&forum=13 alprazolam online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=153&forum=13 viagra online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=148&forum=13 tramadol online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=143&forum=13 sony ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=86&forum=13 ambien online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=103&forum=13 free funny ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=104&forum=13 hgh online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=129&forum=13 polyphonic ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=90&forum=13 cheap cialis] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=123&forum=13 free nokia ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=101&forum=13 but flexeril] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=124&forum=13 online norco] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=149&forum=13 cheap ultracet] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=88&forum=13 cheap carisoprodol] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=108&forum=13 free kyocera ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=93&forum=13 clonazepam online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=127&forum=13 pharmacy online online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=95&forum=13 cheap cyclobenzaprine] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=150&forum=13 cheap ultram] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=111&forum=13 cheap lisinopril] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=159&forum=13 xenical online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=162&forum=13 cheap zyban] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=116&forum=13 mono ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=112&forum=13 lorazepam online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=145&forum=13 free sprint ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=110&forum=13 lipitor online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=131&forum=13 order prozac] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=120&forum=13 free music ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=105&forum=13 hoodia online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=155&forum=13 vigrx online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=98&forum=13 diethylpropion online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=113&forum=13 but lortab] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=154&forum=13 cheap vicodin] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=119&forum=13 free mtv ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=84&forum=13 free alltel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=141&forum=13 soma online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=107&forum=13 free jazz ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=140&forum=13 sildenafil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=126&forum=13 paxil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=118&forum=13 free mp3 ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=92&forum=13 cheap clomid] [http://people.msoe.edu/~millerni/forums.php?show=topic&id=91&forum=13 cingular ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic
+
Installing Lunar-Linux without a CD drive or other removable media isn't really that hard. There are several ways of emulating a cd-rom with linux. There's some easy ways and some hard ways. I'll try to discuss all of them.
 +
 
 +
''Disclaimer: The methods below might destroy all your data and not work for you at all. Make backups! You yourself are responsible for your own data and system!''
 +
 
 +
 
 +
__TOC__
 +
 
 +
 
 +
==Booting the ISO from a hard disk partition==
 +
 
 +
Yes, I'm not kidding. This is by far one of the easiest methods. The idea behind this method is that you can boot the ISO from any media, all you need to do is boot from it. If that means that the ISO is somehow written on your hard disk, and you have a bootloader capable of booting boot sectors (like lilo, grub, windows all can do), then you're in business.
 +
 
 +
'''requires:'''
 +
 
 +
* Enough free disk space plus partition big enough for the iso image
 +
* Any installed operating system and tools that allow directly to write to a partition
 +
* A working boot loader like windows' bootloader, lilo or grub
 +
 
 +
Your best bet is to free some space at the end of your disk. Make sure this is '''larger''' than the lunar iso (somewhere around 350mb). Create a partition and ''copy'' the contents of the iso to that partition:
 +
 
 +
cat lunar-1.5.1-i686.iso > /dev/hda15
 +
 
 +
Once done, you should edit your bootloader (be it windows or grub or lilo) and make it boot the boot sector of the iso. Here's the lilo entry you would need:
 +
 
 +
other = /dev/hda15
 +
    label = lunar-1.5.1
 +
 
 +
That's it! reboot and select the iso entry, and you're ready to go! The lunar installer should start and everything should work just as good as from a CD!
 +
 
 +
 
 +
==Chrooting into the ISO==
 +
 
 +
===Installing from 2.4 kernels with devfs support===
 +
 
 +
If the above method fails, you can always manually chroot into the ISO and start the installer manually too.
 +
 
 +
'''requires:'''
 +
 
 +
* A running linux installation with relatively new 2.4 kernel that has devfs support and  allows chroot usage (must be root)
 +
 
 +
This method is a bit trickier since you will be repartitioning your hard disk from which you just have booted, so you should actually install a '''small''' linux installation somewhere near the end of your disk, losetup/loopmount the iso on there, and then install to partitions that are NOT active/mounted. This might even fail since the kernel doesn't like changing partitions when it's running.
 +
 
 +
So, start out by getting your 'tiny' linux running anf booting. Preferably install it at the end of your hard disk and re-partition the beginning of your hard disk already for the lunar installation. Reboot your system so the partitions are known by the kernel, and prepare to mount the ISO over loop:
 +
 
 +
losetup /dev/loop0 lunar-1.5.1-i686.iso
 +
mount /dev/loop0 /mnt -o ro
 +
chroot /mnt /sbin/lunar-install
 +
 
 +
that's it! The installer should run and you can perform all steps necessary for installing lunar on the remaining partitions. At the end, make sure you don't accidentally overwrite your bootstrap linux installation so you can fallback to it. Beware that you might want to add the bootstrap bootloader info too, in case you want to boot that installation if something goes wrong. Once lunar installs succesfully, you can remove this partition of course.
 +
 
 +
===Installing from 2.6 kernels with udev support===
 +
 
 +
 
 +
===This is something different===
 +
When the previous installation methods fail this is one you can ry as well:
 +
 
 +
A more up-to-date method for 2.6 kernels with udev was outlined on #lunar (for installing from Debian?):
 +
 
 +
root@rescue ~ # wget http://download.lunar-linux.org/lunar/lunar-1.6.1-i686.iso.bz2
 +
root@rescue ~ # bunzip2 lunar-1.6.1-i686.iso.bz2
 +
root@rescue ~ # mkdir tmp
 +
root@rescue ~ # mount lunar-1.6.1-i686.iso -o loop -t iso9660 tmp
 +
root@rescue ~ # cp -R tmp/* /tmp/
 +
root@rescue ~ # cp -R tmp/.packages /tmp/
 +
root@rescue ~ # cp -R tmp/.lunar-cd /tmp/
 +
root@rescue ~ # cd /tmp/
 +
root@rescue /tmp # mkdir -p proc && mount -t proc proc ./proc
 +
root@rescue /tmp # mkdir -p dev && mount -o bind /dev ./dev
 +
root@rescue /tmp # mkdir -p dev/pts && mount -t devpts devpts ./dev/pts
 +
root@rescue /tmp # cd dev
 +
root@rescue /tmp/dev # ln -sf /proc/self/fd
 +
root@rescue /tmp/dev # ln -sf fd/0 stdin
 +
root@rescue /tmp/dev # ln -sf fd/1 stdout
 +
root@rescue /tmp/dev # ln -sf fd/2 stderr
 +
root@rescue /tmp/dev # rm null
 +
root@rescue /tmp/dev # mknod null c 1 3
 +
root@rescue /tmp/dev # cd
 +
 
 +
root@rescue ~ # chroot /tmp /sbin/lunar-install
 +
 
 +
Version numbers obviously change over time, so please check the steps above before you begin.
 +
 
 +
===Usb bootable lunar===
 +
Starting from Lunar 1.6.5 the ISO support hybrid mode. To prepare your usb stick with the lunar iso
 +
this is all you have to do
 +
 
 +
dd if=lunar.iso of=/dev/sdb bs=8192k
 +
 
 +
or alternatively using cat
 +
 
 +
cat lunar.iso > /dev/sdb
 +
 
 +
'''Note:''' Make sure it's /dev/sdb and not /dev/sdb1. Replace sdb with the device representing the usb stick on your system.
 +
 
 +
===Usb bootable lunar (old way, pre 1.6.5)===
 +
 
 +
root@morholt ~ # mkdosfs -F 16 /dev/sda1
 +
mkdosfs 2.11 (12 Mar 2005)
 +
root@morholt ~ # mkdir /mnt/stick
 +
root@morholt ~ # mkdir /mnt/iso
 +
root@morholt ~ # modprobe loop   
 +
root@morholt ~ # mount lunar-1.6.4-beta1-i686.iso -o loop /mnt/iso
 +
root@morholt ~ # mount /dev/sda1 /mnt/stick
 +
root@morholt ~ # cp -R /mnt/iso/isolinux /mnt/stick/syslinux
 +
root@morholt ~ # rename isolinux syslinux /mnt/stick/syslinux/isolinux*
 +
root@morholt ~ # ls /mnt/stick/syslinux/
 +
boot.cat  f2.txt  f4.txt          initrd  memtest  safe          syslinux.cfg
 +
f1.txt    f3.txt  generate-iso.sh  linux  readme  syslinux.bin
 +
root@morholt ~ # cp ~samuel/lunar-1.6.4-beta1-i686.iso /mnt/stick/
 +
root@morholt ~ # syslinux /dev/sda1
 +
root@morholt ~ # fdisk -l /dev/sda
 +
Disk /dev/sda: 1027 MB, 1027603456 bytes
 +
255 heads, 63 sectors/track, 124 cylinders
 +
Units = cylinders of 16065 * 512 = 8225280 bytes
 +
Disk identifier: 0x00000000
 +
 +
    Device Boot      Start        End      Blocks  Id  System
 +
/dev/sda1  *          1        125    1003464    b  W95 FAT32
 +
Partition 1 has different physical/logical endings:
 +
      phys=(1023, 254, 63) logical=(124, 236, 63)
 +
# following step installs an mbr on the usbstick. Pay attention you need the stick, not the partition on the stick!
 +
root@morholt ~ # dd if=/usr/share/syslinux/mbr.bin of=/dev/sda
 +
# if you want you can install the module ''mbr'' to do the same for you (root@morholt ~ # install-mbr /dev/sda)  NOT NEEDED IF YOU DID THE DD!!

Latest revision as of 17:23, 23 August 2010

Installing Lunar-Linux without a CD drive or other removable media isn't really that hard. There are several ways of emulating a cd-rom with linux. There's some easy ways and some hard ways. I'll try to discuss all of them.

Disclaimer: The methods below might destroy all your data and not work for you at all. Make backups! You yourself are responsible for your own data and system!


Contents


Booting the ISO from a hard disk partition

Yes, I'm not kidding. This is by far one of the easiest methods. The idea behind this method is that you can boot the ISO from any media, all you need to do is boot from it. If that means that the ISO is somehow written on your hard disk, and you have a bootloader capable of booting boot sectors (like lilo, grub, windows all can do), then you're in business.

requires:

  • Enough free disk space plus partition big enough for the iso image
  • Any installed operating system and tools that allow directly to write to a partition
  • A working boot loader like windows' bootloader, lilo or grub

Your best bet is to free some space at the end of your disk. Make sure this is larger than the lunar iso (somewhere around 350mb). Create a partition and copy the contents of the iso to that partition:

cat lunar-1.5.1-i686.iso > /dev/hda15

Once done, you should edit your bootloader (be it windows or grub or lilo) and make it boot the boot sector of the iso. Here's the lilo entry you would need:

other = /dev/hda15
    label = lunar-1.5.1

That's it! reboot and select the iso entry, and you're ready to go! The lunar installer should start and everything should work just as good as from a CD!


Chrooting into the ISO

Installing from 2.4 kernels with devfs support

If the above method fails, you can always manually chroot into the ISO and start the installer manually too.

requires:

  • A running linux installation with relatively new 2.4 kernel that has devfs support and allows chroot usage (must be root)

This method is a bit trickier since you will be repartitioning your hard disk from which you just have booted, so you should actually install a small linux installation somewhere near the end of your disk, losetup/loopmount the iso on there, and then install to partitions that are NOT active/mounted. This might even fail since the kernel doesn't like changing partitions when it's running.

So, start out by getting your 'tiny' linux running anf booting. Preferably install it at the end of your hard disk and re-partition the beginning of your hard disk already for the lunar installation. Reboot your system so the partitions are known by the kernel, and prepare to mount the ISO over loop:

losetup /dev/loop0 lunar-1.5.1-i686.iso
mount /dev/loop0 /mnt -o ro
chroot /mnt /sbin/lunar-install

that's it! The installer should run and you can perform all steps necessary for installing lunar on the remaining partitions. At the end, make sure you don't accidentally overwrite your bootstrap linux installation so you can fallback to it. Beware that you might want to add the bootstrap bootloader info too, in case you want to boot that installation if something goes wrong. Once lunar installs succesfully, you can remove this partition of course.

Installing from 2.6 kernels with udev support

This is something different

When the previous installation methods fail this is one you can ry as well:

A more up-to-date method for 2.6 kernels with udev was outlined on #lunar (for installing from Debian?):

root@rescue ~ # wget http://download.lunar-linux.org/lunar/lunar-1.6.1-i686.iso.bz2
root@rescue ~ # bunzip2 lunar-1.6.1-i686.iso.bz2 
root@rescue ~ # mkdir tmp
root@rescue ~ # mount lunar-1.6.1-i686.iso -o loop -t iso9660 tmp
root@rescue ~ # cp -R tmp/* /tmp/
root@rescue ~ # cp -R tmp/.packages /tmp/
root@rescue ~ # cp -R tmp/.lunar-cd /tmp/
root@rescue ~ # cd /tmp/
root@rescue /tmp # mkdir -p proc && mount -t proc proc ./proc
root@rescue /tmp # mkdir -p dev && mount -o bind /dev ./dev
root@rescue /tmp # mkdir -p dev/pts && mount -t devpts devpts ./dev/pts
root@rescue /tmp # cd dev
root@rescue /tmp/dev # ln -sf /proc/self/fd
root@rescue /tmp/dev # ln -sf fd/0 stdin
root@rescue /tmp/dev # ln -sf fd/1 stdout
root@rescue /tmp/dev # ln -sf fd/2 stderr
root@rescue /tmp/dev # rm null
root@rescue /tmp/dev # mknod null c 1 3
root@rescue /tmp/dev # cd
root@rescue ~ # chroot /tmp /sbin/lunar-install

Version numbers obviously change over time, so please check the steps above before you begin.

Usb bootable lunar

Starting from Lunar 1.6.5 the ISO support hybrid mode. To prepare your usb stick with the lunar iso this is all you have to do

dd if=lunar.iso of=/dev/sdb bs=8192k

or alternatively using cat

cat lunar.iso > /dev/sdb

Note: Make sure it's /dev/sdb and not /dev/sdb1. Replace sdb with the device representing the usb stick on your system.

Usb bootable lunar (old way, pre 1.6.5)

root@morholt ~ # mkdosfs -F 16 /dev/sda1
mkdosfs 2.11 (12 Mar 2005)
root@morholt ~ # mkdir /mnt/stick
root@morholt ~ # mkdir /mnt/iso
root@morholt ~ # modprobe loop     
root@morholt ~ # mount lunar-1.6.4-beta1-i686.iso -o loop /mnt/iso
root@morholt ~ # mount /dev/sda1 /mnt/stick
root@morholt ~ # cp -R /mnt/iso/isolinux /mnt/stick/syslinux
root@morholt ~ # rename isolinux syslinux /mnt/stick/syslinux/isolinux*
root@morholt ~ # ls /mnt/stick/syslinux/
boot.cat  f2.txt  f4.txt           initrd  memtest  safe          syslinux.cfg
f1.txt    f3.txt  generate-iso.sh  linux   readme   syslinux.bin
root@morholt ~ # cp ~samuel/lunar-1.6.4-beta1-i686.iso /mnt/stick/
root@morholt ~ # syslinux /dev/sda1
root@morholt ~ # fdisk -l /dev/sda
Disk /dev/sda: 1027 MB, 1027603456 bytes
255 heads, 63 sectors/track, 124 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         125     1003464    b  W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(124, 236, 63)
# following step installs an mbr on the usbstick. Pay attention you need the stick, not the partition on the stick!
root@morholt ~ # dd if=/usr/share/syslinux/mbr.bin of=/dev/sda
# if you want you can install the module mbr to do the same for you (root@morholt ~ # install-mbr /dev/sda)  NOT NEEDED IF YOU DID THE DD!!
Personal tools
Namespaces
Variants
Actions
Wiki Navigation
Project Sites
Toolbox