Re: Booting LiveCD from the Hard Disk

2016-08-23 Thread Tom Horsley
On Wed, 24 Aug 2016 00:18:21 +0930
Tim wrote:

> Surely it ought to be possible.

It is possible in many other distros (like the ubuntu
example I gave earlier), but once grub has done it's
thing, the linux kernel needs to know how to keep
going, which means loop mount and squashfs support
in the initrd, and probably strange and wondrous
kernel boot parameters you need to specify to tell
it about the iso file. Certainly the ubuntu example
needs funny kernel parameters.

So either fedora has the needed support and the
info you need to pass to the kernel boot line is
too obscure for anyone to figure out, or it doesn't
have everything it needs in the initrd, and it won't
work at all.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Booting LiveCD from the Hard Disk

2016-08-23 Thread Tim
Allegedly, on or about 23 August 2016, Tom Horsley sent:
> I mean boot the livecd ISO file directly off hard disk.

Surely it ought to be possible.  GRUB can do a PXE boot, that's just the
OS tree from some other source.  Perhaps there might be an intervening
step that mounts the ISO, but lets you chain into it.  Virtual computing
boots off an installation in a container.

Probably ISO files aren't going to be the best installation download in
the future.  Optical drives are being eliminated in Macs, PCs will
probably lose them soon enough.  The demand for blank DVDs has gone down
now that movie piracy has changed tack.  The future is probably a
bootcode and file archive that's not specific to any kind of media.  Of
course it would help if PC hardware wasn't made to pander to Microsoft's
demands, but for their users' needs.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64

Boilerplate:  All mail to my mailbox is automatically deleted, there is
no point trying to privately email me, I only get to see the messages
posted to the mailing list.

The mindset of software designers: You know that feature that you, and
many thousands of other users, found useful? We removed it, because we
didn't like it. We also hard-coded the default settings that you keep
customising.


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Booting LiveCD from the Hard Disk

2016-08-23 Thread Philip Rhoades

Tom,


On 2016-08-24 00:02, users-requ...@lists.fedoraproject.org wrote:

Date: Tue, 23 Aug 2016 23:50:01 +1000
From: Philip Rhoades <p...@pricom.com.au>
Subject: Booting LiveCD from the Hard Disk
To: Community support for Fedora users <users@lists.fedoraproject.org>
Message-ID: <e4a73c09c88cb7d26c9a2189c0489f79@localhost>
Content-Type: text/plain; charset=US-ASCII; format=flowed

People,

Whether I use a GRUB2 configuration to boot from the XFCE LiveCD iso or
extract the files and not have to use the loopback option - I get the
same problem - the boot process gets past linux and initrd and then has
problems ie:

[3.141117] localhost kernel: clocksource: tsc: mask:
0x max_cycles: 0x73401d16425, max_idle_ns: 881590940111
ns
[3.400709] localhost iscsid[324]: can't open InitiatorName
configuration file /etc/iscsi/initiatorname.iscsi
[3.400773] localhost iscsid[324]: Warning: InitiatorName file
/etc/iscsi/initiatorname.iscsi does not exist or does not contain a
properly formated InitiatorName. If using s
[3.400810] localhost iscsid[324]: can't open InitiatorAlias
configuration file /etc/iscsi/initiatorname.iscsi
[3.400845] localhost iscsid[324]: can't open iscsid.safe_logout
configuration file /etc/iscsi/iscsid.conf
[  124.495385] localhost kernel: random: nonblocking pool is 
initialized

[  124.799208] localhost dracut-initqueue[472]: Warning:
dracut-initqueue timeout - starting timeout scripts
[  125.306596] localhost dracut-initqueue[472]: Warning:
dracut-initqueue timeout - starting timeout scripts

. .

[  184.496528] localhost dracut-initqueue[472]: Warning:
dracut-initqueue timeout - starting timeout scripts
[  185.002817] localhost dracut-initqueue[472]: Warning:
dracut-initqueue timeout - starting timeout scripts
[  185.003527] localhost dracut-initqueue[472]: Warning: Could not 
boot.

