[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-cdrom on iso mount



> >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.



Reply to: