1829717 Members
1815 Online
109992 Solutions
New Discussion

Re: /dev device

 
peterchu
Super Advisor

/dev device

I hv add a new tape drive , I use /dev/sg0 can copy file to the drive , but can't use /dev/st0 , as I know /dev/st0 is the standard device , could suggest how can I use the /dev/st0 ? thx
2 REPLIES 2
xyko_1
Esteemed Contributor

Re: /dev device

Hi peterchu,
please give us a bit more info.

Attach the output of dmesg, lsmod and your /etc/modules.conf file.

I'm assuming that you are running a 2.4 kernel, right ?

Regards,
Xyko
Colin Topliss
Esteemed Contributor

Re: /dev device

Hi,

Which distro are you running?

If you are running SuSE, try using sg_map - it will tell you what it mapped the device to in terms of tape device files:

# sg_map
/dev/sg0 /dev/scd0
/dev/sg1 /dev/st0

You can also check the dmesg output for something like:

st: Version 20030403, bufsize 32768, max init. bufs 4, s/g segs 16
Attached scsi tape st0 at scsi1, channel 0, id 3, lun 0
st0: Block limits 1 - 16777215 bytes.

or, if your dmesg output doesn't show this because of more recent messages, look for the same thing in /var/log/messages.

Col