BRU utility


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers BRU utility
# 1  
Old 06-11-2003
BRU utility

I'm having trouble trying to extract files from a bru tape. The man pages on the bru command have confused me. The following are commands that I've tried and the respective outputs.


will.rlee 224> bru -vgf /dev/nrtape
label:
created: Mon Nov 7 18:21:41 1994
device: freedom:/dev/mt/tps0d6
user: root
group: sys
system: IRIX glovebox 4.0.5F 08280217 IP12
bru: "SGI Release 4.0.5D"
release: 9.11
variant: 1


will.rlee 226> bru -evtf /dev/nrtape
e 26k of 28k [1] ./kj
e 2k of 30k [1] ./GB1.bru
bru: 1 volume(s), 2 files, 16 archive blocks, 32 Kbytes
bru: warning - missing archive header block; starting at volume 1
bru: c => continue q => quit r => reload s => fork shell [default: q] >> q


What else could I try?
# 2  
Old 06-12-2003
Please DO NOT CROSS POST!!!!

Your other post was in the right location - namely "Filesystems, Disks and Memory", which can be found here:

https://www.unix.com/filesystems-disks-and-memory/10371-bru-command.html?s=
# 3  
Old 06-12-2003
# 4  
Old 06-13-2003
I doubt there are many IRIX or bru folks hitting this site, so I went searching. Found a man page for bru and read through it.

To extract what is on the tape, you would use the -x option.
To inspect the archive on the tape (before extracting it) you would use the -i option. I would also suggest you use the -vv option with it to show info from the header block.

To step through this, try the following

$ bru -ivvf /dev/nrtape

This will check that your archive is good. It's possible that it isn't (from the information you already posted) - a tape that is almost 10 years old may not be in pristine condition.

From this point on I'm assuming the tape is okay...
Next, see what is on the tape - this is important if you don't want to overwrite information already on disk.

$ bru -tvf /dev/nrtape

This will list everything on the tape. If the output looks something like this...

./mydir/myfile
./mydir/myotherfile

then you can get ready to extract the archive into a newly created directory or any directory you want.

If the output looks something like this...

/mydir/myfile
/mydir/myotherfile

then the archive will possibly overwrite files on your system. You should know if you are willing to do that.

Once you verify the information, a generic extract could be done.

$ cd /where_I_want_extract
$ bru -xvf /dev/nrtape
# 5  
Old 06-13-2003
hrmm

Thanks. I can properly list the files and my output looks something like this:

/mydir/myfile
/mydir/myotherfile

meaning that I might overwrite some of the files on my system.

When I type bru -xvf /dev/nrtape, however, I get a "Permission denied" error for each of the files that I want to extract. Why is this?
# 6  
Old 06-13-2003
I never heard of bru, but it sounds a bit like tar.

To extract those files, you need to write them to disk. Do you have permission to do that?

Does /mydir exist? If not, you will need to do the equivalent of "mkdir /mydir". That requires write permission to /. Usually only root could do that.

If /mydir exists, can you write to it? You need to create files in it and that means write permission to /mydir.

Or if those files already exist, can you write to them?
# 7  
Old 06-19-2003
I do have permission to write files to disk. I still don't understand why I get "Permission denied" when I try to extract the bru files using the command "bru -xvf /dev/nrtape"
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Using at utility on 10.8.2 not working

I am a beginner, trying to get basic background utilities like at and cron to work on mac os x. I am typing the following at the prompt: at now + 1 minute open -a textedit ^D nothing happens at the appointed time. What to change? (7 Replies)
Discussion started by: sakurashinken
7 Replies

2. UNIX for Dummies Questions & Answers

BRU -T option

Can someone give me an example how to use bru command line with the -T option? Thanks, (1 Reply)
Discussion started by: mojoman
1 Replies

3. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

4. Shell Programming and Scripting

utility

hi experts, Can you please help me out in removing delimiters with in double quotes from a CSV file. input: ===== a,"bnn,",dgd, "sagfh,dj",ad output ===== a,"bnn",dgd, "sagfhdj",ad there are so mnay fileds in a row and there are millions of rows. Thanks in an advance.... (6 Replies)
Discussion started by: subhendu81
6 Replies

5. Solaris

utility of solaris

hello sir, can anyone tell about untility in Solaris similiar untility as SMITY in AIX and SAM in HP (2 Replies)
Discussion started by: amarnathbasis8
2 Replies

6. Filesystems, Disks and Memory

Problem with BRU

Hello, I need to restore a file that was backed up using BRU. For starters I need to know how to list the archive on my tape. I tried the following which is what the man page for BRU sugegsts: bru -xvf /dev/nst1 /violatio.sh I get the following error bru: warning - read error on first... (1 Reply)
Discussion started by: mojoman
1 Replies

7. Shell Programming and Scripting

Tr utility to Encrypt

I need some help.. I would like to make a script that uses the tr utility to "encrypt" a selected file. I need to know how to set up the script so that if i type encrypt(script name) the letter that i want to start the encryption and then the file name, that it starts with the entered letter, and... (1 Reply)
Discussion started by: frankthetank115
1 Replies

8. Programming

MAKE utility

I wrote a makefile, every thing is working fine, But One of the C header files which is created by me is kept in a different folder other than the current directory, I have given this PATH to VPATH Variable Example :- VPATH = /home/user1/projects/victor.h It gives an error as : file... (4 Replies)
Discussion started by: victorvvk
4 Replies

9. Filesystems, Disks and Memory

bru command

I'm having trouble extracting files from a bru tape. The following are commands that I've tried and the respective outputs. will.rlee 224> bru -vgf /dev/nrtape label: created: Mon Nov 7 18:21:41 1994 device: freedom:/dev/mt/tps0d6 user: root group: ... (1 Reply)
Discussion started by: sherbet808
1 Replies

10. UNIX for Dummies Questions & Answers

What utility do I use for this?

I want to pull out the 3rd column of information and stick in a file. What is the Utility I use to do this? (8 Replies)
Discussion started by: James
8 Replies
Login or Register to Ask a Question