#garfield Logs

Jun 28 2017

#garfield Calendar

10:24 PM rue_shop3: so, smartctl -a /dev/sdb |less
10:27 PM rue_shop3: look for the field called "reallocated sector count"
10:27 PM rue_shop3: it should be 0
10:27 PM Tom_L: === START OF INFORMATION SECTION ===
10:27 PM Tom_L: Model Family: Western Digital Scorpio Blue Serial ATA
10:27 PM Tom_L: Device Model: WDC WD3200BEVT-00A0RT0
10:27 PM Tom_L: Serial Number: WD-WXG1A80H0714
10:27 PM Tom_L: LU WWN Device Id: 5 0014ee 655c44a29
10:27 PM Tom_L: Firmware Version: 01.01A01
10:27 PM rue_shop3: under value
10:27 PM Tom_L: User Capacity: 320,072,933,376 bytes [320 GB]
10:27 PM Tom_L: Sector Size: 512 bytes logical/physical
10:27 PM Tom_L: Device is: In smartctl database [for details use: -P show]
10:27 PM Tom_L: ATA Version is: 8
10:27 PM Tom_L: ATA Standard is: Exact ATA specification draft version not indicated
10:27 PM Tom_L: Local Time is: Wed Jun 28 21:53:50 2017 CDT
10:27 PM Tom_L: SMART support is: Available - device has SMART capability.
10:27 PM Tom_L: SMART support is: Enabled
10:27 PM Tom_L: pattern not found
10:27 PM rue_shop3: there is a list of stuff
10:27 PM rue_shop3: you didn't give it the -a?
10:27 PM rue_shop3: smartctl -a /dev/sdb |less
10:27 PM Tom_L: 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
10:27 PM rue_shop3: oh god
10:27 PM rue_shop3: thats things scrap metal
10:27 PM Tom_L: i know
10:28 PM rue_shop3: the head IS scraping the platter as we speak
10:28 PM rue_shop3: k
10:28 PM rue_shop3: do you have enough room on the ...
10:28 PM Tom_L: so then time is of the essence
10:28 PM rue_shop3: run smartctl -a /dev/sda |less
10:28 PM Tom_L: yes i have room
10:28 PM rue_shop3: make sure your new drive is ok
10:29 PM Tom_L: it's a brand new ssd
10:29 PM Tom_L: let's skip that and get to the copy part
10:29 PM rue_shop3: oooh wait
10:29 PM rue_shop3: wrong row, damn them
10:29 PM rue_shop3: that last 0 is the actual value
10:29 PM rue_shop3: "RAW VALUE"
10:29 PM rue_shop3: your ok
10:30 PM Tom_L: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
10:30 PM rue_shop3: 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
10:30 PM rue_shop3: :)
10:30 PM Tom_L: that's the header for the data
10:30 PM rue_shop3: yea, were ok
10:30 PM rue_shop3: so, that said
10:30 PM rue_shop3: do you know which partition has the data you want?
10:31 PM Tom_L: there's one partition
10:31 PM Tom_L: afik
10:31 PM rue_shop3: no there are 3, one extended
10:31 PM Tom_L: then no
10:31 PM rue_shop3: sdb: sdb1 sdb2 < sdb5 >
10:31 PM rue_shop3: there is sdb1 sdb2 which is extended with sdb5 in it
10:31 PM Tom_L: it is in the /home/tom/ directory though
10:32 PM rue_shop3: ok, no hurry
10:32 PM Tom_L: just telling you
10:32 PM rue_shop3: fdisk /dev/sdb
10:32 PM rue_shop3: p enter
10:32 PM rue_shop3: Device Boot Start End Blocks Id System
10:32 PM rue_shop3: /dev/sda1 * 2048 134219775 67108864 83 Linux
10:32 PM rue_shop3: /dev/sda2 134219776 137291775 1536000 82 Linux swap / Solaris
10:32 PM rue_shop3: something like that
10:33 PM Tom_L: Device Boot Start End Blocks Id System
10:33 PM Tom_L: /dev/sdb1 * 2048 608434175 304216064 83 Linux
10:33 PM Tom_L: /dev/sdb2 608436222 625141759 8352769 5 Extended
10:33 PM Tom_L: /dev/sdb5 608436224 625141759 8352768 82 Linux swap / Solaris
10:33 PM rue_shop3: perfect sdb1
10:33 PM rue_shop3: q enter
10:33 PM rue_shop3: lets try this
10:33 PM rue_shop3: mkdir /mnt2
10:34 PM rue_shop3: mount /dev/sdb1 /mnt2
10:34 PM rue_shop3: tell me what it says
10:34 PM Tom_L: it's taking way too long
10:35 PM rue_shop3: ok
10:35 PM rue_shop3: try ctrl-c
10:35 PM rue_shop3: will it?
10:35 PM Tom_L: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
10:35 PM Tom_L: missing codepage or helper program, or other error
10:35 PM Tom_L: In some cases useful info is found in syslog - try
10:35 PM Tom_L: dmesg | tail or so
10:35 PM rue_shop3: ok
10:36 PM rue_shop3: .............. hold on.........fsck.ext3 /dev/sdb1
10:36 PM rue_shop3: do you know what TYPE of filesystem it used?
10:36 PM Tom_L: nope
10:36 PM rue_shop3: the new ones dont set up with ext3 anymore?
10:37 PM Tom_L: it's wheezy i think
10:37 PM rue_shop3: yea, hmm
10:37 PM Tom_L: debian 8
10:37 PM rue_shop3: they call the new system jackass or soemthing stupid
10:38 PM rue_shop3: type ckfs. and hit tab twice, tell me what it lists
10:38 PM rue_shop3: sorry
10:38 PM rue_shop3: fsck.
10:39 PM rue_shop3: well
10:39 PM rue_shop3: type fsck. and hit tab twice, tell me what it lists
10:39 PM Tom_L: fsck from util-linux 2.20.1
10:39 PM Tom_L: e2fsck 1.42.5 (29-Jul-2012)
10:39 PM Tom_L: /dev/sda1 is mounted.
10:39 PM Tom_L: e2fsck: Cannot continue, aborting.
10:40 PM rue_shop3: no
10:40 PM rue_shop3: type fsck. and press tab twice...
10:40 PM Tom_L: i did
10:40 PM rue_shop3: it'll list all completions
10:40 PM rue_shop3: wtf?
10:40 PM rue_shop3: ugh
10:40 PM rue_shop3: xfs is the new one
10:40 PM Tom_L: wait
10:40 PM rue_shop3: its either xfs or ext3 or ext4
10:41 PM Tom_L: what do you want to know?
10:41 PM Tom_L: there's a list
10:41 PM rue_shop3: what types of fsck program you have on your system
10:41 PM rue_shop3: fsck fsck.cramfs fsck.exfat fsck.ext2 fsck.ext3 fsck.ext4 fsck.ext4dev fsck.minix fsck.msdos fsck.nfs fsck.vfat
10:41 PM Tom_L: Display all 2125 possibilities? (y or n)
10:41 PM rue_shop3: n, no space, just fsck. and tab twice
10:41 PM Tom_L: don't hit enter?
10:41 PM rue_shop3: no enter
10:42 PM Tom_L: fsck fsck.ext2 fsck.ext4 fsck.minix fsck.nfs
10:42 PM Tom_L: fsck.cramfs fsck.ext3 fsck.ext4dev fsck.msdos fsck.vfat
10:42 PM rue_shop3: ok, lets try this then
10:42 PM rue_shop3: its kinda does or die
10:42 PM rue_shop3: fsck.ext4 /dev/sdb1
10:42 PM rue_shop3: wait
10:43 PM rue_shop3: another option to tell us
10:43 PM Tom_L: brb, gotta do something real quick
10:44 PM rue_shop3: fsck.ext4 -N -V -C /dev/sdb1
10:44 PM rue_shop3: it wont modify the drive
10:45 PM Tom_L: type that in?
10:45 PM rue_shop3: yup
10:45 PM Tom_L: Invalid non-numeric argument to -C ("/dev/sdb1")
10:46 PM Tom_L: brb again...
10:46 PM rue_shop3: huh
10:46 PM rue_shop3: fsck.ext4 -N -V /dev/sdb1 -C
10:50 PM Tom_L: fsck.ext4: option requires an argument -- 'C'
10:50 PM Tom_L: Usage: fsck.ext4 [-panyrcdfvtDFV] [-b superblock] [-B blocksize]
10:50 PM Tom_L: [-I inode_buffer_blocks] [-P process_inode_size]
10:50 PM Tom_L: [-l|-L bad_blocks_file] [-C fd] [-j external_journal]
10:50 PM Tom_L: [-E extended-options] device
10:50 PM Tom_L: Emergency help:
10:50 PM Tom_L: -p Automatic repair (no questions)
10:50 PM Tom_L: -n Make no changes to the filesystem
10:50 PM Tom_L: -y Assume "yes" to all questions
10:50 PM Tom_L: -c Check for bad blocks and add them to the badblock list
10:50 PM Tom_L: -f Force checking even if filesystem is marked clean
10:50 PM Tom_L: -v Be verbose
10:50 PM Tom_L: -b superblock Use alternative superblock
10:50 PM Tom_L: -B blocksize Force blocksize when looking for superblock
10:50 PM Tom_L: -j external_journal Set location of the external journal
10:50 PM Tom_L: -l bad_blocks_file Add to badblocks list
10:50 PM Tom_L: -L bad_blocks_file Set badblocks list
10:53 PM rue_shop3: fsck.ext4 -n -v /dev/sdb1 -c
10:53 PM Tom_L: fsck.ext4: The -n and -c options are incompatible.
10:54 PM rue_shop3: ugh
10:54 PM rue_shop3: lets modify it then
10:54 PM rue_shop3: fsck.ext4 -v /dev/sdb1 -c
10:54 PM Tom_L: make no changes and add to bad block list....
10:54 PM rue_shop3: na
10:54 PM Tom_L: run that?
10:54 PM rue_shop3: there are no bad blocks, the smart says so
10:54 PM rue_shop3: verbose and show progess
10:55 PM Tom_L: it's working
10:55 PM Tom_L: probably takes a while ehh?
10:56 PM rue_shop3: yea, is it saying much?
10:56 PM Tom_L: nothing yet
10:56 PM Tom_L: root@wheezy:/home/tom# fsck.ext4 -v /dev/sdb1 -c
10:56 PM Tom_L: e2fsck 1.42.5 (29-Jul-2012)
10:56 PM Tom_L: /dev/sdb1: recovering journal
10:56 PM Tom_L: Error reading block 37805092 (Attempt to read block from filesystem resulted in short read). Ignore error<y>?
10:56 PM rue_shop3: on another terminal, type dmesg, see if it ends with io or communications errors
10:56 PM Tom_L: ignore error?
10:56 PM rue_shop3: errrrrrrrrrrrrrrrrrrrr
10:56 PM rue_shop3: hold on
10:57 PM rue_shop3: there isn't a backup journal
10:57 PM rue_shop3: hmmm
10:57 PM rue_shop3: say n
10:58 PM rue_shop3: ?
10:58 PM rue_shop3: honestly, the odds are that any files that had pending writes when the failure happened aren't important files
10:58 PM Tom_L: JBD: Failed to read block at offset 23588
10:58 PM Tom_L: fsck.ext4: Input/output error while recovering ext3 journal of /dev/sdb1
10:58 PM Tom_L: /dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****
10:58 PM Tom_L: /dev/sdb1: ********** WARNING: Filesystem still has errors **********
10:59 PM rue_shop3: did it quit?
10:59 PM Tom_L: yes
10:59 PM rue_shop3: IO error, yea
10:59 PM rue_shop3: let me think
10:59 PM Tom_L: i was installing xilinx
10:59 PM rue_shop3: let me think
10:59 PM Tom_L: and running a lcnc latency test
10:59 PM Tom_L: when it locked up
11:00 PM Tom_L: we can pick this up tomorrow
11:00 PM rue_shop3: do you have 304G of free space on the good drive?
11:00 PM Tom_L: yes
11:00 PM Tom_L: i'm fairly sure
11:00 PM rue_shop3: ok, leave this running...
11:01 PM rue_shop3: cat /dev/sdb1 > /mnt2/image.dd
11:01 PM Tom_L: we can check free space first...
11:01 PM rue_shop3: overnight...
11:01 PM rue_shop3: df
11:01 PM rue_shop3: (drive free)
11:02 PM rue_shop3: -h for human readable
11:02 PM Tom_L: 451g
11:02 PM rue_shop3: ok
11:02 PM rue_shop3: cat /dev/sdb1 > /mnt2/image.dd
11:03 PM Tom_L: available
11:03 PM Tom_L: 425
11:03 PM rue_shop3: I dont know if it'll work, the copy might push thru the errors, it might not
11:03 PM rue_shop3: for fsck to work, we need a readable system, even if there are errors in it
11:04 PM Tom_L: will it copy blank space too or just files?
11:05 PM rue_shop3: its the whole partition
11:05 PM Tom_L: ok
11:05 PM rue_shop3: then we can fix the image and revoer the files **plan a*
11:06 PM Tom_L: i wonder how long it will take
11:06 PM Tom_L: it's going to a ssd
11:07 PM Tom_L: will i get any indication when it's done?
11:13 PM Tom_L: i will shut it down and wait when it finishes
11:16 PM Tom_itx: where will it put the file?
11:16 PM Tom_itx: in root?
11:27 PM rue_shop3: that command would put it in the /mnt2/ folder I had you make
11:28 PM rue_shop3: cat /dev/sdb1 > /mnt2/image.dd