Cp -R Command - Different number of Bytes in Original dir and copied dir

Hi Experts,
I have copied an Directory (49GB) using *cp -R +<Original file path> <new place>+* command.
When i run du -c | grep total cammand in both original file and the copied filr below are the values,
Original - 50998896
Copied - 50999684
Why it gives different values ??
Do i need to use any other command to copy it ??
Will it be a issue on taking backups ???
Please help me ......

Dude wrote:
It works fine here, see below example:
<pre>
# mkfs.ext4 /dev/sdb3
# mkdir /mnt/sdb3
# mount /dev/sdb3 /mnt/sdb3
# cd /lib64
# tar -cf - . | (cd /mnt/sdb3; tar -xf -; sync)
# du -s /lib64
27072     /lib64
# du -s /mnt/sdb3
27088     /mnt/sdb3
# du -s /mnt/sdb3/lost+found
16     /mnt/sdb3/lost+found
</pre>
Do you have any hidden files on /extra/sdb6? Are you using the same filesystem? You can try the diff command to see what is different, e.g.:
<pre>
# diff /lib64 /mnt/sdb3
Only in /mnt/sdb3: lost+found
</pre>
You can also use the cp copy command, but you will have to add some options to preserve file ownerships, timestamps, links, etc, e.g.:
<pre>
# rm -rf /mnt/sdb3/lib64
# cp -pdr /lib64 /mnt/sdb3
# sync
# du -s /lib64
27072     /lib64
# du -s /mnt/sdb3/lib64
27072     /mnt/sdb3/lib64
</pre>
Edited by: Dude on Dec 3, 2012 2:12 PMThis is what I got, still doing my investigation:
[root@oracle-32 usr]# du -s /mnt/home/oracle/
166996     /mnt/home/oracle/
[root@oracle-32 usr]# du -s /extra/sdb6/home/oracle/
175152     /extra/sdb6/home/oracle/
[root@oracle-32 usr]# diff -r /mnt/home/oracle/ /extra/sdb6/home/oracle/
Only in /mnt/home/oracle/.dropbox: command_socket
Only in /mnt/home/oracle/.dropbox: iface_socket
diff: /mnt/home/oracle/.pulse/5325b55a5d3c35d27a2aecaa00000021-runtime: No such file or directory
diff: /extra/sdb6/home/oracle/.pulse/5325b55a5d3c35d27a2aecaa00000021-runtime: No such file or directory

