Boot From Local File On Disk [SOLVED]

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Boot From Local File On Disk [SOLVED]

Postby serene » Sun Jul 15, 2012 10:13 pm

Hi.

What would be the best approach to booting a custom Debian Squeeze from a local file on disk ?

I've considered;
- .iso
- iscsi

I wish to also avoid virtualiztions, i.e. VirtualBox etc.

I'm not turning up much info on better alternatives to the above.

Thank you.
Serene
User avatar
serene
LXF regular
 
Posts: 111
Joined: Sun Jun 19, 2005 12:43 pm

Postby ajgreeny » Mon Jul 16, 2012 9:46 pm

I am not sure if either of these two links will help but they may give you some ideas that you can work on and adapt for your needs.
http://ubuntuforums.org/showthread.php?t=1838959
http://ubuntuforums.org/showthread.php?t=1288604
Xubuntu 12.04 user, and loving it!
ajgreeny
LXF regular
 
Posts: 461
Joined: Wed May 10, 2006 8:18 pm
Location: Oxfordshire.

Postby serene » Tue Jul 17, 2012 11:08 pm

Thanks ajgreeny.

Is it your opinion that the 'only' way to boot from a file is via .iso ?
User avatar
serene
LXF regular
 
Posts: 111
Joined: Sun Jun 19, 2005 12:43 pm

Postby ajgreeny » Wed Jul 18, 2012 7:32 pm

serene wrote:Thanks ajgreeny.

Is it your opinion that the 'only' way to boot from a file is via .iso ?
I've no idea about that.
Xubuntu 12.04 user, and loving it!
ajgreeny
LXF regular
 
Posts: 461
Joined: Wed May 10, 2006 8:18 pm
Location: Oxfordshire.

Postby nelz » Wed Jul 18, 2012 9:58 pm

If you don't want to use an emulator, then most likely yes. the reason is that a bootloader can only boot from a restricted list of media types, most of which are physical devices. An ISO image is the only file type, AFAIK, that GRUB can boot from.

You could mount the file on another computer and set up network booting, but that is ridiculously complex for most uses.

Why do you have to boot from a file, why not a partition on your hard disk, or a USB device?
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8553
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby serene » Sun Jul 22, 2012 3:11 am

Thanks Nelz.

The reason I wish to boot from a file is to eventually load all the OS into memory. I have a client that is attempting to verify boot file integrity via sha256sum for any corruption or tampering.

Cheers.

Serene
User avatar
serene
LXF regular
 
Posts: 111
Joined: Sun Jun 19, 2005 12:43 pm

Postby nelz » Sun Jul 22, 2012 8:37 am

Then I'd create a hybrid ISO, one that can be booted from CD or USB stick and give the client the ISO as well as the boot medium, that way they can check the integrity themselves.

Using the live CD approach can get everything down to two files, the kernel and the root filesystem as a squashfs.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8553
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby serene » Sun Jul 22, 2012 4:52 pm

Nelz, you're real good.

Cheers

[SOLVED]
User avatar
serene
LXF regular
 
Posts: 111
Joined: Sun Jun 19, 2005 12:43 pm

Postby Rhakios » Mon Jul 23, 2012 7:44 pm

There we go, set as solved properly.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK


Return to Help!

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests