Debian Bug report logs - #282344
apt-cdrom: please change default CD-ROM mountpoint

version graph

Package: apt; Maintainer for apt is APT Development Team <deity@lists.debian.org>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: martin f krafft <madduck@debian.org>

Date: Sun, 21 Nov 2004 14:48:01 UTC

Severity: wishlist

Found in version 0.5.27

Done: Miguel Figueiredo <elmig@debianpt.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Message #3 received at submit@bugs.debian.org (full text, mbox, reply):

From: martin f krafft <madduck@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt-cdrom: please change default CD-ROM mountpoint
Date: Sun, 21 Nov 2004 15:37:04 +0100
[Message part 1 (text/plain, inline)]
Package: apt
Version: 0.5.27
Severity: wishlist

cirrus:~# apt-cdrom ident
Using CD-ROM mount point /cdrom/
Mounting CD-ROM
E: Unable to stat the mount point /cdrom/ - stat (2 No such file or directory)
E: Failed to mount the cdrom.

We are now using /media/cdrom by default. Please change APT. Thanks,

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #8 received at 282344@bugs.debian.org (full text, mbox, reply):

From: Matt Zimmerman <mdz@debian.org>
To: martin f krafft <madduck@debian.org>, 282344@bugs.debian.org
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Mon, 27 Dec 2004 18:50:23 -0800
On Sun, Nov 21, 2004 at 03:37:04PM +0100, martin f krafft wrote:

> Package: apt
> Version: 0.5.27
> Severity: wishlist
> 
> cirrus:~# apt-cdrom ident
> Using CD-ROM mount point /cdrom/
> Mounting CD-ROM
> E: Unable to stat the mount point /cdrom/ - stat (2 No such file or directory)
> E: Failed to mount the cdrom.
> 
> We are now using /media/cdrom by default. Please change APT. Thanks,

Until a symlink is provided for backward compatibility (/media/cdrom ->
/cdrom), this would break working systems.

-- 
 - mdz



Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Message #11 received at 282344@bugs.debian.org (full text, mbox, reply):

From: martin f krafft <madduck@debian.org>
To: Matt Zimmerman <mdz@debian.org>
Cc: 282344@bugs.debian.org
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Tue, 28 Dec 2004 10:27:28 +0100
[Message part 1 (text/plain, inline)]
also sprach Matt Zimmerman <mdz@debian.org> [2004.12.28.0350 +0100]:
> Until a symlink is provided for backward compatibility (/media/cdrom ->
> /cdrom), this would break working systems.

... this does not prevent you from changing to use /media/cdrom.
I purposely removed the /cdrom symlink to find problematic packages
which still use it.

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #16 received at 282344@bugs.debian.org (full text, mbox, reply):

From: Matt Zimmerman <mdz@debian.org>
To: martin f krafft <madduck@debian.org>
Cc: 282344@bugs.debian.org
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Tue, 28 Dec 2004 09:37:25 -0800
On Tue, Dec 28, 2004 at 10:27:28AM +0100, martin f krafft wrote:

> also sprach Matt Zimmerman <mdz@debian.org> [2004.12.28.0350 +0100]:
> > Until a symlink is provided for backward compatibility (/media/cdrom ->
> > /cdrom), this would break working systems.
> 
> ... this does not prevent you from changing to use /media/cdrom.
> I purposely removed the /cdrom symlink to find problematic packages
> which still use it.

There are a large number of installed systems which use /cdrom in
/etc/fstab.  Changing apt-cdrom's default mount point to /media/cdrom would
break apt-cdrom on those systems, unless there is some process to convert
them on upgrade.

-- 
 - mdz



Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to Otavio Salvador <otavio@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #21 received at 282344@bugs.debian.org (full text, mbox, reply):

From: Otavio Salvador <otavio@debian.org>
To: Matt Zimmerman <mdz@debian.org>
Cc: 282344@bugs.debian.org, martin f krafft <madduck@debian.org>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Tue, 28 Dec 2004 18:20:00 -0200
[Message part 1 (text/plain, inline)]
|| On Tue, 28 Dec 2004 09:37:25 -0800
|| Matt Zimmerman <mdz@debian.org> wrote: 

mz> On Tue, Dec 28, 2004 at 10:27:28AM +0100, martin f krafft wrote:
>> also sprach Matt Zimmerman <mdz@debian.org> [2004.12.28.0350 +0100]:
>> > Until a symlink is provided for backward compatibility (/media/cdrom ->
>> > /cdrom), this would break working systems.
>> 
>> ... this does not prevent you from changing to use /media/cdrom.
>> I purposely removed the /cdrom symlink to find problematic packages
>> which still use it.

mz> There are a large number of installed systems which use /cdrom in
mz> /etc/fstab.  Changing apt-cdrom's default mount point to /media/cdrom would
mz> break apt-cdrom on those systems, unless there is some process to convert
mz> them on upgrade.

But this kinda of upgrade process probably broke the policy since you
will need change /etc/fstab directly.

Another option is provide a symbolic link to old place and then
providing backward compatibility.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio@debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Message #24 received at 282344@bugs.debian.org (full text, mbox, reply):

From: martin f krafft <madduck@debian.org>
To: Matt Zimmerman <mdz@debian.org>
Cc: 282344@bugs.debian.org
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Wed, 9 Feb 2005 01:22:54 +0100
[Message part 1 (text/plain, inline)]
also sprach Matt Zimmerman <mdz@debian.org> [2004.12.28.1837 +0100]:
> There are a large number of installed systems which use /cdrom in
> /etc/fstab.  Changing apt-cdrom's default mount point to
> /media/cdrom would break apt-cdrom on those systems, unless there
> is some process to convert them on upgrade.

Can apt-cdrom check if /media/cdrom exists, and use /cdrom
otherwise?

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #29 received at 282344@bugs.debian.org (full text, mbox, reply):

From: Matt Zimmerman <mdz@debian.org>
To: martin f krafft <madduck@debian.org>
Cc: 282344@bugs.debian.org
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Tue, 8 Feb 2005 16:40:13 -0800
On Wed, Feb 09, 2005 at 01:22:54AM +0100, martin f krafft wrote:

> also sprach Matt Zimmerman <mdz@debian.org> [2004.12.28.1837 +0100]:
> > There are a large number of installed systems which use /cdrom in
> > /etc/fstab.  Changing apt-cdrom's default mount point to
> > /media/cdrom would break apt-cdrom on those systems, unless there
> > is some process to convert them on upgrade.
> 
> Can apt-cdrom check if /media/cdrom exists, and use /cdrom
> otherwise?

Not exactly; it would need to parse /etc/fstab to know which one to use.

-- 
 - mdz



Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Message #32 received at 282344@bugs.debian.org (full text, mbox, reply):

From: martin f krafft <madduck@debian.org>
To: Matt Zimmerman <mdz@debian.org>
Cc: 282344@bugs.debian.org
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Wed, 9 Feb 2005 01:55:37 +0100
[Message part 1 (text/plain, inline)]
also sprach Matt Zimmerman <mdz@debian.org> [2005.02.09.0140 +0100]:
> Not exactly; it would need to parse /etc/fstab to know which one to use.

True, although I wonder how many systems have a /media/cdrom
directory and continue to use /cdrom.

Anyway, parsing /etc/fstab should not be that hard, no?

if grep -q '[[:space:]]/media/cdrom' /etc/fstab; then
  if grep -q '[[:space:]]/cdrom' /etc/fstab; then
    # use /cdrom
  else
    # use /media/cdrom
  fi
else
  # use /cdrom
fi

This is conservative...

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #37 received at 282344@bugs.debian.org (full text, mbox, reply):

From: Matt Zimmerman <mdz@debian.org>
To: martin f krafft <madduck@debian.org>
Cc: 282344@bugs.debian.org
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Tue, 8 Feb 2005 17:05:40 -0800
On Wed, Feb 09, 2005 at 01:55:37AM +0100, martin f krafft wrote:

> also sprach Matt Zimmerman <mdz@debian.org> [2005.02.09.0140 +0100]:
> > Not exactly; it would need to parse /etc/fstab to know which one to use.
> 
> True, although I wonder how many systems have a /media/cdrom
> directory and continue to use /cdrom.

/media/cdrom will be created on upgrade, while /etc/fstab is unchanged, no?

-- 
 - mdz



Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Message #40 received at 282344@bugs.debian.org (full text, mbox, reply):

From: martin f krafft <madduck@debian.org>
To: Matt Zimmerman <mdz@debian.org>
Cc: 282344@bugs.debian.org
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Wed, 9 Feb 2005 02:50:25 +0100
[Message part 1 (text/plain, inline)]
also sprach Matt Zimmerman <mdz@debian.org> [2005.02.09.0205 +0100]:
> /media/cdrom will be created on upgrade, while /etc/fstab is
> unchanged, no?

