Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As far as I know there is no way to do this. You touched on the fact that this is a sequential access device, and my understanding is that "mounting" only works for random access devices.
You can control the tape drive with the mt command, and can write to & read from it with many commands, including tar, cpio & dd, and may other specialized backup tools.
There is way to create mount point for tape device as it is a character device i think minor and major number needs
to be mentioned but i do not know exactly how to do it.
A few quick comments:
* Just for clarify, let's talk some terminology first. A mount point is just a directory, so to "create a mount point" you just need to create a directory where you want to mount something (using the mkdir command). Presumably the real question is thus not how to create the mount point, but how to mount the tape drive.
* If the device file (presumably /dev/IBMtape0, with lower case "d") exists, it already has a major and minor number. Run "ls -l /dev/IBMtape0" to find it. Please post the output if you want an explanation of what you're looking at.
* The type of device (character or block) does not determine whether it can be mounted. Many character devices (like /dev/tty*, /dev/pts*, /dev/zero, /dev/random and even a hard drive (not partition) like /dev/sda) can not be mounted.
* For a device to be mounted, you must be able to create a file system on it, and I am not aware of any file system type that works on sequential devices. There might be something out there that I have not come across, though.
Hello,
I need to create a mount point for a tape device /Dev/IBMtape0.
When i issue df -h/df -k i want to see tape device mount point. As it is a sequential device creating mount point is not same as creating mount point for other devices such as CD-ROM.
Please do the needful.
You can't mount a tape drive like you do a CD/DVD/hard drive. Tape devices are sequential, period...you cannot access them like you would a non-sequential device. Don't know what you heard, or where, but cliffordw gave you the right answer, but you apparently don't believe us.
Here's a quick explanation of the key things you see in the "ls -l" output as promised:
Code:
crw-rw-rw- 1 root root 250, 0 Jul 9 16:44 /dev/IBMtape0
^ ^ ^ ^ ^ ^
| | | | | |
| | | | | Device Minor Number
| | | | Device Major Number
| | | Group
| | Owner
| Number of links
Indicates that this is a character special device
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.