[  185.004425] localhost dracut-initqueue[472]: Warning:
/dev/disk/by-label/Fedora-Live-Xfce-x86_64-24-1.2 does not exist
[  185.005291] localhost dracut-initqueue[472]: Warning:
/dev/mapper/live-rw does not exist
[  185.009415] localhost systemd[1]: Starting Setup Virtual Console...
[  185.010711] localhost systemd[1]: Started Setup Virtual Console.
[  185.119933] localhost kernel: audit_printk_skb: 3 callbacks
suppressed
[  185.120246] localhost kernel: audit: type=1130
audit(1471958788.345:12): pid=1 uid=0 auid=4294967295 ses=4294967295
subj=kernel msg='unit=systemd-vconsole-setup comm="systemd
[  185.012519] localhost audit[1]: SERVICE_START pid=1 uid=0
auid=4294967295 ses=4294967295 subj=kernel
msg='unit=systemd-vconsole-setup comm="systemd"
exe="/usr/lib/systemd/sys
[  185.012891] localhost systemd[1]: Starting Dracut Emergency Shell...

Indeed, /dev/disk/by-label does not exist but I don't know to how to 
fix

the problem - assuming it is possible to fix . .

Any ideas / suggestions?

(BTW, this stuff is not "Mission Critical" - it is just an interesting
exercise . . )

Thanks,

Phil.

--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--

Date: Tue, 23 Aug 2016 10:01:30 -0400
From: Tom Horsley <horsley1...@gmail.com>
Subject: Re: Booting LiveCD from the Hard Disk
To: users@lists.fedoraproject.org
Message-ID: <20160823100130.2134f9d6@zooty>
Content-Type: text/plain; charset=US-ASCII

On Tue, 23 Aug 2016 23:50:01 +1000
Philip Rhoades wrote:


Whether I use a GRUB2 configuration to boot from the XFCE LiveCD iso


I don't know if anyone ever tweaked fedora live cds to have
the required support to boot via grub. I know at one time I
read they wouldn't work that way. I do have several livecd
images setup to boot from disk, but none of them are fedora.



You will note I said the boot process gets past the linux and initrd 
stage - so it is past the grub stage and into the Fedora boot stage - 
this is a Fedora problem not a GRUB2 problem . .


Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Booting LiveCD from the Hard Disk

2016-08-23 Thread Tom Horsley
On Tue, 23 Aug 2016 14:15:52 +
Personal (open) wrote:

