LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-09-2005, 02:37 AM   #1
marwan_mostafa
LQ Newbie
 
Registered: Nov 2005
Posts: 24

Rep: Reputation: 15
please i have a problem in backup


hello

please i have a problem and i can't find a solution for it

i have server DELL (poweredgr 2800) installed on it a SCSI tape drive and the operating system is SUSE 9.0
i check in the system about the tape drive as hardware on the system and confirmed that's it loaded and ok and this is the configration for the tape drive:

68: SCSI 06.0: 10680 Storage Device
[Created at scsi.1452]
Unique ID: uOGh.43qo5KAsrW9
Parent ID: Gcmk.ey4owlXNEV6
SysFS ID: /class/scsi_generic/sg0
SysFS BusID: 0:0:6:0
Hardware Class: unknown
Model: "PE/PV 1x6 SCSI BP"
Vendor: "PE/PV"
Device: "1x6 SCSI BP"
Revision: "1.0"
Driver: "megaraid"
Device File: /dev/scanner/by-path/pci-0000:02:0e.0-scsi-0:0:6:0-generic
Device Files: /dev/sg0, /dev/scanner/by-path/pci-0000:02:0e.0-scsi-0:0:6:0-generic
Device Number: char 21:0
Config Status: cfg=no, avail=yes, need=no, active=unknown
Attached to: #31 (RAID bus controller

The problem is when i try to mount the device by the command
mt -f /dev/sg0 status

the result is
(mt: /dev/sg0: Operation not permitted)

please can anyperson help me please and tell me what i can do

thanks a lot

marwan
 
Old 11-09-2005, 03:42 AM   #2
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
Maybe you have to configure your tape first
Config Status: cfg=no, avail=yes, need=no, active=unknown
cfg=no ?
you have also no permissions
try it as root
 
Old 11-09-2005, 04:14 AM   #3
marwan_mostafa
LQ Newbie
 
Registered: Nov 2005
Posts: 24

Original Poster
Rep: Reputation: 15
thank you for your reply
but where is the location for this file to edit the cfg to yes
 
Old 11-09-2005, 04:24 AM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
May be you need to log in as root to have the privilege to mount a raw device.
 
Old 11-09-2005, 06:23 AM   #5
marwan_mostafa
LQ Newbie
 
Registered: Nov 2005
Posts: 24

Original Poster
Rep: Reputation: 15
i'm already logged as a root user and i have all the privillage

but the message that appear is

mt: /dev/sg0: Operation not permitted

so what i can do ??????????

thank you
 
Old 11-09-2005, 06:59 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
As far as I am aware you don't need to mount a raw device. Mounting is only for a block device.

For example one can dd a hard disk partition directly without mounting because no buffering is used.

The mounting normally is for a raw device to a block device in the filing tree. For example one can make a directory in /mnt to mount a WIndows partition for access using

mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1

thereafter all the read/write will take place in /mnt/sda1 and the changes will be implemented once the device is unmounted.

Must admit that I don't have a tape drive to try it myself.
 
Old 11-09-2005, 07:20 AM   #7
marwan_mostafa
LQ Newbie
 
Registered: Nov 2005
Posts: 24

Original Poster
Rep: Reputation: 15
ok so how i can commnicate with the device if it's not a mounted device ???????

thanx
 
Old 11-09-2005, 07:59 AM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
What would be its response if you make a directory in /mnt and mount the /dev/sg0 pon it?

I haven't played with a sequential device in Linux before and wouldn't have a clue how to access or backspace data with it. In using it in Fortran I have to know the data structure pretty well in order to get it wind and unwind to the positions I want. Pressumably there are Similar Linux commands to do it.

I use mobile hard disks storage becuase they are a lot faster, cheaper and bigger in capacity. UK hard disk space costing £30 per 100Gb at the moment. With a mobile system the hard disks can be inserted in seconds into the PC either as an internal disk or into a external enclosure as an external disk connected via a USB port.
 
