Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41519 - FHS violation in baselayout, /mnt/cdrom and /mnt/floppy should be /media/cdrom and /media/floppy (keep files)
Summary: FHS violation in baselayout, /mnt/cdrom and /mnt/floppy should be /media/cdro...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL: http://www.pathname.com/fhs/pub/fhs-2...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-13 18:52 UTC by Helmar Wieland
Modified: 2005-09-11 10:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmar Wieland 2004-02-13 18:52:13 UTC
The recent upgrade of baselayout (re)created .keep files in /mnt/cdrom and /mnt/floppy, although these directories should be both under /media. See FHS:
http://www.pathname.com/fhs/pub/fhs-2.3.html#MEDIAMOUNTPOINT

I was just wondering and of course only had to delete them manually again. But perhaps it would be a good thing to change baselayout to the right locations?

Reproducible: Always
Steps to Reproduce:
1. emerge -v sys-apps/baselayout
Actual Results:  
/mnt/cdrom and /mnt/floppy were created with their .keep files in them.

Expected Results:  
s/mnt/media/

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1)
=================================================================
System uname: 2.6.1 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2
/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/gen
eric/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/storage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.ibiblio
.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home" (I know, this violates fhs, too, but it's only temporary)
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm arts artswrappersuid avi cdr crypt curl doc dvd emac
s encode geoip gif gtk gtk2 guile imlib java jpeg kde libwww linguas_de mad matr
oska mmx mozilla mpeg ncurses nls oggvorbis opengl oss pdflib perl png python qt
 quicktime readline ruby slang sse ssl tcpd tetex threads truetype videos x86 xm
l xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-02-13 18:57:54 UTC
i dont think many people on the gentoo team really feel like 'updating' to the 2.3 specification to be honest
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2004-02-13 19:03:45 UTC
I'm of the opinion that /media is really, really stupid.
Comment 3 Joshua Kinard gentoo-dev 2004-02-13 19:08:03 UTC
I don't even like /mnt for cdrom and floppy, it's quicker to type /cdrom or /floppy.  User preference I guess.

Eitherway, there was a rather large discussion about integrating /srv into gentoo, as it does seem to have some use, where as /media doesn't seem to make alot of sense.  You can dig this discussion up on the gentoo-dev archives on the various ML archiving websites (if you're not subscribed to gentoo-dev).
Comment 4 Helmar Wieland 2004-02-13 19:57:04 UTC
Okay, thank you for the comments, and i think i'm going to follow gentoo-dev from now on. Should someone mark this as WONTFIX then?

I myself like /media, i think it's the natural choice for a place to accumulate the increasing number of mount points for removable media (cdrom/dvd/burner/dvd-burner/usb/...), since they for sure are something different than mounted network filesystems or local windows installations. And polluting / with 1 to 8 directories is totally out of question. Lazyness isn't an argument here, too, since you could easyly add /mnt /media or whatever to your shell's CDPATH.
Comment 5 Joshua Kinard gentoo-dev 2004-02-13 20:05:21 UTC
I actually picked up the behavior of /cdrom or /floppy from when I tried freebsd (4.5) out about 2 years ago.  It kinda stuck I guess, but then again, we all have our bad habits :)
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-15 08:30:20 UTC
Don't like it either.  What about network mount, and you win95/win2k disk you
used to mount to /mnt .. I do not see them providing for that.
Comment 7 Thomas R. (TRauMa) 2004-05-05 09:32:54 UTC
Couldn't we put this in a fhs useflag? I for one use /srv and /media and am very unhappy about baselayout going the suse way of forcing those /mnt-dirs on me.

@comment # 6: If the user cam mount it, put it in /media. Don't understand whats the issue.