LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   device path (https://www.linuxquestions.org/questions/linux-newbie-8/device-path-666401/)

ust 08-29-2008 10:38 PM

device path
 
In my RH system that have a external tape device attached , I use dmesg could find it , but I the path st0 , sg0 is not present in my system , can advise what is its device path ( eg. /dev/??? )


#dmesg |grep tape
Attached scsi tape st0 at scsi1, channel 0, id 5, lun 0


#ls /dev/st0
ls: /dev/st0: No such file or directory

ls /dev/sg0
ls: /dev/st0: No such file or directory

r3sistance 08-29-2008 10:49 PM

Rechecking I see you can't see it in ls... I might suggest it's done something deceptive and mounted it as a sdx where x could be a letter, see if any of the sd's in /dev/ aren't actually currently mounted.

Quick one... why does it say no /dev/st0 for the /dev/sg0 list?

okos 08-30-2008 12:27 AM

I am not really familiar with tape drives.

However I know about usb drives.

Have you tried?
Code:

sudo fdisk -l
That should list all of the devices.

Determine which device is the tape drive device.

Code:

sudo mkdir /tape
mount /dev/"tape device" /tape

You then should be able to access your tape drive through /tape

Hope this works :)


All times are GMT -5. The time now is 02:45 PM.