You are not logged in.

#1 2008-09-20 02:55:26

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Bug? /dev/tape/ prevents symlinking to tape device

Hi all,

Just built my new home server to combine my fileserver and devel server in to one box. The new server has a tape drive in it for backup purposes.

Having not used Arch on a machine with a tape drive before, I've never noticed that /dev/tape/ exists as a directory. The mt command defaults to /dev/tape to find the device to interrogate. However, because the /dev/tape directory exists, I can't symlink /dev/nst0 to /dev/tape like I would normally do. This means I have to either pass the -f option to mt everytime I call it, or set the $TAPE variable.

/dev/tape is similar to /dev/disk for connecting to devices by-id or by-path.

Symlinking /dev/nst0 to /dev/tape is my preferred option, as it doesn't rely on the environment to be setup when I want to use mt.

Where did /dev/tape come from? Has it been done upstream by the kernel folk?

Any suggestions for how to remove / disable it? Does anyone else think this is a bug? I'd prefer not to compile a custom kernel if possible (I like being able to just pacman -Syu smile)

Offline

#2 2008-09-20 07:11:32

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Bug? /dev/tape/ prevents symlinking to tape device

It's coming from the udev devs, see  /lib/udev/rules.d/60-persistent-storage-tape.rules.

I wouldn't consider it a bug, but an unwanted default wink

You could move/delete the rules file but I'd prefer the $TAPE / -f approach.

Last edited by byte (2008-09-20 07:13:42)


1000

Offline

#3 2008-09-20 08:04:35

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Bug? /dev/tape/ prevents symlinking to tape device

udev... Cool. thanks for that smile

Is it a default that should / could be changed?

Offline

Board footer

Powered by FluxBB