Re: /cdrom vs. /media/cdrom

2004-07-23 Thread Joey Hess
csj wrote:
> Short of reinstalling, is there a package that will create the
> LSB directories and fstab entries for me?

I don't know of one. It would be nice if we could just add a deb from
the code in the installer that does this, but that code uses devfs for
device enumeration. Figuring out how many CD, usb, and floppy drives
there are and what devices they are is one tricky bit of this. The other
is making the necessary changes to /etc/fstab without breaking existing
mount points and existing systems.

-- 
see shy jo


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



Re: /cdrom vs. /media/cdrom

2004-07-23 Thread csj
On 22. July 2004 at 11:32AM -0600,
Joey Hess <[EMAIL PROTECTED]> wrote:

> Paul Johnson wrote:

> > I don't have a /media, and my laptop, which I just installed
> > Debian on, also doesn't have a /media.  ???
> 
> Then you didn't install sarge using a current version of the
> installer.
> 
> > I believe the LSB puts removable media in /mnt/fd0,
> > /mnt/scd0, etc.  Debian puts the same devices in /floppy,
> > /cdrom0, etc.
> 
> LSB goes with the FHS locations in this and generally all
> cases, and recent FHS versions require /media. Using /mnt
> subdirectories has always broken stuff and has never been in
> the LSB or the FHS.

Short of reinstalling, is there a package that will create the
LSB directories and fstab entries for me?


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



Re: /cdrom vs. /media/cdrom

2004-07-22 Thread Kaj Wiik
On Fri, 2004-07-23 at 02:32, Joey Hess wrote:
> Paul Johnson wrote:
> > I don't have a /media, and my laptop, which I just installed Debian on,
> > also doesn't have a /media.  ???
> 
> Then you didn't install sarge using a current version of the installer.

Continuing from this, is there a way to automatically populate the
/media directory afterwards with correct names?

Thanks,

Kaj


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




Re: /cdrom vs. /media/cdrom

2004-07-22 Thread Joey Hess
On Thu, Jul 22, 2004 at 11:29:13AM +0200, Frank Uepping wrote:
> on Sarge there are many duplicating mount points for peripherals,
> like: 
> /cdrom
> /cdrom0
> /floppy
> /media/cdrom
> /media/cdrom0
> /media/floppy
> etc.
> 
> Why are the duplicates?
> What is the preferred mount point / or /media for peripherals?
> Is there any document about this issue?

/media is introduced in newer versions of the FHS to have a place to put
mount points without cluttering up the root directory.

/media/cdrom is a link to /media/cdrom0, or could be switched to point to whatever 
other cdrom you typically use, like /media/cdrom1.

/cdrom is a legacy link to /media/cdrom to make a few programs that hardcode
/cdrom continue to work since we don't have time to track them all down and
fix them for the sarge release.

/cdrom0 was created by buggy versions of discover1, but this is fixed
in current sarge.

/floppy is not created by current installs of sarge

Recent versions of the install may also set up /media/usb mount points
for usb storage devices.

-- 
see shy jo


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



Re: /cdrom vs. /media/cdrom

2004-07-22 Thread Andreas Janssen
Hello

Frank Uepping (<[EMAIL PROTECTED]>) wrote:

> on Sarge there are many duplicating mount points for peripherals,
> like:
> /cdrom
> /cdrom0
> /floppy
> /media/cdrom
> /media/cdrom0
> /media/floppy
> etc.
> 
> Why are the duplicates?

On my system only /cdrom was created.

> What is the preferred mount point / or /media for peripherals?
> Is there any document about this issue?

If I remember correctly, the file system hierarchy standard says mount
points for removable media should be in /media, so I guess this is the
preferred way. Of course, you can change this to whatever you like on
your own system. If you remove the stuff in /, you probably also have
to reconfigure apt if you installed from CD or DVD, e.g. by adding

Acquire::cdrom::mount "/media/cdrom";

to /etc/apt/apt.conf.

best regards
Andreas Janssen

-- 
Andreas Janssen <[EMAIL PROTECTED]>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html


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



Re: /cdrom vs. /media/cdrom

2004-07-22 Thread Leandro Guimaraens Faria Corsetti Dutra
Em Thu, 22 Jul 2004 11:50:08 +0200, Frank Uepping escreveu:

> on Sarge there are many duplicating mount points for peripherals,
> like: 
> /cdrom
> /cdrom0
> /floppy
> /media/cdrom
> /media/cdrom0
> /media/floppy
> etc.
> 
> Why are the duplicates?

Actually they are not duplicatesâ

For some reason things are mounted on (/media)/cdrom0, and
(/media)/cdrom is a symlink to it.

I suppose the idea is that one can have (/media)/cdrom[0-9]
and choose a default by changing the symlink, but I never had more
than a CD drive to check it.


> What is the preferred mount point / or /media for peripherals?

Depends on whom prefers what for whichever reasonâ

Seriously, / was never a standard, but it was Debianâs
practice, and and still is at least in stable.

/media is the LSB standard, and should be configured in all
new systems starting from current sarge.

The detail is that there are lots of programs still looking
for, and even creating, aberrations like /cdrom.  One notorious
culprit I still have to force into compliance by /etc editing is
discover(2).


> Is there any document about this issue?

Yes, the latest LSB.


-- 
Leandro GuimarÃes Faria Corsetti Dutra +55 (44) 3028 7467 ext34
Rua Guarani 361 ap 601 â Z4+55 (44) 3025 6253
87.014-040  MaringÃ, PR   [EMAIL PROTECTED]
BRAZIL   http://br.geocities.com./lgcdutra/


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



Re: /cdrom vs. /media/cdrom

2004-07-22 Thread Paul Johnson
Joey Hess <[EMAIL PROTECTED]> writes:

> Paul Johnson wrote:
>> I don't have a /media, and my laptop, which I just installed Debian on,
>> also doesn't have a /media.  ???
>
> Then you didn't install sarge using a current version of the installer.

OK, I just wasn't paying close attention and didn't notice.

>> I believe the LSB puts removable media in /mnt/fd0, /mnt/scd0, etc.
>> Debian puts the same devices in /floppy, /cdrom0, etc.
>
> LSB goes with the FHS locations in this and generally all cases, and
> recent FHS versions require /media. Using /mnt subdirectories has always
> broken stuff and has never been in the LSB or the FHS.

Ah, OK.  You learn something new every day.


pgpDbCNmUfna5.pgp
Description: PGP signature


Re: /cdrom vs. /media/cdrom

2004-07-22 Thread Joey Hess
Paul Johnson wrote:
> I don't have a /media, and my laptop, which I just installed Debian on,
> also doesn't have a /media.  ???

Then you didn't install sarge using a current version of the installer.

> I believe the LSB puts removable media in /mnt/fd0, /mnt/scd0, etc.
> Debian puts the same devices in /floppy, /cdrom0, etc.

LSB goes with the FHS locations in this and generally all cases, and
recent FHS versions require /media. Using /mnt subdirectories has always
broken stuff and has never been in the LSB or the FHS.

-- 
see shy jo


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



Re: /cdrom vs. /media/cdrom

2004-07-22 Thread Paul Johnson
Frank Uepping <[EMAIL PROTECTED]> writes:

> Hello,
> on Sarge there are many duplicating mount points for peripherals,
> like: 
> /cdrom
> /cdrom0
> /floppy
> /media/cdrom
> /media/cdrom0
> /media/floppy
> etc.
>
> Why are the duplicates?
> What is the preferred mount point / or /media for peripherals?
> Is there any document about this issue?

I don't have a /media, and my laptop, which I just installed Debian on,
also doesn't have a /media.  ???

I believe the LSB puts removable media in /mnt/fd0, /mnt/scd0, etc.
Debian puts the same devices in /floppy, /cdrom0, etc.


pgps3GK35feye.pgp
Description: PGP signature


/cdrom vs. /media/cdrom

2004-07-22 Thread Frank Uepping
Hello,
on Sarge there are many duplicating mount points for peripherals,
like: 
/cdrom
/cdrom0
/floppy
/media/cdrom
/media/cdrom0
/media/floppy
etc.

Why are the duplicates?
What is the preferred mount point / or /media for peripherals?
Is there any document about this issue?

/FAU


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