> ALL Current livecds boot with grub support. Do you perhaps mean boot
> from hdd (without grub or from grub to the hdd directly ? 

I mean boot the livecd ISO file directly off hard disk.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Booting LiveCD from the Hard Disk

2016-08-23 Thread Personal (open)
 

On 23.08.2016 14:01, Tom Horsley wrote: 

> On Tue, 23 Aug 2016 23:50:01 +1000
> Philip Rhoades wrote:
> 
>> Whether I use a GRUB2 configuration to boot from the XFCE LiveCD iso
> 
> I don't know if anyone ever tweaked fedora live cds to have
> the required support to boot via grub. I know at one time I
> read they wouldn't work that way. I do have several livecd
> images setup to boot from disk, but none of them are fedora.
> 
> Here's one that happens to be laying around:
> 
> menuentry "Boot Ubuntu 13.04 live cd" {
> insmod part_gpt
> insmod ext2
> set root='hd1,gpt1'
> search --no-floppy --fs-uuid --set=root 83693456-a3ef-4b35-a4bb-e0671367e40e
> set isofile="/booty/ubuntu-13.04-desktop-amd64.iso"
> loopback loop ($root)$isofile
> linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile 
> noprompt noeject
> initrd (loop)/casper/initrd.lz
> }
> 
> (I have no idea if it still works, there may be parts missing
> after all the time since I last booted it :-).
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org [1]
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct [2]
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines [3]
> Have a question? Ask away: http://ask.fedoraproject.org [4]

ALL Current livecds boot with grub support. Do you perhaps mean boot
from hdd (without grub or from grub to the hdd directly ? 

 If you wish to burn a boot-able Livecd to the disk directly you can
either dd the ISO OR use livecd-iso-disk (from the livecd-tools package)
like so: 

dd option: 

hdd=/dev/sdb 

sudo dd bs=4M if=~/Downloads/FedoraISO.iso of=/dev/sdb && sync 
-- 

Corey W Sheldon
ph: +1 (310).909.7672
0x8B4E89435A88E539 0x59276298D2264944

Freelance IT Consultant, Multi-Discipline Tutor
Fedora Ambassador,N.A. (linuxmodder)
Ameridea LLC Founder, President

Find me elsewhere:
https://gist.github.com/linux-modder/ac5dc6fa211315c633c9

"One must never underestimate the power of boredom...from which
creativity and laziness are borne, which can spark great works of chaos
and genius." --Anonymous

"Any man willing to retreat freedom for security is deserving of
neither." (Pp) -- Benjamin Franklin. 

This document, including attachments, is intended for the person or
company named and contains confidential and/or legally privileged
information. Unauthorized disclosure, copying or use of this information
may be unlawful and is prohibited. If you are not the intended
recipient, please destroy this message and notify the sender.
 

Links:
--
[1]
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
[2] http://fedoraproject.org/code-of-conduct
[3] http://fedoraproject.org/wiki/Mailing_list_guidelines
[4] http://ask.fedoraproject.org
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Booting LiveCD from the Hard Disk

2016-08-23 Thread Tom Horsley
On Tue, 23 Aug 2016 23:50:01 +1000
Philip Rhoades wrote:

> Whether I use a GRUB2 configuration to boot from the XFCE LiveCD iso

I don't know if anyone ever tweaked fedora live cds to have
the required support to boot via grub. I know at one time I
read they wouldn't work that way. I do have several livecd
images setup to boot from disk, but none of them are fedora.

Here's one that happens to be laying around:

menuentry "Boot Ubuntu 13.04 live cd" {
insmod part_gpt
insmod ext2
set root='hd1,gpt1'
search --no-floppy --fs-uuid --set=root 83693456-a3ef-4b35-a4bb-e0671367e40e
set isofile="/booty/ubuntu-13.04-desktop-amd64.iso"
loopback loop ($root)$isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile 
noprompt noeject
initrd (loop)/casper/initrd.lz
}

(I have no idea if it still works, there may be parts missing
after all the time since I last booted it :-).
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Booting LiveCD from the Hard Disk

2016-08-23 Thread Philip Rhoades

People,

Whether I use a GRUB2 configuration to boot from the XFCE LiveCD iso or 
extract the files and not have to use the loopback option - I get the 
same problem - the boot process gets past linux and initrd and then has 
problems ie:


[3.141117] localhost kernel: clocksource: tsc: mask: 
0x max_cycles: 0x73401d16425, max_idle_ns: 881590940111 
ns
[3.400709] localhost iscsid[324]: can't open InitiatorName 
configuration file /etc/iscsi/initiatorname.iscsi
[3.400773] localhost iscsid[324]: Warning: InitiatorName file 
/etc/iscsi/initiatorname.iscsi does not exist or does not contain a 
properly formated InitiatorName. If using s
[3.400810] localhost iscsid[324]: can't open InitiatorAlias 
configuration file /etc/iscsi/initiatorname.iscsi
[3.400845] localhost iscsid[324]: can't open iscsid.safe_logout 
configuration file /etc/iscsi/iscsid.conf

[  124.495385] localhost kernel: random: nonblocking pool is initialized
[  124.799208] localhost dracut-initqueue[472]: Warning: 
dracut-initqueue timeout - starting timeout scripts
[  125.306596] localhost dracut-initqueue[472]: Warning: 
dracut-initqueue timeout - starting timeout scripts


. .

[  184.496528] localhost dracut-initqueue[472]: Warning: 
dracut-initqueue timeout - starting timeout scripts
[  185.002817] localhost dracut-initqueue[472]: Warning: 
dracut-initqueue timeout - starting timeout scripts

[  185.003527] localhost dracut-initqueue[472]: Warning: Could not boot.
[  185.004425] localhost dracut-initqueue[472]: Warning: 
/dev/disk/by-label/Fedora-Live-Xfce-x86_64-24-1.2 does not exist
[  185.005291] localhost dracut-initqueue[472]: Warning: 
/dev/mapper/live-rw does not exist

[  185.009415] localhost systemd[1]: Starting Setup Virtual Console...
[  185.010711] localhost systemd[1]: Started Setup Virtual Console.
[  185.119933] localhost kernel: audit_printk_skb: 3 callbacks 
suppressed
[  185.120246] localhost kernel: audit: type=1130 
audit(1471958788.345:12): pid=1 uid=0 auid=4294967295 ses=4294967295 
subj=kernel msg='unit=systemd-vconsole-setup comm="systemd
[  185.012519] localhost audit[1]: SERVICE_START pid=1 uid=0 
auid=4294967295 ses=4294967295 subj=kernel 
msg='unit=systemd-vconsole-setup comm="systemd" 
exe="/usr/lib/systemd/sys

[  185.012891] localhost systemd[1]: Starting Dracut Emergency Shell...

Indeed, /dev/disk/by-label does not exist but I don't know to how to fix 
the problem - assuming it is possible to fix . .


Any ideas / suggestions?

(BTW, this stuff is not "Mission Critical" - it is just an interesting 
exercise . . )


Thanks,

Phil.

--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org