CDLehner Posted February 10 Author Share Posted February 10 Sitting patiently…mostly. Quote Link to comment
trurl Posted February 11 Share Posted February 11 Let me ping @JorgeB on yet another thread. He often recommends cloning. It is way past bedtime in his part of the world so might be a few hours if he wants to get involved. Also, since they were the ones to suggest cloning and reiserfsck originally, let's see if @itimpi and @JonathanM want to help out. Quote Link to comment
JonathanM Posted February 11 Share Posted February 11 Short summary, positively identify the source and destination /dev/sd? devices, then issue a terminal command dd if=/dev/sd(source) of=/dev/sd(destination) bs=1M conv=noerror,sync Be VERY sure of the destination disk you put in the of (output file) section of the command, you really don't want to overwrite the wrong drive. Quote Link to comment
JonathanM Posted February 11 Share Posted February 11 Because Unraid doesn't always keep static /dev/sdX designations between boot cycles, it is vitally important to identify the source and destination /dev/sdX immediately before starting the dd command, don't reboot and trust the letters are the same. Quote Link to comment
trurl Posted February 11 Share Posted February 11 7 hours ago, CDLehner said: I think I might as well use disk5, as my "clone" This makes things more complicated. To get disk5 out of the array you are going to have to New Config/Rebuild parity before you could use it as the clone destination. Quote Link to comment
CDLehner Posted February 11 Author Share Posted February 11 So...I won't use disk5, as trurl cautions; I'll put a 3T drive, I had previously copied and removed back in. And this is the CLONE... 12 hours ago, JonathanM said: dd if=/dev/sd(source) of=/dev/sd(destination) bs=1M conv=noerror,sync Do this with array on or off? Do I need to do anything, to the RECEIVING disk...before running this command? Quote Link to comment
CDLehner Posted February 11 Author Share Posted February 11 Here is the RECEIVING drive... Assign it...or just run of=/dev/sdf? Quote Link to comment
trurl Posted February 11 Share Posted February 11 1 hour ago, CDLehner said: Do this with array on or off? off 1 hour ago, CDLehner said: do anything, to the RECEIVING disk...before no 46 minutes ago, CDLehner said: Assign it definitely NO Quote Link to comment
trurl Posted February 11 Share Posted February 11 47 minutes ago, CDLehner said: of=/dev/sdf what will be if=/dev/sdX ? 13 hours ago, JonathanM said: vitally important to identify the source and destination /dev/sdX immediately before starting the dd command Quote Link to comment
CDLehner Posted February 11 Author Share Posted February 11 Is there somewhere, I can watch progress? Quote Link to comment
JonathanM Posted February 11 Share Posted February 11 2 hours ago, CDLehner said: Is there somewhere, I can watch progress? Not really, had you pressed enter yet in that screenshot? I was thinking the blinking cursor would be at the beginning of the first blank line after you press enter. If you haven't hit enter yet, you could add status=progress to the command, separated by a space of course. dd if=/dev/sdi of=/dev/sdf bs=1M conv=noerror,sync status=progress Quote Link to comment
CDLehner Posted February 11 Author Share Posted February 11 ∆ That screenshot, was before ENTER; so yes...now I just have the blinking cursor, below the command line. Damn I wish I could have added the status=progress. How do I know when it's done!? When [email protected] is back? Did someone say, expect upwards of 3 days?? Quote Link to comment
CDLehner Posted February 11 Author Share Posted February 11 1 hour ago, CDLehner said: That screenshot, was before ENTER; so yes...now I just have the blinking cursor, below the command line. FTR...not blinking Quote Link to comment
CDLehner Posted February 12 Author Share Posted February 12 (edited) Hmm: when I walked in to check on this...the 1st thing I've been looking at, is the drive activity light on the slot I know I'm pulling from. NO LIGHT. I was happy, to see this...meaning it seemed to be done; but, of course...as you can see...some errors. What do we think gents? Edited February 12 by CDLehner Quote Link to comment
JonathanM Posted February 12 Share Posted February 12 3 hours ago, CDLehner said: I was happy, to see this...meaning it seemed to be done; but, of course...as you can see...some errors. What do we think gents? Looks good. The "error" is expected, we didn't tell dd when to quit, so it just ran until it got to the end of the device. Now run reiserfsck --scan-whole-partition --rebuild-tree /dev/sdf1 Quote Link to comment
CDLehner Posted February 12 Author Share Posted February 12 Be still my heart! 💜🙏 Quote Link to comment
CDLehner Posted February 12 Author Share Posted February 12 ^ Failed to open device sdf1. Didn't want to question...but was that a typo? Just sdf, right? Quote Link to comment
JonathanM Posted February 12 Share Posted February 12 Try rebooting, don't start the array, verify the sd? designation of the clone destination, and try the command again, be sure to add the 1, that's not a typo, it designates the first partition on the device. Quote Link to comment
CDLehner Posted February 12 Author Share Posted February 12 (edited) OK...rebooted; CLONE is still sdf Re-established TelNet (PuTTY) Edited February 12 by CDLehner Quote Link to comment
JonathanM Posted February 12 Share Posted February 12 Try reiserfsck --check /dev/sdf1 and see what it says. Since the drive was formatted XFS I'm not expecting it to find the deleted file system, but it won't hurt to try. Quote Link to comment
JonathanM Posted February 12 Share Posted February 12 Well, since we are playing with the cloned device, and haven't touched the original, we can get experimental. If things don't work, we can always do the clone command again to start over. So, lets try formatting as reiserfs to overwrite the XFS stuff. mkreiserfs /dev/sdf1 Then try the scan whole partition rebuild tree command. Quote Link to comment
CDLehner Posted February 12 Author Share Posted February 12 Oh, wow; that was quicker than I thought it would be. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.