niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Debian
apt-cdrom on iso mount
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
Nick Wright
*nix forums beginner


Joined: 20 Jul 2006
Posts: 4

PostPosted: Thu Jul 20, 2006 10:10 am    Post subject: apt-cdrom on iso mount Reply with quote

I'm having some trouble getting apt to use a mounted .iso image on my
hdd.

I've set it up in my /etc/fstab as:

/root/debian-31r2-i386-binary-1.iso /mnt/deb_iso1 iso9660 loop,ro 0 0

and then ran the following

# apt-cdrom -d /mnt/deb_iso1 -m add
Using CD-ROM mount point /mnt/deb_iso1/
Identifying.. [bc7d47aca21b2972f0aaf5a21ff1fbd4-2]
Scanning Disc for index files.. Found 2 package indexes and 0 source indexes.
This Disc is called:
'Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)'
Reading Package Indexes... Done
Wrote 7051 records.
Writing new source list
Source List entries for this Disc are:
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)]/ unstable contrib main
Repeat this process for the rest of the CDs in your set.

no problem so far..

I now have this in my /etc/apt/sources.list:

deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)]/ unstable contrib main

and this in my /var/lib/apt/cdroms.list

CD::bc7d47aca21b2972f0aaf5a21ff1fbd4-2 "Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)";
CD::bc7d47aca21b2972f0aaf5a21ff1fbd4-2::Label "Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)";


aptitude update runs fine..

finally, I go to install a package:

# apt-get install apt-howto
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
apt-howto-ca apt-howto-common apt-howto-de apt-howto-el apt-howto-en
apt-howto-es apt-howto-fr apt-howto-it apt-howto-ja apt-howto-ko
apt-howto-pl apt-howto-pt-br apt-howto-ru apt-howto-tr
The following NEW packages will be installed:
apt-howto apt-howto-ca apt-howto-common apt-howto-de apt-howto-el
apt-howto-en apt-howto-es apt-howto-fr apt-howto-it apt-howto-ja
apt-howto-ko apt-howto-pl apt-howto-pt-br apt-howto-ru apt-howto-tr
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/3894kB of archives.
After unpacking 6078kB of additional disk space will be used.
Do you want to continue? [Y/n]
Media Change: Please insert the disc labeled
'Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)'
in the drive '/cdrom/' and press enter

And there's the problem -- why does it want to use /cdrom/ when I told
it the cdrom mount point was /mnt/deb_iso1?

Can I edit the sources.list file to override the cdrom mount point for
each .iso I want to use?

Thanks,

Nick


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Mumia W.
*nix forums Guru Wannabe


Joined: 08 May 2006
Posts: 153

PostPosted: Thu Jul 20, 2006 4:00 pm    Post subject: Re: apt-cdrom on iso mount Reply with quote

On 07/20/2006 05:09 AM, Nick Wright wrote:
Quote:
I'm having some trouble getting apt to use a mounted .iso image on my
hdd.
[...]
I now have this in my /etc/apt/sources.list:

deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)]/ unstable contrib main
[...]
Media Change: Please insert the disc labeled
'Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)'
in the drive '/cdrom/' and press enter

And there's the problem -- why does it want to use /cdrom/ when I told
it the cdrom mount point was /mnt/deb_iso1?
[...]

Use file:// rather than cdrom: for archives on disk. When
apt-get sees a cdrom: source, it naturally thinks that it's a
real CD-ROM device.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
iforone
*nix forums Guru


Joined: 28 Dec 2005
Posts: 330

PostPosted: Thu Jul 20, 2006 4:50 pm    Post subject: Re: apt-cdrom on iso mount Reply with quote

Quote:
I now have this in my /etc/apt/sources.list:

deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1
(20060419)]/ unstable contrib main
[...]
Media Change: Please insert the disc labeled
'Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)'
in the drive '/cdrom/' and press enter

And there's the problem -- why does it want to use /cdrom/ when I told
it the cdrom mount point was /mnt/deb_iso1?
[...]

Use file:// rather than cdrom: for archives on disk. When
apt-get sees a cdrom: source, it naturally thinks that it's a
real CD-ROM device.

Yup Wink
Here's what my file left me with after using the 1st Sarge CDROM (3.1rc1 at
that time). But; I have it (actually) commented out (a '#' prefixed to that
line), since I told the installer to no longer look there anymore.

~$ cat /etc/apt/sources.list

deb file:///cdrom/ sarge main

[...]

the above would be for Sarge - you may want to add 'contrib' and 'nonfree' to
the end (not sure).
Ex;
deb file:///cdrom/ sarge main contrib non-free

Review 'man apt-cdrom'

Regards


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Nick Wright
*nix forums beginner


Joined: 20 Jul 2006
Posts: 4

PostPosted: Fri Jul 21, 2006 12:50 am    Post subject: Re: apt-cdrom on iso mount Reply with quote