Old 11-09-2005, 08:53 AM   #9
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
you an use:
dd if=/home/myfile of=/dev/sg0 [ obs=1024k optional to make it faster you have to play ]
this is if you want to save one file. If you want to save a diskimage write instead of
if=/home/myfile ------> if=/dev/hda1 or what partion you want
but be sure you want an image. For restore exchange only if and of inside the command
for tar
tar cvf /dev/sg0 [here put files or directories]
for cpio
find /home -print | cpio -ovcQ >/dev/sg0
also be careful
Maybe there are different device of sg0 /dev/sg0 and /dev/sg0n n stands for no rewind.
That means if you use sg0n you can write many files to the tape it appends.
But this I will tell you later.
First tell me you get it working.
Paul
 
Old 11-09-2005, 09:53 AM   #10
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
It's been a while, but I believe that the first scsi tape drive is usually designated /dev/st0 or /dev/nst0. They are essentially the same device but you use the nst0 when you don't want the drive to autorewind after the operation. The "n" at the beginning stands for "nonrewinding".
I could be all wet but I think you have the wrong device file. Also check the output of:

# lsmod

and see if you have the "st" module loaded as well as the scsi modules. If not run:

# modprobe st

then try:

# mt -f /dev/nst0 retension

and see if the tape retensions.

It's been a while since I fooled around with a scsi tape drive and things may have changed but I'm fairly sure the device file was st0, not sg0.
 
Old 11-10-2005, 12:41 AM   #11
marwan_mostafa
LQ Newbie
 
Registered: Nov 2005
Posts: 24

Original Poster
Rep: Reputation: 15
i'm try many of times but noway
i check that the driver is loaded and the system is configured the hardware etc......

anyway i want to ask a questions i hope the answer for it will be the solution :

the DELL server is installed on it the TAPE DRIVE typed on it DAT 72 so that's mean it used tapes 36/72 GB capecity
if i put on it tapes the capecity is 20/40 GB
is for this a relation with the tape drive and the tapes i mean the drive tape DAT72 is not support the tapes 20/40 GB ???????????????????????????

anyway don't forget that the message that appear in the shell mode when i try to mount the drive is (the operation is not permitted)
and i want to ask that if the drive is not loaded or not found it must be tell ( No such device or address )

please help me i'm really need to solve this problem to save my data

thanx for all


marwan
 
Old 11-10-2005, 07:20 AM   #12
marwan_mostafa
LQ Newbie
 
Registered: Nov 2005
Posts: 24

Original Poster
Rep: Reputation: 15
i wait your replies please

and thanx a lot
 
Old 11-10-2005, 08:23 AM   #13
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
Dit you vou try any command what I send you?
what dd anwer?
 
Old 11-11-2005, 09:26 AM   #14
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
What the description of the tape-drive says:
It will give you a filesystem from your tape or only files?
write a small textfile in /tmp. Call it mytext.txt then do following:
dd if=/tmp/mytext.txt of=/dev/sg0
what messages you get after this command?
Paul
 
Old 11-12-2005, 12:56 AM   #15
marwan_mostafa
LQ Newbie
 
Registered: Nov 2005
Posts: 24

Original Poster
Rep: Reputation: 15
thank your too much for your reply paul
i try your command and the answer is

0+0 records in
0+0 records out

so what does it mean?????

thanx a lot for you

marwan
 
  


Reply



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
Backup problem (AGAIN) plisken Linux - General 2 11-28-2005 05:36 AM
Backup problem svyshna Linux - General 1 10-17-2005 03:17 PM
Tape backup problem pneumatix Linux - Enterprise 6 10-23-2004 09:36 PM
MYSQL backup problem wimpie_net Linux - Software 5 10-16-2003 04:03 PM
Help with Backup problem MrJoshua Linux - Newbie 0 04-08-2002 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration