#garfield Logs
Jun 29 2017
#garfield Calendar
05:10 AM Tom_itx: it returned with an error and didn't copy the file
09:21 AM rue_house: did it get anything?
09:21 AM rue_house: there is another program we can try
09:24 AM rue_house: -> apt-get install safecopy
09:43 AM rue_house: its odd that a sector was unreadable and the drive didn't log it to smart
10:13 AM Tom_itx: no time to try today, maybe this evening
10:14 AM Tom_itx: smart must be dumb
10:16 AM Tom_itx: 19.6k was logged
10:22 AM Tom_itx: i will run it again to image2.dd
10:23 AM Tom_itx: err 19.9 GB
10:23 AM Tom_itx: 6
10:25 AM Tom_itx: still room for the full image if it goes that far
10:40 AM Tom_itx: it stopped at 19.6G again: cat /dev/sdb1: Input/output error
10:48 AM Tom_itx: k. it will sit until later
10:49 AM Tom_itx: 2 likely identical images
07:19 PM rue_house: stuff away of delete them use safecopy
07:20 PM rue_house: linux puts data all over the partition, the likleyhood of the first 19G being ok are low
07:20 PM rue_house: safecopy will make a whole image
07:20 PM rue_house: dispite the errors
07:20 PM zhanx: why not DD?
07:20 PM Tom_itx: should i keep the first one?
07:20 PM rue_house: na
07:20 PM rue_house: drive errors
07:21 PM Tom_itx: i'll plug the drive back in..
07:21 PM rue_house: we cant read it all,
07:21 PM rue_house: safecopy will make an image dispite the errors
07:22 PM zhanx: what about gddrescue
07:22 PM zhanx: sorry just asking about what i use
07:23 PM rue_house: I'v never used gddrescue
07:23 PM rue_house: never used safecopy either
07:23 PM Tom_itx: :/
07:23 PM Tom_itx: do i need to get safecopy or is it there
07:23 PM zhanx: dd-rescue or gddrescue (different forks) both work fine
07:24 PM rue_house: they will read from drives giving io errors?
07:24 PM zhanx: yes
07:24 PM rue_house: we do NOT want to modify the drive
07:24 PM rue_house: we just want to copy what data we can
07:24 PM zhanx: Tom_itx: what is the make model of your drive, so i can check the firmware
07:24 PM rue_house: then we fix the ripped image
07:24 PM Tom_itx: wd 320gb
07:25 PM zhanx: rue_house: you have to remember some drives have firmware to skip bad sectors
07:25 PM rue_house: its not working
07:25 PM Tom_L: wd3200BEVT
07:25 PM rue_house: trying to cat the drive resulted in io errors
07:26 PM rue_house: but safecopy works with the drive and 'feels' out bad data and makes an image of all the data that is available
07:26 PM Tom_L: how do you know?
07:26 PM Tom_L: you said you never used it
07:26 PM rue_house: I installed it and am reading the docs
07:26 PM zhanx: Tom_itx: sudo apt-get install gddrescue
07:27 PM rue_house: you dont think I just pull this stuff out of my ass do you?
07:27 PM Tom_L: :)
07:27 PM rue_house: I suspect z has a valid method too
07:27 PM Tom_L: so which direction are we going here?
07:27 PM rue_house: whatever, we need an image of the data we can get thats read/writable
07:28 PM rue_house: zhanx, you used dd-grescue on drives with io errors?
07:28 PM zhanx: yes
07:28 PM Tom_L: gddrescue is installed
07:28 PM rue_house: ok
07:28 PM zhanx: lsblk -o name,label,size,fstype,model
07:28 PM rue_house: arg
07:28 PM rue_house: how about the whole partition
07:28 PM zhanx: to make sure it sda we are using
07:28 PM rue_house: he dosn't have space for the whole drive
07:28 PM rue_house: its sdb
07:29 PM Tom_L: yeah it's sdb
07:29 PM rue_house: fstype?
07:29 PM zhanx: ddrescue -d -r3 /dev/sdb1 test.img test.logfile
07:29 PM rue_house: thats better
07:29 PM Tom_L: i think i have space for the whole thing
07:29 PM zhanx: file system type
07:29 PM rue_house: yes, but I was wondering why it would ask that
07:29 PM rue_house: oooh its just telling ya, got it
07:30 PM zhanx: oh i was asking it
07:30 PM rue_house: Tom_itx, ddrescue -d -r3 /dev/sdb1 test.img test.logfile
07:30 PM rue_house: run that in /mnt2
07:30 PM Tom_L: rue, delete image.dd?
07:30 PM rue_house: yup
07:30 PM rue_house: cd /mnt2/
07:30 PM zhanx: or change test to whatever you want
07:30 PM rue_house: ddrescue -d -r3 /dev/sdb1 test.img test.logfile
07:31 PM zhanx: you can change the -r3 to -r9 if you want to retry bad sectors 9 times instead of 3
07:31 PM zhanx: or you can take out -r3 and skip them
07:31 PM rue_house: prolly try -r1 and get just as much faster
07:31 PM Tom_L: mnt2 is empty
07:31 PM Tom_L: i just removed the file
07:31 PM rue_house: yea, run that command in it
07:32 PM Tom_L: the ddrescue one?
07:32 PM zhanx: rue use DD to put the image back on the drive he is gonna use if i am not around when its done
07:33 PM Tom_L: rue_house, what does it do?
07:33 PM zhanx: or just mount it as a virtual drive etc
07:33 PM zhanx: Tom_L: that will back up your data for you\
07:33 PM rue_house: dont like "suspicious for nephrocalcinosis"
07:33 PM rue_house: zhanx, we will fix it, then mount it and pull his files off
07:33 PM zhanx: yep
07:34 PM rue_house: Tom_itx, your in /mnt2/ ?
07:34 PM Tom_L: on the new drive yes
07:34 PM rue_house: ddrescue -d -r3 /dev/sdb1 test.img test.logfile
07:34 PM Tom_L: what's the .img file it's building?
07:34 PM rue_house: a partition image
07:34 PM zhanx: the img is all your data in a raw file like a cd iso
07:34 PM Tom_L: of the bad drive?
07:34 PM rue_house: we can fix it, then loopback mount it
07:34 PM rue_house: of the partition of the bad drive
07:35 PM Tom_L: ok
07:35 PM Tom_L: it's going pretty slow
07:35 PM rue_house: that ok
07:35 PM rue_house: go have a coffee
07:35 PM zhanx: it will but it should get 99% most of the time
07:35 PM Tom_L: only 1.5g so far
07:35 PM Tom_L: it will likely take all night
07:36 PM rue_house: its important that it atleast 'make up' something for the missing chunks
07:36 PM rue_house: after we have the image file, we can run a repair utility on it
07:36 PM zhanx: Tom_L: its what i use for paying customers etc
07:36 PM Tom_L: # Rescue Logfile. Created by GNU ddrescue version 1.16
07:36 PM Tom_L: # Command line: ddrescue -d -r3 /dev/sdb1 test.img test.logfile
07:36 PM Tom_L: # current_pos current_status
07:36 PM Tom_L: 0x5BA10000 ?
07:36 PM Tom_L: # pos size status
07:36 PM Tom_L: 0x00000000 0x5BA20000 +
07:36 PM rue_house: because it'll be read/writable, we can fix the image
07:36 PM Tom_L: 0x5BA20000 0x482C3E0000 ?
07:36 PM Tom_L: so far
07:36 PM rue_house: then we can mount it and get what we can
07:36 PM rue_house: Tom_itx,
07:36 PM rue_house: BACKUPS
07:37 PM Tom_L: i ran out of drives
07:37 PM Tom_L: or i would have
07:37 PM zhanx: rue_house: chrono jobs with dif backups
07:37 PM rue_house: also, for any important machine, install it on mirrored raid
07:37 PM Tom_L: i'm pretty sure i have what i need on my server though
07:37 PM Tom_L: i keep important stuff multiple places
07:37 PM rue_house: software raid 1
07:37 PM rue_house: just give up on drives, install 2, its easy
07:37 PM Tom_L: 2.7G
07:38 PM zhanx: same here but i do a dif backup of my ~ nightly to a usb drive
07:38 PM rue_house: Tom_itx, *dont* wait for it
07:38 PM zhanx: Tom_L: this is a check every once in a while thing
07:38 PM rue_house: Tom_itx, thats almost 3 gigabytes, think of what that would sound like back in 1980
07:38 PM Tom_L: z i know that
07:38 PM Tom_L: just saying..
07:39 PM zhanx: k\
07:39 PM rue_house: such a stupid amount of space nobody would know what to even *start* doing with it
07:39 PM zhanx: sorry new keyboard, getting used to it
07:39 PM Tom_L: rue_house, the code we could have put in 3 gig :D
07:39 PM Tom_L: well this kbd sucks the big one
07:39 PM rue_house: if (r>6) goto 10060080
07:39 PM zhanx: i switched from a split back to a standard
07:40 PM rue_house: *ARG* forgot then
07:40 PM Tom_L: i think i paid $3 for this one
07:40 PM zhanx: this is back lit and quite with the mechanical feel still
07:40 PM zhanx: it was 16
07:40 PM rue_house: and then you put imoprtant information on it without running a SMART test
07:41 PM rue_house: :/
07:41 PM Tom_L: did you ever have a tape drive?
07:41 PM zhanx: i had zip drives
07:41 PM rue_house: no, but I kept floppioes in my pocket
07:41 PM zhanx: rue had 5-1/2" floppies i bet
07:41 PM rue_house: pull the lint out of the disk and its aaaaal ok, right!?
07:42 PM Tom_L: i had a few single sided 5.5" iirc
07:42 PM rue_house: and you try to flip them and is just messes everything up?
07:42 PM Tom_L: 180k iirc?
07:42 PM zhanx: i would hole punch my 2.5's to make the double sided
07:42 PM Tom_L: me too
07:43 PM rue_house: I would add the little plastic switch peice to make read-only disks writable
07:43 PM zhanx: so at work they settled on a nickname for me
07:43 PM Tom_L: lurch
07:43 PM zhanx: Dr. Frankenstein
07:43 PM Tom_L: hah pretty good guess
07:43 PM Tom_L: along the same lines anyway
07:43 PM rue_house: :( only 26 orders left waiting from china...
07:43 PM rue_house: I need to order more!
07:44 PM zhanx: yep, i can make a monster of a mess
07:44 PM rue_house: just got my 1000 1k resistors...
07:44 PM zhanx: actually only have 1 order waiting from china right now
07:44 PM Tom_L: i gotta go to the store
07:44 PM Tom_L: bak after bit
07:44 PM zhanx: ok later Tom
07:44 PM rue_house: I'm gonna go check on the two cnc machines
07:44 PM Tom_L: i'll check in later
07:45 PM Tom_L: 6.3g
07:45 PM zhanx: rue_house: you think of a solution to the tenision on the chain?
08:29 PM rue_house: chain?
08:29 PM rue_house: for the screw car?