LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-05-2006, 01:16 AM   #1
early
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,
J.
 
Old 01-05-2006, 09:22 PM   #2
BrianK
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, 09:57 PM   #3
Gsidious
Member
 
Registered: Nov 2005
Location: Oregon
Distribution: SuSE
Posts: 59

Rep: Reputation: 16
/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:
Code:
sysfs - _The_ filesystem for exporting kernel objects. 
Patrick Mochel	<mochel@osdl.org>
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).
 
  


Reply


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
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 10 02-23-2008 06:40 AM
Need help with java warnings Hockeyfan Programming 1 07-22-2005 03:01 PM
Synaptic warnings snowy MEPIS 6 07-08-2005 04:40 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


All times are GMT -5. The time now is 02:40 AM.

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