LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-08-2010, 11:00 PM   #1
bjamison
LQ Newbie
 
Registered: Feb 2010
Location: Georgia
Distribution: Linux Mint, Ubuntu Ultimate 2.3, OPen GEU, Mac OS X server.
Posts: 2

Rep: Reputation: 0
mounting an iso image to a partition


I wanted to know if it is possible to mount an ISO image to a partition and boot from that instead of a CD or DVD. I know it is easy to do it from a CD but I would like to know if I can also do it this way. Thank you.
 
Old 02-08-2010, 11:09 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Code:
mount -o loop /path/of/x.iso /path/of/mount point
I know it can be done with a vm because the image is treated the same way for disk, image,etc. It's a compressed system.
 
Old 02-08-2010, 11:45 PM   #3
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
I do not know about mounting an iso to a partition to boot from it but you could use dd to copy the iso to the partition.

Code:
dd if=/location/of/iso/file.iso of=/dev/partition
for example if I want to load linux.iso on partition 1 of SDA
Code:
dd if=linux.iso of=/dev/sda1
Not exactly sure how you would make the machine boot from that particular partition istead of another partition. you might be possible to modify grub or lilo to point to the partition I guess.
 
1 members found this post helpful.
Old 02-09-2010, 12:51 AM   #4
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Quote:
Originally Posted by bjamison View Post
I wanted to know if it is possible to mount an ISO image to a partition and boot from that instead of a CD or DVD. I know it is easy to do it from a CD but I would like to know if I can also do it this way. Thank you.
i would say:rather not.
you mount it, you reboot, and it ain't mounted no more. you need to do more than just mount it.

for sure you may mount it and chroot into it (perhaps using xnest if you need a gui). scroll down to "methods to customize the iso":
http://www.debe17.com/web_pages/dean...apr08.php.html
or check this:
http://sidux.com/index.php?module=Wi...g=Grub2isofrom
which i don't know.
or, from what i have heard, search if grub2 is able to do so and how.

using a virtual mashine is anyway a method which is more easy (sure: depends on what and why you want to do it). just point it to the iso.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting an ISO Image devinmcelheran Linux - Newbie 1 04-12-2009 08:56 PM
mounting ISO image satimis Linux From Scratch 12 10-22-2005 07:15 PM
Mounting iso image batev Slackware 11 10-20-2005 09:24 AM
Mounting iso image chadturner Linux - Newbie 11 09-08-2005 10:28 AM
mounting ISO from an image true_atlantis Linux - Newbie 2 01-20-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration