LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 06-04-2008, 01:13 AM   #1
Hummdis
LQ Newbie
 
Registered: Mar 2006
Location: Phoenix, AZ
Distribution: Fedora, openSuSE, Ubuntu...lots!
Posts: 4

Rep: Reputation: 0
Question openSuSE and /dev/tape changes


Hi Folks,

Does anyone have details on when and why the SuSE team usurped the /dev/tape symbolic link standard and created the /dev/tape/ folder hierarchy?

When using tools like mt, the default device entry of /dev/tape is now causing problems because the device is now a directory. Previously, /dev/tape was a symlink to the default, non-rewinding tape device (i.e.: /dev/nst0).

Thanks!
 
Old 06-04-2008, 01:57 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
The links are created by rules in /etc/udev/rules.d/60-persistant-storage-end.

You can use "mt -f <device>" or even alias the mt command in /etc/profile.local.
 
Old 06-05-2008, 03:36 PM   #3
tim914
Member
 
Registered: Apr 2005
Location: Scottsdale, AZ USA
Distribution: Most of them :-)
Posts: 30

Rep: Reputation: 15
Thanks, but that doesn't explain why it was done and what its purpose is (i.e.: easier device naming, better handling of 100 attached tape devices...). I know that some have assumed a udev thing, but it's not necessary for udev. It would be nice to know the purpose since it's not present in all distributions and even the distributions that include it config it differently.
 
Old 06-10-2008, 07:01 PM   #4
Hummdis
LQ Newbie
 
Registered: Mar 2006
Location: Phoenix, AZ
Distribution: Fedora, openSuSE, Ubuntu...lots!
Posts: 4

Original Poster
Rep: Reputation: 0
After doing some testing it appears that both Fedora and openSuSE do the same process, however, it depends if you're using a SCSI tape device versus a USB tape device. As you can see from below, the output is different.

Fedora 7 with SCSI tape drives:

Code:
$ ls -lR /dev/tape
/dev/tape:
total 0
drwxr-xr-x 2 root root 100 2008-06-02 09:16 by-id
drwxr-xr-x 2 root root 200 2008-06-02 09:16 by-path

/dev/tape/by-id:
total 0
lrwxrwxrwx 1 root root  9 2008-06-02 09:16 scsi-20800460600176c31 -> ../../st1
lrwxrwxrwx 1 root root 10 2008-06-02 09:16 scsi--nst -> ../../nst0
lrwxrwxrwx 1 root root  9 2008-06-02 09:16 scsi-SHP_DAT160_HU171200LE -> ../../st0

/dev/tape/by-path:
total 0
lrwxrwxrwx 1 root root  9 2008-06-02 09:16 pci-0000:02:02.0-scsi-0:0:4:0-st -> ../../st0
lrwxrwxrwx 1 root root 10 2008-06-02 09:16 pci-0000:02:02.0-scsi-0:0:4:0-sta -> ../../st0a
lrwxrwxrwx 1 root root 10 2008-06-02 09:16 pci-0000:02:02.0-scsi-0:0:4:0-stl -> ../../st0l
lrwxrwxrwx 1 root root 10 2008-06-02 09:16 pci-0000:02:02.0-scsi-0:0:4:0-stm -> ../../st0m
lrwxrwxrwx 1 root root  9 2008-06-02 09:16 pci-0000:02:02.0-scsi-0:0:8:0-st -> ../../st1
lrwxrwxrwx 1 root root 10 2008-06-02 09:16 pci-0000:02:02.0-scsi-0:0:8:0-sta -> ../../st1a
lrwxrwxrwx 1 root root 10 2008-06-02 09:16 pci-0000:02:02.0-scsi-0:0:8:0-stl -> ../../st1l
lrwxrwxrwx 1 root root 10 2008-06-02 09:16 pci-0000:02:02.0-scsi-0:0:8:0-stm -> ../../st1m
Whereas openSuSE uses something like the following with USB tape drives:

Code:
# ls -lR /dev/tape
/dev/tape:
total 0
drwxr-xr-x 2 root root 60 2008-06-10 16:01 by-id

/dev/tape/by-id:
total 0
lrwxrwxrwx 1 root root 10 2008-06-10 16:01 scsi-1HP_C1537A_HU105329YD-nst -> ../../nst0
Therefore, the major question here is that because /dev/tape is a folder, is there any known issue to deleting the folder so that /dev/tape can be used as it was prior to SuSE 10?

Does anyone know why this was changed in the first place?
 
  


Reply

Tags
dev, etc, ls, mt, rules, scsi, tape, udev, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora and /dev/tape use tim914 Fedora 1 06-04-2008 06:34 AM
copy dev/hda7 to the tape kakil Linux - Server 11 01-22-2008 11:39 AM
Is it /dev/hda or /dev/sda? in opensuse 10.3 BK2 Suse/Novell 3 11-29-2007 08:13 PM
Travan/Seagate tape drive not showing up in /dev btalton Linux - Hardware 2 01-02-2007 11:49 PM
no /dev/st0 for scsi tape on RH8.0 dkinzer Linux - Hardware 9 01-20-2004 03:30 PM


All times are GMT -5. The time now is 11:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration