LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 06-27-2012, 12:52 AM   #1
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Rep: Reputation: Disabled
Mount Point for Tape device


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.
 
Old 06-27-2012, 01:53 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 250

Rep: Reputation: 107Reputation: 107
Hi there.

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.
 
Old 07-04-2012, 07:06 AM   #3
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi ..


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.

Thanks in advance..
 
Old 07-04-2012, 07:25 AM   #4
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 250

Rep: Reputation: 107Reputation: 107
Hi again,

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.

Regards,

Clifford
 
1 members found this post helpful.
Old 07-09-2012, 11:45 AM   #5
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi ...

crw-rw-rw- 1 root root 250, 0 Jul 9 16:44 /dev/IBMtape0

This is the output returned...

Thanks......
 
Old 07-09-2012, 12:31 PM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,137

Rep: Reputation: 2457Reputation: 2457Reputation: 2457Reputation: 2457Reputation: 2457Reputation: 2457Reputation: 2457Reputation: 2457Reputation: 2457Reputation: 2457Reputation: 2457
Quote:
Originally Posted by shubhamuddu View Post
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.

Hope this 'does the needful'
 
Old 07-10-2012, 03:46 AM   #7
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 250

Rep: Reputation: 107Reputation: 107
Hi again,

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
Regards,

Clifford
 
1 members found this post helpful.
  


Reply


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
What is the easiest way to match a mount point to a device? worm5252 Linux - Newbie 3 12-28-2009 06:49 PM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
device mount point/driver access richmgb Linux - Embedded & Single-board computer 2 04-18-2009 03:13 AM
find mount point given device kornelix Programming 2 04-13-2007 09:01 AM
would it make sense to have 2 mount point for 1 device? sirpelidor Linux - Hardware 3 12-27-2003 12:10 PM


All times are GMT -5. The time now is 01:58 AM.

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