I would not know by whom:

% dpkg -S /media/cdrom
dpkg: /media/cdrom not found.
% grep /media/cdrom /var/lib/dpkg/info/*.*inst || echo none
none

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to Vytautas Germanavicius <vytis@openoffice.lt>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #45 received at 282344@bugs.debian.org (full text, mbox, reply):

From: Vytautas Germanavicius <vytis@openoffice.lt>
To: 282344@bugs.debian.org
Subject: (nėra temos)
Date: Wed, 06 Apr 2005 19:29:55 +0300
When in debian users will be able to use apt with cdrom media without 
changing config files manually. It's so hard to use fstab parsing code, 
posted by  martin f krafft <madduck@debian.org> ?



Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to Frans Pop <elendil@planet.nl>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #50 received at 282344@bugs.debian.org (full text, mbox, reply):

From: Frans Pop <elendil@planet.nl>
To: 282344@bugs.debian.org
Subject: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint
Date: Thu, 20 Jul 2006 15:24:12 +0200
[Message part 1 (text/plain, inline)]
Please reconsider supporting /media/cdrom as default before the release of 
Etch as Etch will be the second Debian release where the installer 
creates /media/cdrom by default.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to stappers@stappers.nl (Geert Stappers):
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #55 received at 282344@bugs.debian.org (full text, mbox, reply):

From: stappers@stappers.nl (Geert Stappers)
To: 382424@bugs.debian.org, control@bugs.debian.org
Cc: 282344@bugs.debian.org
Subject: Re: Bug#382424: D-I hangs: /cdrom became /media/cdrom0
Date: Thu, 24 Aug 2006 09:36:58 +0200
retitle 382424 D-I hangs: /cdrom became /media/cdrom0
thanks

# clone 382424 -1
# reassign -1 apt

On Wed, Aug 23, 2006 at 08:58:23PM +0200, Jens Seidel wrote:
> 
> I can now reproduce it and found also the problem:
> APT is not able to mount a Debian CD, since APT searchs by default in
> /cdrom (see #282344) but /target/etc/fstab refers to /media/cdrom0.
> Setting Acquire::cdrom::mount "/media/cdrom0" in /target/etc/apt/apt.conf
> fixes this.
> 
> To reproduce it use the Beta 3 netinst ISO ("install" target) and
> install a system without network mirror. Once the installation finished
> the CD is unmounted. Now select again "Select and install software" and
> try to install another task. The system hangs now because APT cannot
> mount the CD. The same happens if the user unmout the CD manually ...


I have been thinking about splitting (cloning) this bugreport,
but it is a common problem for the apt and the d-i maintainers.
And Jens allready noticed #282344 (now CC-ed)

Apt maintainers: Are you in 'freeze' or before the Etch freeze?


Cheers
Geert Stappers



Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#282344; Package apt. (full text, mbox, link).


Acknowledgement sent to Marco Rodrigues <gothicx@sapo.pt>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (full text, mbox, link).


Message #60 received at 282344@bugs.debian.org (full text, mbox, reply):

From: Marco Rodrigues <gothicx@sapo.pt>
To: 282344@bugs.debian.org
Subject: Hi!
Date: Tue, 17 Apr 2007 21:11:50 +0100
This is fixed on debian 4 ? If true, the bug can be closed as fix released.

-- 
Marco Rodrigues

http://Marco.Tondela.org



Reply sent to Miguel Figueiredo <elmig@debianpt.org>:
You have taken responsibility. (Mon, 21 Mar 2011 21:51:05 GMT) (full text, mbox, link).


Notification sent to martin f krafft <madduck@debian.org>:
Bug acknowledged by developer. (Mon, 21 Mar 2011 21:51:05 GMT) (full text, mbox, link).


Message #65 received at 282344-done@bugs.debian.org (full text, mbox, reply):

From: Miguel Figueiredo <elmig@debianpt.org>
To: 382424-done@bugs.debian.org, 282344-done@bugs.debian.org
Date: Mon, 21 Mar 2011 21:48:55 +0000
This was fixed in apt 0.8.11
#611569 is also related.

-- 
Melhores cumprimentos/Best regards,

Miguel Figueiredo
http://www.DebianPT.org




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 19 Apr 2011 07:33:30 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jan 11 06:15:26 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.