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

Re: Storing Woody CD's on NFS mount point?



David Krider wrote:
I am trying to copy the Woody CD's to my NFS server, one per subdirectory, but using a "deb file:/foo/bar/disc1" sort of line in my /etc/apt/sources.list file isn't allowing me to use them. How do I go about setting this up so that I don't have to swap disks 8 times whenever I load software?

Thanks,
dk



Sorry <cough>
To: debian-user@lists.debian.org
From: Greg DeFreitas <greg@uniques.demon.co.uk>
Newsgroups: linux.debian.user
Subject: Re: Storing Woody CD's on NFS mount point?
Date: Sat, 26 Apr 2003 18:22:32 +0100
Message-ID: <3EAAC058.6000005@uniques.demon.co.uk>
References: <[🔎] 3EAA8A8B.9060104@davidkrider.com>
</cough>

Right, I can now post.

I would like to reply to the above as follows:

Rip CDs.
Put .img/.iso files...
====> On Server:
/etc/fstab

...
/home/greg/data/Woody-i386-CDs/debian-30r1-i386-binary-1_NONUS.img /cds/1 iso9660 defaults,loop,ro,user 0 0 /home/greg/data/Woody-i386-CDs/debian-30r1-i386-binary-2.img /cds/2 iso9660 defaults,loop,ro,user 0 0 /home/greg/data/Woody-i386-CDs/debian-30r1-i386-binary-3.iso /cds/3 iso9660 defaults,loop,ro,user 0 0 /home/greg/data/Woody-i386-CDs/debian-30r1-i386-binary-4.iso /cds/4 iso9660 defaults,loop,ro,user 0 0 /home/greg/data/Woody-i386-CDs/debian-30r1-i386-binary-5.iso /cds/5 iso9660 defaults,loop,ro,user 0 0 /home/greg/data/Woody-i386-CDs/debian-30r1-i386-binary-6.iso /cds/6 iso9660 defaults,loop,ro,user 0 0 /home/greg/data/Woody-i386-CDs/debian-30r1-i386-binary-7.img /cds/7 iso9660 defaults,loop,ro,user 0 0

/etc/exports

...
/cds/1          *(sync,ro)
/cds/2          *(sync,ro)
/cds/3          *(sync,ro)
/cds/4          *(sync,ro)
/cds/5          *(sync,ro)
/cds/6          *(sync,ro)
/cds/7          *(sync,ro)

====> On Client:
/etc/fstab

...
uniq:/cds/1     /cds/1  nfs     defaults,user   0       0
uniq:/cds/2     /cds/2  nfs     defaults,user   0       0
uniq:/cds/3     /cds/3  nfs     defaults,user   0       0
uniq:/cds/4     /cds/4  nfs     defaults,user   0       0
uniq:/cds/5     /cds/5  nfs     defaults,user   0       0
uniq:/cds/6     /cds/6  nfs     defaults,user   0       0
uniq:/cds/7     /cds/7  nfs     defaults,user   0       0
# mount -a
(or mount manually if using this method for installation only.)
# apt-cdrom add
!DON'T press enter yet!

Open another vc/xterm/whatever.

# mount --bind /cds/1 /cdrom
Repeat the above 2 commands in the 2 terminals for each cdrom in the distribution.

Then,
When the above works, run aptitude/apt-get/dselect/whatever.

When prompted for "cdromN", switch terminals, and repeat the mount command for THAT cdrom.

# mount --bind /cds/4 /cdrom

It will get automatically umounted after you switch back to the other terminal and press enter, and it gets the files it wants from that cdrom.

I found they aren't asked for in numerical order.
 HTH :-)



Reply to: