LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-15-2015, 07:52 AM   #1
Wocky
Member
 
Registered: Oct 2004
Location: Australia
Posts: 37

Rep: Reputation: 3
"apt-cdrom add" does nothing


This machine has DVD-RW drives to spare, and 10 of them have the complete wheezy set (one in each, of course.) The relevant entries in /etc/fstab is:
Code:
# grep cdrom /etc/fstab
/dev/sr3        /mnt/cdrom3     udf,iso9660 user,noauto,ro     0       0
/dev/sr4        /mnt/cdrom4     udf,iso9660 user,noauto,ro     0       0
/dev/sr5        /mnt/cdrom5     udf,iso9660 user,noauto,ro     0       0
/dev/sr6        /mnt/cdrom6     udf,iso9660 user,noauto,ro     0       0
/dev/sr7        /mnt/cdrom7     udf,iso9660 user,noauto,ro     0       0
/dev/sr8        /mnt/cdrom8     udf,iso9660 user,noauto,ro     0       0
/dev/sr9        /mnt/cdrom9     udf,iso9660 user,noauto,ro     0       0
/dev/sr10       /mnt/cdrom10    udf,iso9660 user,noauto,ro     0       0
/dev/sr11       /mnt/cdrom11    udf,iso9660 user,noauto,ro     0       0
/dev/sr12       /mnt/cdrom12    udf,iso9660 user,noauto,ro     0       0
#
I can manually mount the disks with mount, as normal:
Code:
# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdi1       197G   47G  141G  26% /
# mount /mnt/cdrom3
# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdi1       197G   47G  141G  26% /
/dev/sr3        3.7G  3.7G     0 100% /mnt/cdrom3
# ls -al /mnt/cdrom3
total 1298
dr-xr-xr-x  1 root root   4096 Apr 26  2014 ./
drwxr-xr-x 59 root root   4096 Jun 28  2014 ../
dr-xr-xr-x  1 root root   2048 Apr 26  2014 .disk/
-r--r--r--  1 root root   9264 Apr 26  2014 README.html
-r--r--r--  1 root root 176551 Apr 11  2014 README.mirrors.html
-r--r--r--  1 root root  87800 Apr 11  2014 README.mirrors.txt
-r--r--r--  1 root root    425 Apr 26  2014 README.source
-r--r--r--  1 root root   5829 Apr 26  2014 README.txt
-r--r--r--  1 root root     27 Apr 26  2014 autorun.inf
dr-xr-xr-x  1 root root   2048 Apr 26  2014 boot/
dr-xr-xr-x  1 root root   2048 Apr 26  2014 css/
lr-xr-xr-x  1 root root      1 Apr 26  2014 debian -> ./
dr-xr-xr-x  1 root root   2048 Apr 26  2014 dists/
dr-xr-xr-x  1 root root   4096 Apr 26  2014 doc/
dr-xr-xr-x  1 root root   2048 Apr 26  2014 efi/
dr-xr-xr-x  1 root root   2048 Apr 26  2014 firmware/
-r--r--r--  1 root root 159629 Apr 24  2014 g2ldr
-r--r--r--  1 root root   8192 Apr 24  2014 g2ldr.mbr
dr-xr-xr-x  1 root root   2048 Apr 26  2014 install/
dr-xr-xr-x  1 root root   2048 Apr 26  2014 install.amd/
dr-xr-xr-x  1 root root   4096 Apr 26  2014 isolinux/
-r--r--r--  1 root root 473031 Apr 26  2014 md5sum.txt
dr-xr-xr-x  1 root root   2048 Apr 26  2014 pics/
dr-xr-xr-x  1 root root   2048 Apr 26  2014 pool/
-r--r--r--  1 root root 366350 Apr 24  2014 setup.exe
dr-xr-xr-x  1 root root   2048 Apr 26  2014 tools/
-r--r--r--  1 root root    256 Apr 26  2014 win32-loader.ini
#head -2 /mnt/cdrom3/README.txt
        Debian GNU/Linux 7.5.0 "Wheezy" - Official amd64 DVD Binary-1
                               20140426-13:37
#
The same is true for the other 9 disks, of course (different contents, though.) With my /etc/apt/sources.list empty (actually, changing what's in /etc/apt/sources.list makes no difference whatsoever), the apt-cdrom ident command gives:
Code:
# apt-cdrom ident -d /mnt/cdrom3
Using CD-ROM mount point /mnt/cdrom3/
Mounting CD-ROM
Identifying.. [6d73808cb688810c8ef5c8c235d13cba-2]
Stored label:
Unmounting CD-ROM...
#
with similar results for the other 9 disks. When I try to add the disks to the apt system, though, nothing happens:
Code:
# apt-cdrom add -d /mnt/cdrom3
Repeat this process for the rest of the CDs in your set.
#
but the disk isn't added. The command takes a fraction of a second to run (0.024s, according to time(1)), and the drive is not accessed at all. I've tried all the options available to apt-cdrom, separately and multiply, without any useful results. There's absolutely no indication of what's wrong. I've tried adding the disk IDs to /etc/apt/sources.list manually:
Code:
# cat /etc/apt/sources.list
deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official amd64 DVD Binary-1 20140426-13:37]/ wheezy contrib main
#
but it makes no difference. I've tried adding Acquire::cdrom::mount "/mnt/cdrom3/"; to /etc/apt/apt.conf, but it makes no difference.
Code:
# cat /etc/apt/apt.conf
Acquire::cdrom::mount "/mnt/cdrom3/";
#
What the hell's going on? I'm beginning to think the whole apt system is irreparably brain-damaged, although it may be my brain that's damaged.

Am I missing something obvious? Is it a bug in apt-cdrom?
 
Old 04-15-2015, 08:18 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
The man page does say:
Quote:
each disc in a multi-CD set must be inserted and scanned separately to account for possible mis-burns
So maybe you should try it with just one drive at a time.

I've never used `apt-cdrom` so I can't really offer any more.
 
Old 04-15-2015, 08:29 AM   #3
Wocky
Member
 
Registered: Oct 2004
Location: Australia
Posts: 37

Original Poster
Rep: Reputation: 3
I just tried that. It made absolutely no difference. Thanks, though.
 
  


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
ssh session "disconnects" after "route add default ppp0", any suggestion? pettha Linux - Networking 2 09-15-2014 04:38 AM
[SOLVED] How to add the "dialout" group in my system without the command "groupadd"? floppy_stuttgart Linux - Networking 3 09-19-2013 02:55 PM
unique password for "update" and "synaptic" and "apt-get" SaintDanBert Linux - Security 1 09-17-2010 04:53 AM
"dpkg error in --configure" in most all (508) programs after "apt-get dist-upgrade" fluffymuffins Debian 3 08-09-2010 03:47 AM
DVD automount fails with "CDROM not ready yet" and "unaligned transfer" erica Linux - Hardware 1 12-14-2009 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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