Boot iso from Hard Disk... run without DVD or USB

Post your tutorials and howtos here.
wayne
Posts: 178
Joined: 25 Feb 2013 14:58

Boot iso from Hard Disk... run without DVD or USB

Postby wayne » 06 Feb 2014 14:03

At time, when we do not have DVD :( to make a bootable media with the iso,
and do not have USB flash :( to make a bootable media with the iso,

yet we wish to test a Linux iso...what can we do :?:

:idea: Run frugal install from Hard Disk.
There are several ways, such as
# poorman (frugal install), complicated process
# unetbootin on HardDisk.. tutorial available
# boot iso with grub2 ...this is the subject for this thread.

One simple way is run from Linux OS (installed on harddisk /usb drive)
The Linux OS must have grub2 boot loader.
grub legacy does not support boot iso from harddisk.

Here are the steps.

1. just confirm grub 2 version
I am running SolydK just converted from lmde-mate.

Code: Select all

lmdemate201303 wayne # grub-install -v
grub-install (GRUB) 1.99-27+deb7u2
2. ensure that grub-imageboot is installed, or just install with

Code: Select all

apt-get install grub-imageboot
3. create a directory /boot/images
Also, ensure you have enough space to store iso into /boot/images directory

Code: Select all

mkdir /boot/images

4. copy your linux iso files to /boot/images directory

as example, I copy solydkbe iso

Code: Select all

lmdemate201303 wayne # cd /boot/images
lmdemate201303 images # ls
solydkbe_201311.iso  

5. now, do a update-grub

just show the example from my terminal
lmdemate201303 images # update-grub
Generating grub.cfg ...
cat: /boot/grub/video.lst: No such file or directory
Found linux image: /boot/vmlinuz-3.11-2-686-pae
Found initrd image: /boot/initrd.img-3.11-2-686-pae
Found linux image: /boot/vmlinuz-3.11-2-486
Found initrd image: /boot/initrd.img-3.11-2-486
Found linux image: /boot/vmlinuz-3.2.0-4-486
Found initrd image: /boot/initrd.img-3.2.0-4-486
Found LinuxDeepin 2013 (2013) on /dev/sda1
Found Windows 7 (loader) on /dev/sda3
Found Debian GNU/Linux (jessie/sid) on /dev/sda6
Found Korora release 20 (Peach) on /dev/sda7
Found Semplice 6 (6) on /dev/sda9
Found memdisk: /boot/memdisk
Found iso image: /boot/images/solydkbe_201311.iso

done
lmdemate201303 images #
Notice the line
Found iso image: /boot/images/solydkbe_201311.iso

A corresponding line will appear in grub 2 menu upon reboot.

6. Reboot, choose the iso line , and see that it runs Live...

This saves the need to 'burn dvd, or burn usb flash'.


I have used various grub 2 versions, and usually works,
Tested working with SolydK with grub 1.99... as above,
however i notice it is somewhat slower than my other Debian xfce with grub 2.00-22


Anyway, you can upgrade grub2 version by temporarily add Debian Testing /Jessie repos, and do a apt-get install grub-pc. it should update to 2.00-22.

oh yes,, ymmv. :mrgreen:

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Boot iso from Hard Disk... run without DVD or USB

Postby ScottQuier » 06 Feb 2014 14:35

For when you don't want to install in a VM and don't (or can't) burn USB or DVD ..... That is just too cool! :D :)

I know what I'm doing this evening! :mrgreen: A question to be answered in my play, "Once you have the ISO booted and assuming it's a LiveDVD ISO, can one do an install from that point?"
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

dyfi
Posts: 88
Joined: 15 Mar 2013 17:45

Re: Boot iso from Hard Disk... run without DVD or USB

Postby dyfi » 06 Feb 2014 15:36

This might also be of interest:-

http://forums.solydxk.nl/viewtopic.php?f=5&t=2635

dyfi

wayne
Posts: 178
Joined: 25 Feb 2013 14:58

Re: Boot iso from Hard Disk... run without DVD or USB

Postby wayne » 06 Feb 2014 16:00

ScottQuier wrote: A question to be answered in my play, "Once you have the ISO booted and assuming it's a LiveDVD ISO, can one do an install from that point?"
Scott,
Yes, you can install from this "Live-iso".



ps.
Just did it for capturing some information.
I boot with SolydK-from-lmde, on grub menu, choose Solykbe.
It takes a while to load ... I think into RAM.. I have 4G RAM.

Then run Live mode, let it install onto /dev/sda1.
During installation, I check status of mounting..

solydxk@solydxk ~ $ sudo su
solydxk solydxk # blkid -o list
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/sda1 ext4 Deepin /target a46adc4f-32e6-48ec-a156-6ac6cbfb44d7
/dev/sda2 swap (not mounted) 52b0e520-baea-4258-bd0e-201f9b00f7ff
/dev/sda3 ntfs win7 (not mounted) C2E4D74EE4D74379
/dev/sda5 ntfs hp ntfs (not mounted) 66DD03076B36AB4E
/dev/sda6 ext4 debianXsid (not mounted) 8a3f1e34-195c-4449-a956-8942ce5cac2c
/dev/sda7 ext4 korrora_cinnamon (not mounted) a165310b-bb7d-4c99-a180-14b4e9ce4122
/dev/sda8 ext4 solydkfromlmde (not mounted) 2c947101-436e-4a7d-a28b-13224f8619aa
/dev/sda9 ext4 semplice (not mounted) 42be11b7-4bcb-4a6c-adb3-9141d6ff2a36
/dev/mtdblock0
iso9660 SolydK BE 64-bit /lib/live/mount/medium
/dev/loop0 squashfs /lib/live/mount/rootfs/filesystem.squashfs
/dev/loop1 squashfs /source

solydxk solydxk #
one interesting thing on mounting..appear to be all in RAM..
/dev/mtdblock0
iso9660 SolydK BE 64-bit /lib/live/mount/medium
/dev/loop0 squashfs /lib/live/mount/rootfs/filesystem.squashfs
/dev/loop1 squashfs /source




After completing the installation of Solydkbe, I run it, and now use the same blkid -o list command to check
solydkbe wayne # blkid -o list
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/sda2 swap <swap> 52b0e520-baea-4258-bd0e-201f9b00f7ff
/dev/sda3 ntfs win7 (not mounted) C2E4D74EE4D74379
/dev/sda5 ntfs hp ntfs (not mounted) 66DD03076B36AB4E
/dev/sda6 ext4 debianXsid (not mounted) 8a3f1e34-195c-4449-a956-8942ce5cac2c
/dev/sda7 ext4 korrora_cinnamon (not mounted) a165310b-bb7d-4c99-a180-14b4e9ce4122
/dev/sda8 ext4 solydkfromlmde (not mounted) 2c947101-436e-4a7d-a28b-13224f8619aa
/dev/sda9 ext4 semplice (not mounted) 42be11b7-4bcb-4a6c-adb3-9141d6ff2a36
/dev/sda1 ext4 / a46adc4f-32e6-48ec-a156-6ac6cbfb44d7
solydkbe wayne # uname -a
Linux solydkbe 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
solydkbe wayne #

User avatar
GeneC
Posts: 747
Joined: 12 Feb 2013 17:49
Location: Woods of Maine

Re: Boot iso from Hard Disk... run without DVD or USB

Postby GeneC » 06 Feb 2014 16:16

Hi Wayne... :D

Nice.
GeneC

Debian (Testing)
Siduction (Debian SID)

User avatar
Snap
Posts: 1244
Joined: 25 Aug 2013 20:01
Location: Spain

Re: Boot iso from Hard Disk... run without DVD or USB

Postby Snap » 24 Aug 2014 09:49

Golden topic. Thanks a bunch, wayne!
This likely means that your installation is broken. -Mr Pixbuf.

Image


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest