Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IDE Tape Drive - Device or Resource Busy

46 views
Skip to first unread message

Markmckee601

unread,
Jul 5, 2009, 9:36:12 AM7/5/09
to
I am able to run the commands below successfully a couple of times and
then I get the error message "Device or resource busy" when trying to
access the tape drive, here's what i've tried:

mt -f /dev/ht0 status

dd if=/dev/ht0 of=tape.img

mtftar -l -v < /dev/ht0


I'm trying to retrieve a backup made using ntbackup so I can erase the
tape and use the tar command for future tape backups.

Here is the output of dmesg:
Pid: 3251, comm: mtftar Tainted: G W (2.6.27.7-smp #2)
EIP: 0060:[<c0393f59>] EFLAGS: 00010297 CPU: 0
EIP is at blk_get_request+0x19/0x70
EAX: 00000000 EBX: 00000000 ECX: 00000010 EDX: 00000000
ESI: 00000000 EDI: 00000010 EBP: d4af7b78 ESP: d4af7b68
DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process mtftar (pid: 3251, ti=d4af6000 task=d49b3b80 task.ti=d4af6000)
Stack: 00000003 d6e30850 d4af7ba8 d6872000 d4af7b98 d89f29d1 c011d790
d6e30850
d6872000 d6e30850 d4af7ba8 d6872000 d4af7d04 d89f3f5d 00016cc3
00000000
00000000 00000000 00000000 00000000 00000246 00000000 00000044
d4af7bdc
Call Trace:
[<d89f29d1>] ? idetape_queue_pc_tail+0x31/0x90 [ide_tape]
[<c011d790>] ? __wake_up+0x40/0x50
[<d89f3f5d>] ? idetape_wait_ready+0xad/0x110 [ide_tape]
[<c0159b18>] ? find_get_page+0x28/0x90
[<c01674b4>] ? page_address+0x14/0xd0
[<c01626c4>] ? put_page+0x14/0xd0
[<c01a1403>] ? __find_get_block_slow+0x73/0x120
[<c01199f9>] ? kunmap_atomic+0x9/0x60
[<c01a171b>] ? __brelse+0xb/0x40
[<c0162809>] ? mark_page_accessed+0x9/0x40
[<c01a1867>] ? __find_get_block+0x97/0x180
[<c022da2b>] ? __journal_temp_unlink_buffer+0xb/0x100
[<c0231b9e>] ? journal_cancel_revoke+0xe/0xd0
[<c022e1b8>] ? do_get_write_access+0x1c8/0x410
[<c01f2454>] ? ext3_get_group_desc+0x14/0xc0
[<c022da2b>] ? __journal_temp_unlink_buffer+0xb/0x100
[<c022da2b>] ? __journal_temp_unlink_buffer+0xb/0x100
[<c022dba4>] ? __journal_file_buffer+0x84/0x170
[<c022f1f2>] ? journal_dirty_metadata+0xa2/0xe0
[<d89f512b>] ? idetape_chrdev_open+0xab/0x1d0 [ide_tape]
[<c022dba4>] ? __journal_file_buffer+0x84/0x170
[<c0162809>] ? mark_page_accessed+0x9/0x40
[<c01a1867>] ? __find_get_block+0x97/0x180
[<c0203d84>] ? __ext3_journal_dirty_metadata+0x24/0x50
[<c01a171b>] ? __brelse+0xb/0x40
[<c0138e0c>] ? __wake_up_bit+0xc/0x40
[<c073bf18>] ? _spin_lock+0x8/0x20
[<c0191174>] ? __d_lookup+0x94/0x100
[<c0186deb>] ? __follow_mount+0xb/0x80
[<c0186fc7>] ? do_lookup+0x67/0x1b0
[<c019082f>] ? dput+0x1f/0x120
[<c0188f58>] ? __link_path_walk+0x988/0xca0
[<c01961af>] ? mntput_no_expire+0x1f/0x100
[<c0186d05>] ? path_put+0x25/0x30
[<c03a02c2>] ? kobject_get+0x12/0x20
[<c018233a>] ? chrdev_open+0x9a/0x180
[<c017d77b>] ? __dentry_open+0xbb/0x230
[<c017d937>] ? nameidata_to_filp+0x47/0x60
[<c01822a0>] ? chrdev_open+0x0/0x180
[<c018a2a5>] ? do_filp_open+0x175/0x700
[<c0194794>] ? expand_files+0x14/0x280
[<c017d580>] ? do_sys_open+0x50/0xe0
[<c017d67e>] ? sys_open+0x2e/0x40
[<c010325a>] ? syscall_call+0x7/0xb
[<c0730000>] ? quirk_usb_early_handoff+0xb0/0x410
=======================
Code: 00 fb 5b 5d c3 8d b6 00 00 00 00 8d bc 27 00 00 00 00 55 89 e5 57
56 53 83 ec 04 e8 ba fe d6 ff 83 fa 01 89 c6 89 d3 89 cf 77 4a <8b> 80
3c 01 00 00 e8 dc 80 3a 00 f7 c7 10 00 00 00 74 17 89 da
EIP: [<c0393f59>] blk_get_request+0x19/0x70 SS:ESP 0068:d4af7b68
---[ end trace afd15860b6887664 ]---

I have searched the web and came across an article that recommended
adding hdc=ide-scsi to lilo which I have done and has made no difference.

cat /var/log/messages | grep tape

kernel: ide-tape: hdc <-> ht0: Seagate STT3401A rev 310A
kernel: ide-tape: hdc <-> ht0: 243KBps, 256*32kB buffer, 268ms tDSC

Any help would be much appreciated.
--
Mark Mckee
CompTIA A+ Certified <www.comptia.org>

Chris Sorenson

unread,
Jul 5, 2009, 6:05:29 PM7/5/09
to
Markmckee601 wrote:
> I am able to run the commands below successfully a couple of times and
> then I get the error message "Device or resource busy" when trying to
> access the tape drive, here's what i've tried:
>
> mt -f /dev/ht0 status
>
> dd if=/dev/ht0 of=tape.img
>
> mtftar -l -v < /dev/ht0
>

So you think mtftar is hanging the drive? Can't you use mtftar on the
tape.img file that has already been retrieved?

Markmckee601

unread,
Jul 6, 2009, 2:46:07 AM7/6/09
to
Unfortunately when I use the dd command the tape.img is only 512 bytes
in size. I'm using a 20/40GB Travan Tape with about 10GB used.

Thanks for the reply, I did have fedora & opensuse installed and posted
in both the appropriate newsgroups and forums and got no reply.

Markmckee601

unread,
Jul 6, 2009, 4:06:11 AM7/6/09
to
A bit more info:

I restarted the PC and can use the mt command to show what's on the tape.

This time I didn't use the mtftar command with the tape drive.
I can run 5 commands before I get:
Segmentation fault
&
/dev/ht0: Device or resource busy

The 5 commands used in this order:
mt -f /dev/ht0 status
mt -f /dev/ht0 rewind
mt -f /dev/ht0 partseek
dd if=/dev/ht0 of=tape.img
dd if=/dev/ht0 of=tape.img bs=1024

Chris Sorenson

unread,
Jul 6, 2009, 3:08:11 PM7/6/09
to
0 new messages