Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Boot From Local File On Disk [SOLVED]

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
serene
LXF regular


Joined: Sun Jun 19, 2005 1:43 pm
Posts: 111

PostPosted: Sun Jul 15, 2012 11:13 pm    Post subject: Boot From Local File On Disk [SOLVED] Reply with quote

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
Back to top
View user's profile Send private message
ajgreeny
LXF regular


Joined: Wed May 10, 2006 9:18 pm
Posts: 453
Location: Oxfordshire.

PostPosted: Mon Jul 16, 2012 10:46 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
serene
LXF regular


Joined: Sun Jun 19, 2005 1:43 pm
Posts: 111

PostPosted: Wed Jul 18, 2012 12:08 am    Post subject: Reply with quote

Thanks ajgreeny.

Is it your opinion that the 'only' way to boot from a file is via .iso ?
Back to top
View user's profile Send private message
ajgreeny
LXF regular


Joined: Wed May 10, 2006 9:18 pm
Posts: 453
Location: Oxfordshire.

PostPosted: Wed Jul 18, 2012 8:32 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8464
Location: Warrington, UK

PostPosted: Wed Jul 18, 2012 10:58 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
serene
LXF regular


Joined: Sun Jun 19, 2005 1:43 pm
Posts: 111

PostPosted: Sun Jul 22, 2012 4:11 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8464
Location: Warrington, UK

PostPosted: Sun Jul 22, 2012 9:37 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
serene
LXF regular


Joined: Sun Jun 19, 2005 1:43 pm
Posts: 111

PostPosted: Sun Jul 22, 2012 5:52 pm    Post subject: Reply with quote

Nelz, you're real good.

Cheers

[SOLVED]
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7633
Location: Midlands, UK

PostPosted: Mon Jul 23, 2012 8:44 pm    Post subject: Reply with quote

There we go, set as solved properly.
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast