LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2008, 01:42 PM   #1
dstar101
Member
 
Registered: Oct 2007
Location: Quetta, Pakistan,South Asia
Distribution: Moving to Ubuntu very soon
Posts: 47

Rep: Reputation: 15
using apt on cd to create iso and use it virtually


Hi
I need some help.
I am using ubuntu 8.4.I have downloaded a lot of packages and saved them in a iso file using apt on cd and i have copied that iso on the usb drive.
Now my HDD got damaged and i have installed new copy of ubuntu now the problem is that in location where i am their is no fast internet connection (all are 52K dial up)so how can i use that iso file created by atponcd to get the packages installed.


In short how do i add a virtual cd-rom and install an iso in it

P.S:in windows it can be done using software like Virtual Cd,Daemon Tools or alcohol 130%
 
Old 06-19-2008, 02:35 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
loop-mount it to some directory

I did:
mkdir /mnt/iso
lsmod | grep loop - to check for the module, because I have not built this into the kernel
modprobe loop - to insert it
mount -o loop /home/me/install-x86-minimal-2007.0-r1.iso /mnt/iso
- as a test mounted the gentoo-install.iso I still had here to /mnt/iso

and under /mnt/iso are your files

Last edited by jomen; 06-19-2008 at 02:38 PM.
 
Old 06-20-2008, 12:26 AM   #3
dstar101
Member
 
Registered: Oct 2007
Location: Quetta, Pakistan,South Asia
Distribution: Moving to Ubuntu very soon
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for replying but it gave me the following error


Code:
mount: can't find /home/hassam/Documents/atp.iso in /etc/fstab or /etc/mtab
 
Old 06-20-2008, 01:43 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
You need to be root to be able to mount like that.
putting "sudo" in front of the command should do the job if you are on Ubuntu already.

It is normal that not every user is given the right to insert modules into kernel or attach filesystems not present in the
systems configuration (fstab in this case).

Last edited by jomen; 06-20-2008 at 01:45 AM.
 
Old 06-20-2008, 03:48 AM   #5
dstar101
Member
 
Registered: Oct 2007
Location: Quetta, Pakistan,South Asia
Distribution: Moving to Ubuntu very soon
Posts: 47

Original Poster
Rep: Reputation: 15
It worked i typed sudo in the start of command and it worked my files are in /mnt/iso
My problem is solved but how do i tell aptoncd to look in /mnt/iso instead of my cdrom
 
Old 06-20-2008, 04:22 AM   #6
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
put a line like this into /etc/fstab:
Code:
/home/hassam/Documents/atp.iso /mnt/iso	iso9660 loop,auto 0 0
for this to work

You need to make sure that the "loop" module is loaded on boot - it could be that this is done already for you - if it is not already done, you need to add it yourself to the list of modules to load on every boot.

I don't know the exact place for this in Ubuntu - it should be in:
/etc/modules.d/
or
/etc/modules.autoload.d/

You will need to find that out yourself - should not be too hard

Don't forget to create the directory /mnt/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
create iso hraposo Linux - Software 1 04-27-2008 01:48 AM
Create ISO FredGSanford Linux - General 2 01-20-2007 09:29 PM
How to create CD ISO from Fedora DVD ISO amjadakmal Fedora 2 05-24-2006 01:19 AM
Create DVD ISO BittaBrotha Linux - Software 1 11-29-2005 08:33 AM
how to create an iso BOOTABLE abd_bela Debian 1 06-04-2005 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:59 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