Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-05-2006, 03:42 PM   #1
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
copying grows data

Recently, I did this:
  • plugged my disk (hdb) into my friends box which has another disk (hda)
  • fdisk hda, such that it had exactly one partition; mkfs.reiser hda1
  • cp -r all data from my partitions (hdb1, hdb2, hdb5 through hdb10) onto hda
  • fdisk hdb, such that it had exactly one partition; mkfs.reiser hdb1
  • cp -r all data from hda1 to hdb1
  • df

The output of df is this:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 4447       145      4029   4% /
/ramdisk                400140      5736    394404   2% /ramdisk
/UNIONFS               2722380   2038356    684024  75% /UNIONFS
/dev/hdc                709114    709114         0 100% /cdrom
/dev/cloop             2322240   2032620    289620  88% /KNOPPIX
/UNIONFS/dev/hda1    120050028  43843080  76206948  37% /mnt/hda1
/UNIONFS/dev/hdb1    117214656  43843656  73371000  38% /mnt/hdb1
I would expect the `Used' value for hda1 and hdb1 to be the same, but they aren't. Where do you think the extra 576 bytes come from, and how can I test whether or not your hypothesis holds?

Stupid me didn't save a $(df) before doing fdisk hdb. If I can provide you with any more information, let me know.

Two ideas that sprung to our minds were automatic detection of bad sectors and worse allocation of items smaller than a block. How do I test for those?

Most likely, he has deleted his copy of my files by now (but I'm nowhere near sure about that).

Thanks for your attention --Jonas
Old 08-06-2006, 05:01 PM   #2
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Original Poster
Rep: Reputation: 47
Today, I did
debian# badblocks /dev/hda
(debian's /dev/hda is the same disk as knoppix's /dev/hdb). So no bad blocks. Any input is appreciated.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD install hangs while copying data yoitsmeremember *BSD 5 11-29-2004 05:04 PM
copying data to file:/mnt/hd on mandrake 10 star2a Linux - General 0 06-15-2004 08:34 AM
Issue copying data files from CD fryak Fedora 3 05-28-2004 11:49 AM
accessing and copying data from remote sites? mikescar Linux - Software 1 02-03-2004 05:20 PM
perl->large data structures->copying lackluster Programming 0 08-20-2003 10:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 AM.

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
Open Source Consulting | Domain Registration