Linux / UNIX: tar Command Stay In Local / File System When Creating Archive

Posted on in Categories , , , , , last updated December 5, 2009

I‘d like to make / file system backup but the problem is there are other file systems mounted under / such as:

/mnt/cdrom
/mnt/nfs
/iscsi
/boot
/var

I’d like to skip all other file systems mounted at / and only make backup of local / and not /boot, /var, /iscsi, and /mnt/cdrom etc. How do I force tar to use a single file system under Linux / UNIX / BSD operating systems?

Linux tar: /dev/st0: Cannot write: Invalid argument error and solution

Posted on in Categories , , , , , , , , last updated May 29, 2008

Q. When I run tar command it fails with an error that read as follows:

tar: /dev/st0: Cannot write: Invalid argument

How do I fix this error under CentOS / Debian / Fedora / RHEL Linux HP server systems?
Continue reading “Linux tar: /dev/st0: Cannot write: Invalid argument error and solution”