Mailinglist Archive: opensuse (794 mails)

< Previous Next >
Re: [opensuse] Tar Read volume label only
29.11.2017 04:15, Paul Groves пишет:

Might be a simple one. I have a tape with no sticky label and I want to
read the volume label which was set with --label="volumelabel" when the
archive was written

I could do tar -tvf /dev/st0 to get the table of contents which has the
volume label at the top.


V--------- 0/0    0 yyyy-mm-dd 00:00 volumelabel--Volume Header--
files list here

But is there a way just to read ONLY the volume label with tar?

Not directly, but

tar --test-label --verbose --file=/dev/st0 foo

should print actual label and complain that it is different.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >