# SunOS basic question

**URL:** <https://community.unix.com/t/sunos-basic-question/170795>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [April 25, 2007, 11:20am UTC](https://community.unix.com/t/sunos-basic-question/170795 "2007-04-25T11:20:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthikosu](https://community.unix.com/letter_avatar/karthikosu/32/6_449c533f586939b6e5f246632a46421f.png) [@karthikosu](https://community.unix.com/u/karthikosu)\
**Post date:** [April 25, 2007, 11:20am UTC](https://community.unix.com/t/sunos-basic-question/170795/1 "2007-04-25T11:20:41Z")

</div>

Hello everybodyI have connected an external tape drive onto my Sun Spark station running Sun OS 4.1.3.  
since am in the basic elementary stage in Sun OS, can someone answer the below questions pls

1) after connecting the tape drive to a server and rebooting does /dev/st0 show up automatically?  
2) how do i find the list of files in the tape. (tar tvf /dev/st0 ???)  
3) how can i retrieve files from the tape and put it on my server (tar xvf /dev/st0 ??)

Thanks very much  
karthik

---

<div class="post-metadata">

**Author:** ![ravager](https://community.unix.com/user_avatar/community.unix.com/ravager/32/272_2.png) [@ravager](https://community.unix.com/u/ravager)\
**Post date:** [May 1, 2007, 9:49am UTC](https://community.unix.com/t/sunos-basic-question/170795/2 "2007-05-01T09:49:41Z")

</div>

1. Load the tape in to the drive
2. Check to see if the tape is in  
mt -f /dev/rmt/0 noret
3. Rewind the tape  
mt -f /dev/rmt/0 rewind
4. Tar the files to the tape dev with the no rewind option set .  
tar -cvf /dev/rmt/0n /opt  
mt -f /dev/rmt/0 rewind
5. Now check to see if the tar was successfull. ( What is on the Tape )
6. tar -tvf /dev/rmt/0n

tar ( old vertion ) you can use tar tvf as well

😛

---

<div class="post-metadata">

**Author:** ![ravager](https://community.unix.com/user_avatar/community.unix.com/ravager/32/272_2.png) [@ravager](https://community.unix.com/u/ravager)\
**Post date:** [May 1, 2007, 9:55am UTC](https://community.unix.com/t/sunos-basic-question/170795/3 "2007-05-01T09:55:45Z")

</div>

Now to find your tape device  
cd /dev  
look at all the st device files  
the tape device should have a lot of diffrent file name eg st0 st0.1  
this is to allow for the no rewind device so depending on the drive you have you will have difftent devices

---

<div class="post-metadata">

**Author:** ![karthikosu](https://community.unix.com/letter_avatar/karthikosu/32/6_449c533f586939b6e5f246632a46421f.png) [@karthikosu](https://community.unix.com/u/karthikosu)\
**Post date:** [May 1, 2007, 10:42am UTC](https://community.unix.com/t/sunos-basic-question/170795/4 "2007-05-01T10:42:15Z")

</div>

Thanks very much for ur reply.
