Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 01-05-2006, 12:16 AM   #1
LQ Newbie
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
tar warnings

I backed up my system to the second hard disc using tar -cjvf and bz2.
Got hundreds of these warnings:

tar: /sys/class/tty/tty5/dev: File shrank by 4092 bytes; padding with zeros

The backup file is OK according to the command: bunzip2 -t -v ,
but I'm curious as to what those warnings mean.
Anyone know?
Thanks in advance,
Old 01-05-2006, 08:22 PM   #2
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
I'm guessing it means the file changed size between the time you envoked the tar command and the time tar actually got to this file.

What is the purpose of your backup? Is there a reason you're backing up this tty data?
Old 01-05-2006, 08:57 PM   #3
Registered: Nov 2005
Location: Oregon
Distribution: Ubuntu
Posts: 64

Rep: Reputation: 17
/sys is the sysfs, it is not a real filesystem that is part of your hard drive/partition. From the top of the sysfs.txt documentation:
sysfs - _The_ filesystem for exporting kernel objects. 
Patrick Mochel	<>
10 January 2003
What it is:
sysfs is a ram-based filesystem initially based on ramfs. It provides
a means to export kernel data structures, their attributes, and the 
linkages between them to userspace.
In short, you don't need to back up /sys or /proc as they are dynamically updated by the kernel, don't physically exist on the hard drive, and any 'files' from them could not be restored anyway. You might want to look into using the "find" command with the "-prune" option in combination with "tar" to select the files/directories to backup... (you probably want to exclude /dev as well, IMHO).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
Need help with java warnings Hockeyfan Programming 1 07-22-2005 02:01 PM
Synaptic warnings snowy MEPIS 6 07-08-2005 03:40 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration