Re: Installing from iso images.

2004-03-21 Thread bob parker
On Thu, 18 Mar 2004 06:27, Pigeon wrote:
> On Wed, Mar 17, 2004 at 02:11:59PM +1100, bob parker wrote:
> > On Wed, 17 Mar 2004 07:44, Pigeon wrote:
> > > If you've got them mounted all the time, you can stick deb file:
> > > statements in /etc/apt/sources.list pointed at the mounted images.
> > > (Can't remember the syntax off the top of my head but a combination of
> > > man sources.list and experimentation should get you there :-) )
> >
> > So far my experimenting + man sources.list has done no good at all. I'll
> > try your first idea if I have to, but I made a tiny script to take care
> > of the mounting and unmounting of the 7 isos so I'd like to get it going
> > if I could. The examples on the man page for using file: go nowhere.
>
> ...but I take it from another of your posts that you have now got it
> going? If not, when I get back to the relevant box (in a week or two)
> I'll post the sources.list off it.

Thanks I think I found out where I was going wrong.

Cheers
Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-21 Thread bob parker
On Thu, 18 Mar 2004 08:00, David wrote:


>
> Rather than treat them as ISO images, if you're going to have the images
> permanently stored on the HD, why not just copy the contents of the
> CDROMS into directories on an ext{2,3}, reiserfs - or whatever your
> poison - filesystem and then in your sources.list, define it as "deb
> file:..." instead of "deb cdrom:.."  If you did a raw copy of all files
> on the cdrom, all the control packages would be present, would they not,
> and a simple  update would update the apt database, would
> it not?

They are on as isos because I supply Linux distros of various flavours to 
members of my local lug. 
Also, as indicated in a previous post I found out what I was doing wrong and 
it seems to ok now.

Cheers
Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-17 Thread David
On Wed, Mar 17, 2004 at 02:11:59PM +1100, bob parker wrote:
> On Wed, 17 Mar 2004 07:44, Pigeon wrote:
> > On Wed, Mar 17, 2004 at 06:00:41AM +1100, bob parker wrote:

> > > When I use apt-get install whatever it comes back and asks for cdrom #x
> > > to be inserted. What I want to know is there some way I can divert this
> > > requirement to the corresponding iso image mounted on /mnt via the
> > > loopback device?

> > If you're loopback-mounting individual isos as required, I think you
> > can just switch to another VC and symlink /dev/cdrom to the mounted
> > image. If you've got them mounted all the time, you can stick deb file:
> > statements in /etc/apt/sources.list pointed at the mounted images.
> > (Can't remember the syntax off the top of my head but a combination of
> > man sources.list and experimentation should get you there :-) )
> 
> So far my experimenting + man sources.list has done no good at all. I'll try 
> your first idea if I have to, but I made a tiny script to take care of the 
> mounting and unmounting of the 7 isos so I'd like to get it going if I could.
> The examples on the man page for using file: go nowhere.

Rather than treat them as ISO images, if you're going to have the images
permanently stored on the HD, why not just copy the contents of the
CDROMS into directories on an ext{2,3}, reiserfs - or whatever your
poison - filesystem and then in your sources.list, define it as "deb
file:..." instead of "deb cdrom:.."  If you did a raw copy of all files
on the cdrom, all the control packages would be present, would they not,
and a simple  update would update the apt database, would
it not?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-17 Thread Pigeon
On Wed, Mar 17, 2004 at 02:11:59PM +1100, bob parker wrote:
> On Wed, 17 Mar 2004 07:44, Pigeon wrote:
> > If you've got them mounted all the time, you can stick deb file:
> > statements in /etc/apt/sources.list pointed at the mounted images.
> > (Can't remember the syntax off the top of my head but a combination of
> > man sources.list and experimentation should get you there :-) )
> 
> So far my experimenting + man sources.list has done no good at all. I'll try 
> your first idea if I have to, but I made a tiny script to take care of the 
> mounting and unmounting of the 7 isos so I'd like to get it going if I could.
> The examples on the man page for using file: go nowhere.

...but I take it from another of your posts that you have now got it
going? If not, when I get back to the relevant box (in a week or two)
I'll post the sources.list off it.

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F


pgp0.pgp
Description: PGP signature


Re: Installing from iso images. SOLVED

2004-03-17 Thread bob parker
On Wed, 17 Mar 2004 21:12, Brian Brazil wrote:

>
> Comment out(#) the cdrom lines. Then alter the paths for deb file until
> 'apt-get update' works correctly. Brute force but it worked for me.
>
> Brian

What I was doing wrong was failing to apt-get update after the mods to 
/etc/apt/sources.list. Soon as I tried that I was able to debug my source 
lines quite quickly.

Just showing 1 relevant line from each of sources.list and mount:
sources.list
deb file:/mnt/Debian3.0/CD1/debian woody contrib main non-US/main 
non-US/contrib

mount
/data/isos/debian/i386/woody/debian-30r2-i386-binary-1.iso on 
/mnt/Debian3.0/CD1 type iso9660 (rw,loop=/dev/loop0)

Still havene't installed anything from it because the apt-get update + 
upgrade is a 5 hour process for me just now.

Thanks all

Bob Parker


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-17 Thread Hugo Vanwoerkom
bob parker wrote:
Because I supply various Linuxes to members of my lug, I have quite a few iso 
images on hand including the 7 for Woody r2, and soon I will have the 13 for 
Sarge plus the dvd iso images.

When I use apt-get install whatever it comes back and asks for cdrom #x to be 
inserted. What I want to know is there some way I can divert this requirement 
to the corresponding iso image mounted on /mnt via the loopback device?

Thanks
Bob Parker

So what did you end up with?

Hugo

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-17 Thread Brian Brazil
On Wed, Mar 17, 2004 at 01:58:08PM +1100, bob parker wrote:
> apt-get does not barf but it just ignores the /mnt lines and demands a cd.
> 
> Here's /etc/sources.list
> deb file:/mnt/Debian3.0/CD1/ pool woody unstable main contrib non-US/contrib 
> non-US/main non-free
> deb file:/mnt/Debian3.0/CD2/ unstable main contrib non-free
> deb file:/mnt/Debian3.0/CD3/ unstable main contrib non-free
> deb file:/mnt/Debian3.0/CD4/ unstable main contrib non-free
> deb file:/mnt/Debian3.0/CD5/ unstable main contrib non-free
> deb file:/mnt/Debian3.0/CD6/ unstable main contrib non-free
> deb file:/mnt/Debian3.0/CD7/ unstable main contrib non-free
> 
> deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-7 
> (20021218)]/ unstable contrib main non-US/contrib non-US/main
> deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-6 
> (20021218)]/ unstable contrib main non-US/contrib non-US/main
> 

Comment out(#) the cdrom lines. Then alter the paths for deb file until
'apt-get update' works correctly. Brute force but it worked for me.

Brian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-17 Thread Brian Brazil
On Tue, Mar 16, 2004 at 02:51:56PM -0500, Johann Koenig wrote:
> On Tuesday March 16 at 07:38pm
> Brian Brazil <[EMAIL PROTECTED]> wrote:
> 
> > In fact I then export this to all my other systems with samba. BTW:
> > you can't loopback from NTFS.
> 
> Do you mean NFS? If so, have you looked at the option for /etc/exports
> 'nohide'? man exports

No, NTFS. I was installing Woody for a friend and wanted to loopmount off
images on his XP paritition. Ended up having to put them on the ext3
partition. He should be able to live with 500Mb free space.

Someone did mail me saying that is Debian-specific and fixed in newer
kernels. Googling provides:
http://www.ussg.iu.edu/hypermail/linux/kernel/0208.3/0489.html
I use Win98 and vfat so it doesn't really matter to me.

Brian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-16 Thread Paul Johnson
bob parker <[EMAIL PROTECTED]> writes:

> When I use apt-get install whatever it comes back and asks for cdrom
> #x to be inserted. What I want to know is there some way I can
> divert this requirement to the corresponding iso image mounted on
> /mnt via the loopback device?

Should be able to.  I would try editing the /etc/apt/sources.list to
point to the appropriate place you want to be your "CD," as long as
that location has the tree off one of the CDs.

-- 
 .''`. Paul Johnson <[EMAIL PROTECTED]>
: :'  :
`. `'` proud Debian admin and user
  `-   Debian.  Because it *must* work.  debian.org   aboutdebian.com


pgp0.pgp
Description: PGP signature


Re: Installing from iso images.

2004-03-16 Thread bob parker
On Wed, 17 Mar 2004 07:44, Pigeon wrote:
> On Wed, Mar 17, 2004 at 06:00:41AM +1100, bob parker wrote:
> > Because I supply various Linuxes to members of my lug, I have quite a few
> > iso images on hand including the 7 for Woody r2, and soon I will have the
> > 13 for Sarge plus the dvd iso images.
> >
> > When I use apt-get install whatever it comes back and asks for cdrom #x
> > to be inserted. What I want to know is there some way I can divert this
> > requirement to the corresponding iso image mounted on /mnt via the
> > loopback device?
>
> If you're loopback-mounting individual isos as required, I think you
> can just switch to another VC and symlink /dev/cdrom to the mounted
> image. If you've got them mounted all the time, you can stick deb file:
> statements in /etc/apt/sources.list pointed at the mounted images.
> (Can't remember the syntax off the top of my head but a combination of
> man sources.list and experimentation should get you there :-) )

So far my experimenting + man sources.list has done no good at all. I'll try 
your first idea if I have to, but I made a tiny script to take care of the 
mounting and unmounting of the 7 isos so I'd like to get it going if I could.
The examples on the man page for using file: go nowhere.

Cheers
Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-16 Thread bob parker
On Wed, 17 Mar 2004 06:38, Brian Brazil wrote:
> On Wed, Mar 17, 2004 at 06:00:41AM +1100, bob parker wrote:
> > Because I supply various Linuxes to members of my lug, I have quite a few
> > iso images on hand including the 7 for Woody r2, and soon I will have the
> > 13 for Sarge plus the dvd iso images.
> >
> > When I use apt-get install whatever it comes back and asks for cdrom #x
> > to be inserted. What I want to know is there some way I can divert this
> > requirement to the corresponding iso image mounted on /mnt via the
> > loopback device?
>
> Yip, that's my setup as my systems have no net access. Hence I can't
> look at the right now. Loopback mount(avoid spaces) and then add something
> like: /mnt/Debian-3.0/CD1/pool woody main contrib non-free
>

apt-get does not barf but it just ignores the /mnt lines and demands a cd.

Here's /etc/sources.list
deb file:/mnt/Debian3.0/CD1/ pool woody unstable main contrib non-US/contrib 
non-US/main non-free
deb file:/mnt/Debian3.0/CD2/ unstable main contrib non-free
deb file:/mnt/Debian3.0/CD3/ unstable main contrib non-free
deb file:/mnt/Debian3.0/CD4/ unstable main contrib non-free
deb file:/mnt/Debian3.0/CD5/ unstable main contrib non-free
deb file:/mnt/Debian3.0/CD6/ unstable main contrib non-free
deb file:/mnt/Debian3.0/CD7/ unstable main contrib non-free

deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-7 
(20021218)]/ unstable contrib main non-US/contrib non-US/main
deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-6 
(20021218)]/ unstable contrib main non-US/contrib non-US/main


I've tried various combinations of the stuff above to no avail.

Here's the result of mount:
/data/isos/debian/i386/woody/debian-30r2-i386-binary-1.iso on 
/mnt/Debian3.0/CD1 type iso9660 (rw,loop=/dev/loop0)
/data/isos/debian/i386/woody/debian-30r2-i386-binary-2.iso on 
/mnt/Debian3.0/CD2 type iso9660 (rw,loop=/dev/loop1)
/data/isos/debian/i386/woody/debian-30r2-i386-binary-3.iso on 
/mnt/Debian3.0/CD3 type iso9660 (rw,loop=/dev/loop2)
/data/isos/debian/i386/woody/debian-30r2-i386-binary-4.iso on 
/mnt/Debian3.0/CD4 type iso9660 (rw,loop=/dev/loop3)
/data/isos/debian/i386/woody/debian-30r2-i386-binary-5.iso on 
/mnt/Debian3.0/CD5 type iso9660 (rw,loop=/dev/loop4)
/data/isos/debian/i386/woody/debian-30r2-i386-binary-6.iso on 
/mnt/Debian3.0/CD6 type iso9660 (rw,loop=/dev/loop5)
/data/isos/debian/i386/woody/debian-30r2-i386-binary-7.iso on 
/mnt/Debian3.0/CD7 type iso9660 (rw,loop=/dev/loop6)

> I'd give the exact line but as I said I don't have it handy. Note that
> loop may only allow 8 mounts but that can be handled by a kernel boot
> parameter/module option (max_loop=256 IIRC).

I reckon when I get to Sarge I'll be just using the 2 dvd isos :-)

Any other ideas.

Thanks
Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Installing from iso images.

2004-03-16 Thread Pigeon
On Wed, Mar 17, 2004 at 06:00:41AM +1100, bob parker wrote:
> Because I supply various Linuxes to members of my lug, I have quite a few iso 
> images on hand including the 7 for Woody r2, and soon I will have the 13 for 
> Sarge plus the dvd iso images.
> 
> When I use apt-get install whatever it comes back and asks for cdrom #x to be 
> inserted. What I want to know is there some way I can divert this requirement 
> to the corresponding iso image mounted on /mnt via the loopback device?

If you're loopback-mounting individual isos as required, I think you
can just switch to another VC and symlink /dev/cdrom to the mounted
image. If you've got them mounted all the time, you can stick deb file:
statements in /etc/apt/sources.list pointed at the mounted images.
(Can't remember the syntax off the top of my head but a combination of
man sources.list and experimentation should get you there :-) )

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F


pgp0.pgp
Description: PGP signature


Re: Installing from iso images.

2004-03-16 Thread Johann Koenig
On Tuesday March 16 at 07:38pm
Brian Brazil <[EMAIL PROTECTED]> wrote:

> In fact I then export this to all my other systems with samba. BTW:
> you can't loopback from NTFS.

Do you mean NFS? If so, have you looked at the option for /etc/exports
'nohide'? man exports
-- 
-johann koenig
Now Playing: Social Distortion - Lost Child : Prison Bound
Today is Setting Orange, the 2nd day of Discord in the YOLD 3170
My public pgp key: http://mental-graffiti.com/pgp/johannkoenig.pgp


pgp0.pgp
Description: PGP signature


Re: Installing from iso images.

2004-03-16 Thread Brian Brazil
On Wed, Mar 17, 2004 at 06:00:41AM +1100, bob parker wrote:
> Because I supply various Linuxes to members of my lug, I have quite a few iso 
> images on hand including the 7 for Woody r2, and soon I will have the 13 for 
> Sarge plus the dvd iso images.
> 
> When I use apt-get install whatever it comes back and asks for cdrom #x to be 
> inserted. What I want to know is there some way I can divert this requirement 
> to the corresponding iso image mounted on /mnt via the loopback device?

Yip, that's my setup as my systems have no net access. Hence I can't
look at the right now. Loopback mount(avoid spaces) and then add something like:
/mnt/Debian-3.0/CD1/pool woody main contrib non-free

I'd give the exact line but as I said I don't have it handy. Note that
loop may only allow 8 mounts but that can be handled by a kernel boot
parameter/module option (max_loop=256 IIRC).

In fact I then export this to all my other systems with samba. BTW: you
can't loopback from NTFS.

Brian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]