Quote:
I'm having some trouble getting apt to use a mounted .iso image on my
hdd.
[...]
I now have this in my /etc/apt/sources.list:

deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1
(20060419)]/ unstable contrib main
[...]
Media Change: Please insert the disc labeled
'Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)'
in the drive '/cdrom/' and press enter

And there's the problem -- why does it want to use /cdrom/ when I told
it the cdrom mount point was /mnt/deb_iso1?
[...]

Use file:// rather than cdrom: for archives on disk. When
apt-get sees a cdrom: source, it naturally thinks that it's a
real CD-ROM device.

That makes some degree of sense -- however, for one thing the mounted
iso image cannot be used directly as a file:// source as far as I can
tell (the Packages file is not in the expected place, etc -- please
correct me if I'm wrong about this!).

To use this DVD as a file source I think I'm going to have to copy all
the .debs out into a directory and generate my own Packages list as
described in the Apt howto (using a bunch of debs as a file source
etc).

Another thing is what happens if I have multiple CD drives? Does a deb
cdrom source always have to use the /cdrom/ pointer as the cd drive?
This does seem like a limitation as /cdrom/ might point to a cdrom
drive whereas in this case I'm using a DVD which would need to go in
the other drive (I know I can just adjust the symlink but still..).

Anyways, any further comments on this would be appreciated -- I'm
prolly just gonna copy off all the .debs and throw away the .iso
images. It does seem a shame that I can't use them though as jigdo
seems like a pretty handy mechanism to keep a current set of .isos on
my hard drive.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
David E. Fox
*nix forums Guru Wannabe


Joined: 30 May 2005
Posts: 148

PostPosted: Fri Jul 21, 2006 4:40 am    Post subject: Re: apt-cdrom on iso mount Reply with quote

On Fri, 21 Jul 2006 12:46:39 +1200
Nick Wright <nick@lsd.net.nz> wrote:

Quote:

Anyways, any further comments on this would be appreciated -- I'm
prolly just gonna copy off all the .debs and throw away the .iso

Hmm. I seem to be having what may be a related problem: Originally
(around November last year) I had downloaded the first dvd of Debian
Etch from snapshots, via jigdo. I used it initially as a source 'cd
rom' image.

Recently, I decided to re-jigdo the disk, from fresher snapshot
sources, and used apt-cdrom to add this new DVD as a source image. This
part went well. However, I wanted also to redo my apt-file database and
can't get past the part where apt-file asks for the DVD image, and
promptly spits out that it can't find the Packages.gz file.

--
------------------------------------------------------------------------
David E. Fox Thanks for letting me
dfox@tsoft.com change magnetic patterns
dfox@m206-157.dsl.tsoft.com on your hard disk.
-----------------------------------------------------------------------


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
iforone
*nix forums Guru


Joined: 28 Dec 2005
Posts: 330

PostPosted: Fri Jul 21, 2006 5:50 am    Post subject: Re: apt-cdrom on iso mount Reply with quote

Nick Wright wrote:

Quote:
Use file:// rather than cdrom: for archives on disk. When
apt-get sees a cdrom: source, it naturally thinks that it's a
real CD-ROM device.

That makes some degree of sense -- however, for one thing the mounted
iso image cannot be used directly as a file:// source as far as I can
tell

Why not?
Are you saying you never actually burned the CD image?

(the Packages file is not in the expected place, etc -- please
Quote:
correct me if I'm wrong about this!).

FWIW; the protocol is "file:///" _not_ "file://"

Regards

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Nick Wright
*nix forums beginner


Joined: 20 Jul 2006
Posts: 4

PostPosted: Fri Jul 21, 2006 7:50 am    Post subject: Re: apt-cdrom on iso mount Reply with quote

Quote:
Why not?
Are you saying you never actually burned the CD image?

(the Packages file is not in the expected place, etc -- please
correct me if I'm wrong about this!).

FWIW; the protocol is "file:///" _not_ "file://"

Well I burned the DVD but I dont want to use it :P

I had another look at file:/ and got it working (not sure what I had
wrong yesterday but this time it picked it up right away):

deb file:/mnt/deb_iso1/ stable main contrib


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 2:46 pm | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Debian
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Digital Camera Flash Memory won't Mount Mike McCarty Debian 10 Tue Jul 18, 2006 1:40 am
No new posts creating a nfs mount with write options tanushar@gmail.com AIX 3 Fri Jul 14, 2006 9:11 am
No new posts difficulties with nfs mount Dr. R. E. Hawkins FreeBSD 6 Tue Jul 11, 2006 5:31 pm
No new posts mount command need help mounting samba share Mike AIX 3 Mon Jul 10, 2006 10:32 pm
No new posts USB mount issues Serfico Suse 5 Mon Jul 10, 2006 10:07 pm

Online Advertising | Loans | Property Search | Secured Loans | Shopping 2007
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2577s ][ Queries: 16 (0.1535s) ][ GZIP on - Debug on ]