Similar Messages

  • Different number of fields in extract structure and Datasource

    Hi All,
    There is a data source 0FUNCT_LOC_ATTR, which are showing 16 fields in the datasource. But when i went into the extract structure, it shows 25 fields. Is it any kind of bug?
    thanks
    Annie

    Hi MTi,
    Thanks for your reply. I checked in ROOSOURCE and ROOSFIELD table and found that we activated the datasource somewhere in 14.08.2008 and the delivered version is in 18.11.2008. Now i reactivated the datasource in RSA5 and could see all the fields in RSA6.
    Actaully we posted the issue to SAP and they have come back with the same reply what you have mentioned.
    Cheers
    Annie

  • Number ranges for material document (migo) and inventory  documents

    Hi Gurus,
    We need a different number ranges for goods receipt documents  and inventory documents because we have different company merged in to one box.Can any body tell me on what basis we differenciate the number ranges how to configure it.
    If we take PO, we have different doc types and we assign number ranges to those documents. in case of Miro , it  is the single transaction code used by different companies and how to give different number ranges.
    Regards,
    Sri........

    Hi,
    I think number ranges of inventory documents are on client level not on company code wise . because even though  your creating new document and assigned different number ranges for the documents but  these while assigning  ranges to T codes (MIGO or MIRO) you dont have option like company codes ( tcode OMBA) so number ranges for inventory documents are at client level  not at company code level.

  • JTable with different number of columns (packets)

    Hi experts,
    is it possible to draw a single JTable which have different number of columns in each row
    if yes good
    if no my project is to build a comperhensive packet sniffer what is the most appropriate swing component to repersent a packets (data,Ack,...) which have different number of fields and when i select one packet it is highlighted with different color
    Best Regards

    AHDK wrote:
    is it possible to draw a single JTable which have different number of columns in each rowThis is about how to make a cell span multiple cells: [http://www.codeguru.com/java/articles/139.shtml]
    The code is a little buggy. I used it in a practical example, and removed the bugs:
    [http://forum.byte-welt.net/attachment.php?attachmentid=132&d=1249675825] (source code is included in the jar file)

  • How to calculate number of bytes

    Is there a general algorithm that calculates the total number of bytes in a pl/sql record?

    Perhaps a better example to show how storage is different from what you think, certainly in terms of numbers:
    Wrote file afiedt.buf
      1  with t as (select rownum*11 as rn from dual connect by rownum <= 100)
      2  select rn, length(rn) as ln, dump(rn) dmp
      3* from t
    SQL> /
            RN         LN DMP
            11          2 Typ=2 Len=2: 193,12
            22          2 Typ=2 Len=2: 193,23
            33          2 Typ=2 Len=2: 193,34
            44          2 Typ=2 Len=2: 193,45
            55          2 Typ=2 Len=2: 193,56
            66          2 Typ=2 Len=2: 193,67
            77          2 Typ=2 Len=2: 193,78
            88          2 Typ=2 Len=2: 193,89
            99          2 Typ=2 Len=2: 193,100
           110          3 Typ=2 Len=3: 194,2,11
           121          3 Typ=2 Len=3: 194,2,22
           132          3 Typ=2 Len=3: 194,2,33
           143          3 Typ=2 Len=3: 194,2,44
           154          3 Typ=2 Len=3: 194,2,55
           165          3 Typ=2 Len=3: 194,2,66
           176          3 Typ=2 Len=3: 194,2,77
           187          3 Typ=2 Len=3: 194,2,88
           198          3 Typ=2 Len=3: 194,2,99
           209          3 Typ=2 Len=3: 194,3,10
           220          3 Typ=2 Len=3: 194,3,21
           231          3 Typ=2 Len=3: 194,3,32
           242          3 Typ=2 Len=3: 194,3,43
           253          3 Typ=2 Len=3: 194,3,54
           264          3 Typ=2 Len=3: 194,3,65
           275          3 Typ=2 Len=3: 194,3,76
           286          3 Typ=2 Len=3: 194,3,87
           297          3 Typ=2 Len=3: 194,3,98
           308          3 Typ=2 Len=3: 194,4,9
           319          3 Typ=2 Len=3: 194,4,20
           330          3 Typ=2 Len=3: 194,4,31
           341          3 Typ=2 Len=3: 194,4,42
           352          3 Typ=2 Len=3: 194,4,53
           363          3 Typ=2 Len=3: 194,4,64
           374          3 Typ=2 Len=3: 194,4,75
           385          3 Typ=2 Len=3: 194,4,86
           396          3 Typ=2 Len=3: 194,4,97
           407          3 Typ=2 Len=3: 194,5,8
           418          3 Typ=2 Len=3: 194,5,19
           429          3 Typ=2 Len=3: 194,5,30
           440          3 Typ=2 Len=3: 194,5,41
           451          3 Typ=2 Len=3: 194,5,52
           462          3 Typ=2 Len=3: 194,5,63
           473          3 Typ=2 Len=3: 194,5,74
           484          3 Typ=2 Len=3: 194,5,85
           495          3 Typ=2 Len=3: 194,5,96
           506          3 Typ=2 Len=3: 194,6,7
           517          3 Typ=2 Len=3: 194,6,18
           528          3 Typ=2 Len=3: 194,6,29
           539          3 Typ=2 Len=3: 194,6,40
           550          3 Typ=2 Len=3: 194,6,51
           561          3 Typ=2 Len=3: 194,6,62
           572          3 Typ=2 Len=3: 194,6,73
           583          3 Typ=2 Len=3: 194,6,84
           594          3 Typ=2 Len=3: 194,6,95
           605          3 Typ=2 Len=3: 194,7,6
           616          3 Typ=2 Len=3: 194,7,17
           627          3 Typ=2 Len=3: 194,7,28
           638          3 Typ=2 Len=3: 194,7,39
           649          3 Typ=2 Len=3: 194,7,50
           660          3 Typ=2 Len=3: 194,7,61
           671          3 Typ=2 Len=3: 194,7,72
           682          3 Typ=2 Len=3: 194,7,83
           693          3 Typ=2 Len=3: 194,7,94
           704          3 Typ=2 Len=3: 194,8,5
           715          3 Typ=2 Len=3: 194,8,16
           726          3 Typ=2 Len=3: 194,8,27
           737          3 Typ=2 Len=3: 194,8,38
           748          3 Typ=2 Len=3: 194,8,49
           759          3 Typ=2 Len=3: 194,8,60
           770          3 Typ=2 Len=3: 194,8,71
           781          3 Typ=2 Len=3: 194,8,82
           792          3 Typ=2 Len=3: 194,8,93
           803          3 Typ=2 Len=3: 194,9,4
           814          3 Typ=2 Len=3: 194,9,15
           825          3 Typ=2 Len=3: 194,9,26
           836          3 Typ=2 Len=3: 194,9,37
           847          3 Typ=2 Len=3: 194,9,48
           858          3 Typ=2 Len=3: 194,9,59
           869          3 Typ=2 Len=3: 194,9,70
           880          3 Typ=2 Len=3: 194,9,81
           891          3 Typ=2 Len=3: 194,9,92
           902          3 Typ=2 Len=3: 194,10,3
           913          3 Typ=2 Len=3: 194,10,14
           924          3 Typ=2 Len=3: 194,10,25
           935          3 Typ=2 Len=3: 194,10,36
           946          3 Typ=2 Len=3: 194,10,47
           957          3 Typ=2 Len=3: 194,10,58
           968          3 Typ=2 Len=3: 194,10,69
           979          3 Typ=2 Len=3: 194,10,80
           990          3 Typ=2 Len=3: 194,10,91
          1001          4 Typ=2 Len=3: 194,11,2
          1012          4 Typ=2 Len=3: 194,11,13
          1023          4 Typ=2 Len=3: 194,11,24
          1034          4 Typ=2 Len=3: 194,11,35
          1045          4 Typ=2 Len=3: 194,11,46
          1056          4 Typ=2 Len=3: 194,11,57
          1067          4 Typ=2 Len=3: 194,11,68
          1078          4 Typ=2 Len=3: 194,11,79
          1089          4 Typ=2 Len=3: 194,11,90
          1100          4 Typ=2 Len=2: 194,12
    100 rows selected.
    SQL>Note: Length is a string function, so an implicit conversion takes place turning the number to a string before calculating the length of that string in characters, but that doesn't reflect the number of bytes in storage. Also remember the internal storage has to store the datatype and the length of the datatype as well as the actual data.

  • How do I write and read a specified number of bytes using C++?

    I need to send one byte commands followed by 1 or 2 byte data as well as read 1 or 2 byte commands from a RS232 device. How do I ensure that only 1 byte is sent for the commands or 2 bytes of data using VISA?

    Hey BMas05,
    Using VISA in C++ you can strings or bytes depending on which polymorphic version of the write you are using. One of the parameters for the VISA Write is the byte array and the number of bytes. This is if you are using the VISA classes for C++. You might have to have Measurement Studio to get these classes.
    There is a really good example that installs on your computer at C:\Program Files\National Instruments\MeasurementStudio\VC\Examples\Io\Visa\Serial Visa.
    This example shows how you can write just bytes or strings and you can select how many bytes to read back.
    I hope this helps out.
    JoshuaP
    National Instruments

  • Reading unknown number of bytes !

    Hi all !
    I am trying to read unknown number of bytes from the socket.Meanwhile I need to process the bytes depending on the message type in the header.I get messages like this header,body,header,body header,body header,body.....the message type is specified in the header.Each message type has different body size.So depending on that I have to read the next few bytes from the socket....say 300 or 600 depending the on the message type in the header.I get the bytes continioulsy like this.Since I cannot read byte by byte due performance reason is there any other way to do that.....any help will appreciated
    sash

    A simple workaround is to use a java.io.PushbackInputStream
    Read enough bytes to get the header, parse the header bytes, and push the remainder back into the stream to be read as the body.

  • Number of bytes used by redo logs

    What sql command will tell me how much or number of bytes of the memory being utilized by redo logs in 9i.

    Help yourself
    select * from dict_columns where table_name like '%LOG%' and column_name like '%BYTES%'
    Note there is also a DICT view, with a list of all dictionary views.
    And then of course there are the fine manuals, you obviously don't want to read.
    Sybrand Bakker
    Senior Oracle DBA

  • Reading unkown number of bytes

    Hi all !
    I am trying to read unknown number of bytes from the socket.Meanwhile I need to process the bytes depending on the message type in the header.I get messages like this header,body,header,body header,body header,body.....the message type is specified in the header.Each message type has different body size.So depending on that I have to read the next few bytes from the socket....say 300 or 600 depending the on the message type in the header.I get the bytes continioulsy like this.Since I cannot read byte by byte due performance reason is there any other way to do that.....any help will appreciated
    sash

    Assuming you have a consistent header size and format, you can just read that in one call. I prefer sticking the size of body in the header. That way I can pluck that value out of the header and use it for the next read.

  • How to get the number of bytes at ethernt port using tcp/ip?

    I have data with variable sizes.I am getting the data from another sytem using software C.
    How can I get the exact number of bytes coming at the port before using the read command so that the no. of bytes at port has to be given as the input to the tcp read vi?

    Philippe_RSA wrote:
    So may responses saying your question is wrong..... typical of this site, and no decent answer after 5 years !
    The answer I have used is to use a call library function:
    short int ioctlsocket(unsigned long socket, unsigned long fionread, unsigned long *len);    
    where fionread is a windows defined constant =  4004667F
    The socket can be obtained from using the       TCP Get RAW NET OBJECT.vi   which comes with Labview (even as far back as version 7).
    Good luck.
    A protocol requiring such a hack is IMHO very poorly designed. You should always have some way on the wire to determine the data stream size. If the data is fixed size that would be inherent to the protocol, if it's variable sized there should be a fixed size header or a known message termination indication that can be used to determine how to read the rest of the message.
    As a side node, I do consider the existence of VISA Bytes at Serial Port a big error, and that is most likely where this question originally came from. Use of "bytes at port" to decode a protocol will ALWAYS lead to protocol errors sooner or later, and code that is unneccessarily complicated to force the routine to deal with the asynchonous reading of the "bytes at port" into the protocol decoding.
    If a protocol can't be decoded with fixed size reads, fixed size reads with following variable size reads determined from information in the header, or a specific message termination indication, then it is very badly flawed.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Merging two separate Tables into One - different number of rows

    Hi. I have a problem. Oracle 10.2.0.4.0
    7 years ago when i was learning how to query my teacher told me that is possible to creata some kind of report where results could be combined in 1 view(report) witch in different variable could have different number of rows.
    I just remember that there is needed to use group by function and some join?
    Please help
    In link there is a sample sample view
    I need to combine Table A using D variable with Table B to become Wynik(result)
    Tables create
    CREATE TABLE "TABELA_A" ( A NUMBER,B NUMBER,C NUMBER,D NUMBER ) ;
    INSERT INTO "TABELA_A" (A, B, C, D) VALUES (123, 1, 70, 999)
    INSERT INTO "TABELA_A" (A, B, C, D) VALUES (123, 2, 80, 999)
    INSERT INTO "TABELA_A" (A, B, C, D) VALUES (234, 1, 100, 111)
    INSERT INTO "TABELA_A" (A, B, C, D) VALUES (456, 1, 10, 222)
    CREATE TABLE "TABELA_B" ( D NUMBER,E VARCHAR2(255),F NUMBER ) ;
    INSERT INTO "TABELA_B" (D, E, F) VALUES (999, 'A', 1);
    INSERT INTO "TABELA_B" (D, E, F) VALUES (999, 'B', 1);
    INSERT INTO "TABELA_B" (D, E, F) VALUES (999, 'B', 3);
    INSERT INTO "TABELA_B" (D, E, F) VALUES (999, 'C', 1);
    INSERT INTO "TABELA_B" (D, E, F) VALUES (111, 'A', 1);
    INSERT INTO "TABELA_B" (D, E, F) VALUES (111, 'C', 2);
    And to become result - in picture
    [http://i303.photobucket.com/albums/nn153/katanbutcher/pytanko.jpg?t=1306152636]
    Thank's for help
    Edited by: 860710 on 2011-05-23 05:42
    Edited by: 860710 on 2011-05-23 05:54
    Edited by: 860710 on 2011-05-23 06:07

    Maybe if you follow the instructions mention in this post you may get some help. For example, I wouldn't try to click on the link provided by you.
    SQL and PL/SQL FAQ
    Regards
    Raj

  • In Contacts version 8, how can I print ALL information in each individual card? When I select the print command the only thing printed is the name and address. I need phone number(s) and all other information in the cards.

    In Contacts version 8, how can I print ALL information in each individual card? When I select the print command the only thing printed is the name and address. I need phone number(s) and all other information in the cards. We enter various pieces of data, other than the standard name address & phone numbers and we print all information on each card so it fits in a 5x7 inch loose binder. We have used InTouch software for many years and it has served us extremely welll, however, the publisher (The Prairie Group) has not, and apparently has no plans to update their software to be compatible with any Mac OSX OS beyond 10.6. Any help will be appreciated!

    You can select what you want included in a list format. In the Print command from Contacts, click the Show Details button. Then in the Style pulldown menu select "Lists" and there you'll be able to select what you want included. You can also select what you wish included if you select the Pocket Address Book style.
    If neither of those options will work for you, then you will need to look to third-party software. Here's one possibility that seems to get good reviews:
    https://www.macupdate.com/app/mac/15485/labels-&-addresses
    I haven't done more than try it to make sure that it works with OS X 10.9's Contacts, which it does, but you can download their demo and try it yourself.
    Regards.

  • Different number of rows for different columns in JTable

    hi
    I need to create a JTable with different number of rows for different columns...
    Also the rowheight should be different in each column...
    say there is a JTable with 2 columns... Col1 having 5 rows and column 2 having 2 rows...
    The rowHeight in Col2 should be an integer multiple of Rowheight in Col1
    how do I do this ??
    can anybody send me some sample code ?????
    thanx in advance

    How about nesting JTables with 1 row and many columns in a JTable with 1 column and many rows.
    Or you could leave the extra columns null/blank.
    You could use a GridBagLayout and put a panel in each group of cells and not use JTable at all.
    It would help if you were more specific about how you wanted it to appear and behave.

  • HT5622 How do I change the Apple id against a certain telephone number?  I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?

    How do I change the Apple id against a certain telephone number?  I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?

    Create a new Apple ID for the second phone. If you are setting the phones up as new phone enter the ID you want to use on each phone.
    If both phones are already signed in to one Apple ID then use the settings app to change Apple IDs on one phone.
    Settings > iTunes and App Store > tap on the Apple ID > sign out > sign in with alternate Apple ID.
    Note that if you have downloaded apps with the original Apple ID on the phone with the new Apple ID, those apps will still be associated with the old Apple ID and will require the old ID and password in order to update them.

  • How to get the number of bytes stored in a field?

    Hi Guys,
    How can i get the number of bytes stored in a field.
    I tried using DESCRIBE FIELD, But here i am getting the length from the definition.
    i.e 8 bytes for string and for character value is from definition.
    Prompt replies will be Awarded with full points:-)
    Thanks,
    vinod.

    u see this : http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f2e5446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f2e5446011d189700000e8322d00/frameset.htm
    Madhavi

Maybe you are looking for

  • Why does my safari mobile on iPhone doesnt open Blogger?

    When I start using safari on my iPhone, and try to open my blog www.aasthaak.blogspot.com; it says that "server cannot connect" same happens with any blogger site. God knows why. I tried juggling every setting in the safari but nothing works! To my c

  • Phone Applicatio​ns resort to original locations and/or locations in whihc they were added to the phone

    This weekend my phone started cycling on and off for no apparent reason on Friday and Saturday. I replaced the battery about 3 times (properly using the shut down) to see if it was a battery problem but it was not. Then on one of the cycling on/off o

  • How to Migrate EJB Webservice from NW 7.0 to 7.3

    Hi, We have upgraded nw portal from 7.0 to 7.31. 1.how to migrate 7.0 ejb webservice to 7.3? 2.how to test webservice in portal 7.3. i did not find webservice perspective in nwds 7.3. please suggest how to acheive . Regards Srinivas

  • How to turn over camera-images?

    Except for photo's I can make short film-shoots with my Fuji Finepix camera. When I import the images in Iphoto, it's not possible to turn-over the video-file, different then photo's. When I play the movie in Iphoto, or in Imovie, the video remains i

  • CS6: Measure a shape's area?

    Hi there! With Illustrator CS6, is there a way to measure/calculate the enclosed area of a given vector shape? Thanks Klaus