Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I am trying to back up some directories on my Red Hat 7.3 system and am having trouble with the tar command. The tap device is /dev/st0 and I am tring to backup the /export/home directory. I also need to be able to set it not to rewind, that is where I am having the problem. The command I am using is:
tar cvf /dev/nrst0 /export/home
If I dont use the "nr" it workd fine, but overwrites whatever is on the tape.
any time you use the /dev/nrst0 (no-rewind) device, the tape stays at the end of the current read/write when the device is closed (e.g. by tar), whenever you use /dev/st0 the device rewinds on close and you are back on the beginning of the tape.
The /dev/nrst0 doesn't work, I can only get the /dev/st0 to work. and then the tape rewinds and the next day it gets overwriten. I looked at the man pages of the "mt" command and I didn't see how to move the position to the end of the tape so the next tar would append to the tape and not overwrite. Sorry, I very new with Linux, still trying to grasp things.
still having problems. when I give the "/dev/nrst0" command all I get is a listing of the directory I am tring to write to tape. I noticed that "st0" and "nrst0" have different attributes:
st0 = crw-rw----
nrst0 = -rw-r--r--
So I am guessing that "nrst0" needs to change somewhat?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.