LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-13-2007, 08:19 AM   #16
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled

Then use dd:
Code:
dd if=/dev/hdn | md5sum
might do the trick for a device. But /home is no device?!?
 
Old 06-13-2007, 11:16 PM   #17
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by len
i just ran df command for each /home device and they both report the same statistics- which leads me to believe that the drives are mirrored, and have the same data.
That's strange. My results (post #10) were just the opposite. When you check with df, are you mounting each partition individually, or do still have them both mounted at the same time?

BTW, you can certainly do an md5sum in the manner JZL240I-U suggested, but a mismatch would not necessarily mean that the essential info was not the same. That is because the md5sum would include all of the unused sectors in addition to the actual contents of the filesystem. It would also include things like mount counts and other such data.
 
Old 06-14-2007, 04:05 AM   #18
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by blackhole54
...you can certainly do an md5sum in the manner JZL240I-U suggested, but a mismatch would not necessarily mean that the essential info was not the same. That is because the md5sum would include all of the unused sectors in addition to the actual contents of the filesystem. It would also include things like mount counts and other such data.
He could do a
Code:
dd if=/dev/zero of=/path/to/device/nullfile bs=1
As I understood from the previous posts, both disks are always simultaneously mounted but the file system data are a problem.

Like someone earlier posted, better use raid or rsync.
 
Old 06-15-2007, 10:33 AM   #19
len
Member
 
Registered: Jun 2003
Distribution: slackware 14
Posts: 143

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by blackhole54
That's strange. My results (post #10) were just the opposite. When you check with df, are you mounting each partition individually, or do still have them both mounted at the same time?

BTW, you can certainly do an md5sum in the manner JZL240I-U suggested, but a mismatch would not necessarily mean that the essential info was not the same. That is because the md5sum would include all of the unused sectors in addition to the actual contents of the filesystem. It would also include things like mount counts and other such data.
blackhole, i did an md5sum as per JZL240I-U, and the md5sums didn't match. i ran the test 2 times, with one hdd reporting the same md5um, and the other a different one each time, both of which did not match. i'm led to believe that one /home is idled, and the other has processes ongoing that alter the md5sum (the md5sum test itself?). i'd have to archive, create an image, etc... of each /home directory, and/ or each hdd, and then md5sum the files to really see if what is stored is the same.

btw JZL240I-U, wouldn't "dd /dev/zero..." zero fill my hdd?

Last edited by len; 06-15-2007 at 10:34 AM.
 
Old 06-18-2007, 01:10 AM   #20
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by len
...btw JZL240I-U, wouldn't "dd /dev/zero..." zero fill my hdd?
No, it wouldn't. Note that dd is writing to an output file as per "
dd if=/dev/zero of=/path/to/device/nullfile bs=1". But this is just academic and in your case of no practical value.
 
  


Reply



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
Mapping Windows share, then mirror data loadedmind Linux - Networking 5 02-07-2008 03:25 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 05:02 PM
install new distro WITHOUT loseing data in /home and other partitions Lleb_KCir Linux - General 5 07-20-2005 09:47 AM
Rsync to mirror data for backup - having difficulties tapanga Linux - Newbie 1 05-17-2004 05:45 PM
data mirror between machines knobby *BSD 1 07-25-2002 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:46 AM.

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