{"id":79404,"date":"2021-03-04T11:43:12","date_gmt":"2021-03-04T19:43:12","guid":{"rendered":"http:\/\/www.transterrestrial.com\/?p=79404"},"modified":"2021-03-08T07:53:06","modified_gmt":"2021-03-08T15:53:06","slug":"strange-computer-problem","status":"publish","type":"post","link":"https:\/\/www.transterrestrial.com\/wordpress\/2021\/03\/04\/strange-computer-problem\/","title":{"rendered":"Strange Computer Problem"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When I started using the machine this morning, it seemed to be running like molasses in January. I tried rebooting, and it took forever to boot, and then wouldn&#8217;t let me log in. I fired up a clean Fedora from a stick, and fscked my drives. The \/home hard drive had a lot of errors on it, that got fixed, but there was no problem with the SSD where my OS resides. Then I rebooted. It took a long time, but finally came up. Everything continues to load and run slow. Nothing seems to be bogging down the CPU, and there is plenty of free memory. Any ideas what the problem could be?<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">[Update a while later]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK, I rebooted without mounting the hard drive. It seems to be running fine now. So I guess I need a new drive.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Update early afternoon]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well, this is fun. It won&#8217;t boot with the drive mounted, so I&#8217;m back to the Fedora on a stick, but I can&#8217;t find the logical volume where my fstab is to tell it not to mount the drive.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Evening update]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I got the new drive, and started to dd the data from the old drive to it. The process died after about 2.7G, with an &#8220;i\/o error.&#8221; How screwed am I?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Update a couple minutes later]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m trying again, with a conv=noerror flag. I may not get everything, but hopefully most of it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Friday-morning update]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well, it&#8217;s copying at 11MB\/s. At that rate, it&#8217;s about a third of the way through, and won&#8217;t be done until tomorrow. I&#8217;m glad it wasn&#8217;t bigger&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Friday-afternoon update]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, after moving about 833GB, the process ground to a slow crawl, so I gave up on it, and am going to try ddrescue. I bought another drive to write the image to, but when I try to partition it, I get this message:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(parted) mkpart                                                           <br> Partition name?  []? gpt                                                  <br> File system type?  [ext2]? ext4                                           <br> Start? 1.048<br> End? 1800000                                                              <br> Warning: You requested a partition from 1048kB to 1800GB (sectors<br> 2046..3515625000).<br> The closest location we can manage is 1048kB to 1048kB (sectors 2047..2047).<br> Is this still acceptable to you?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s a 2-terabyte drive. What&#8217;s going on?  (And yes, I do have the correct drive selected, \/dev\/sde).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Update a few minutes later]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Never mind, I found the problem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Update]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK, WTF now?<\/p>\n\n\n<p>[root@localhost-live \/]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># lsblk<br>\nNAME                          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT<br>\nloop0                           7:0    0   1.8G  1 loop \/run\/media\/liveuser\/disk<br>\nloop1                           7:1    0   7.5G  1 loop <br>\n\u251c\u2500live-rw                     253:0    0   7.5G  0 dm   \/<br>\n\u2514\u2500live-base                   253:1    0   7.5G  1 dm   <br>\nloop2                           7:2    0    32G  0 loop <br>\n\u2514\u2500live-rw                     253:0    0   7.5G  0 dm   \/<br>\nsda                             8:0    0 232.9G  0 disk <br>\n\u251c\u2500sda1                          8:1    0   600M  0 part <br>\n\u251c\u2500sda2                          8:2    0     1G  0 part <br>\n\u2514\u2500sda3                          8:3    0   230G  0 part <br>\n  \u251c\u2500fedora_localhost&#8211;live-home00<br>\n  \u2502                           253:2    0    10G  0 lvm  <br>\n  \u2514\u2500fedora_localhost&#8211;live-root00<br>\n                              253:3    0   220G  0 lvm  <br>\nsdb                             8:16   0   1.8T  0 disk <br>\n\u2514\u2500sdb1                          8:17   0   1.8T  0 part <br>\nsdc                             8:32   0  55.9G  0 disk <br>\nsdd                             8:48   0   1.8T  0 disk <br>\n\u2514\u2500sdd1                          8:49   0   1.8T  0 part <br>\nsde                             8:64   0   1.8T  0 disk <br>\n\u2514\u2500sde1                          8:65   0   1.6T  0 part \/mnt<br>\nsdf                             8:80   1  14.9G  0 disk <br>\n\u251c\u2500sdf1                          8:81   1   1.9G  0 part \/run\/initramfs\/live<br>\n\u251c\u2500sdf2                          8:82   1  10.9M  0 part <br>\n\u2514\u2500sdf3                          8:83   1  22.9M  0 part <br>\nzram0                         252:0    0     4G  0 disk [SWAP]<br><\/p>\n\n\n<p>[root@localhost-live \/]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># umount \/mnt<br><\/p>\n\n\n<p>[root@localhost-live \/]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># lsblk<br>\nNAME                          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT<br>\nloop0                           7:0    0   1.8G  1 loop \/run\/media\/liveuser\/disk<br>\nloop1                           7:1    0   7.5G  1 loop <br>\n\u251c\u2500live-rw                     253:0    0   7.5G  0 dm   \/<br>\n\u2514\u2500live-base                   253:1    0   7.5G  1 dm   <br>\nloop2                           7:2    0    32G  0 loop <br>\n\u2514\u2500live-rw                     253:0    0   7.5G  0 dm   \/<br>\nsda                             8:0    0 232.9G  0 disk <br>\n\u251c\u2500sda1                          8:1    0   600M  0 part <br>\n\u251c\u2500sda2                          8:2    0     1G  0 part <br>\n\u2514\u2500sda3                          8:3    0   230G  0 part <br>\n  \u251c\u2500fedora_localhost&#8211;live-home00<br>\n  \u2502                           253:2    0    10G  0 lvm  <br>\n  \u2514\u2500fedora_localhost&#8211;live-root00<br>\n                              253:3    0   220G  0 lvm  <br>\nsdb                             8:16   0   1.8T  0 disk <br>\n\u2514\u2500sdb1                          8:17   0   1.8T  0 part <br>\nsdc                             8:32   0  55.9G  0 disk <br>\nsdd                             8:48   0   1.8T  0 disk <br>\n\u2514\u2500sdd1                          8:49   0   1.8T  0 part <br>\nsde                             8:64   0   1.8T  0 disk <br>\n\u2514\u2500sde1                          8:65   0   1.6T  0 part <br>\nsdf                             8:80   1  14.9G  0 disk <br>\n\u251c\u2500sdf1                          8:81   1   1.9G  0 part \/run\/initramfs\/live<br>\n\u251c\u2500sdf2                          8:82   1  10.9M  0 part <br>\n\u2514\u2500sdf3                          8:83   1  22.9M  0 part <br>\nzram0                         252:0    0     4G  0 disk [SWAP]<br><\/p>\n\n\n<p>[root@localhost-live \/]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># mount \/dev\/sde1 \/mnt<br><\/p>\n\n\n<p>[root@localhost-live \/]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># ddrescue -d \/dev\/sdb1 \/mnt\/test.img \/mnt\/test.logfile<br>\nGNU ddrescue 1.25<br>\nPress Ctrl-C to interrupt<br>\nInitial status (read from mapfile)<br>\nrescued: 0 B, tried: 0 B, bad-sector: 0 B, bad areas: 0\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Current status<br>\n     ipos:        0 B, non-trimmed:        0 B,  current rate:       0 B\/s<br>\n     opos:        0 B, non-scraped:        0 B,  average rate:       0 B\/s<br>\nnon-tried:    2000 GB,  bad-sector:        0 B,    error rate:       0 B\/s<br>\n  rescued:        0 B,   bad areas:        0,        run time:          0s<br>\npct rescued:    0.00%, read errors:        0,  remaining time:         n\/a<br>\n                              time since last successful read:         n\/a<br>\nCopying non-tried blocks\u2026 Pass 1 (forwards)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ddrescue: Error writing mapfile &#8216;\/mnt\/test.logfile&#8217;: No space left on device<br>\nFix the problem and press ENTER to retry,<br>\n                     or E+ENTER for an emergency save and exit,<br>\n                     or Q+ENTER to abort.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">************************************************<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">lsblk says it&#8217;s got 1.6 Terabytes. I just partitioned it. How can there be no space left on the device?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Update a while later]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, I forgot to format after petitioning&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Saturday-morning update]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK, so what does this mean?<\/p>\n\n\n<p>[root@localhost-live \/]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># ddrescue -d \/dev\/sdb1 \/mnt\/test.img \/mnt\/test.logfile<br> GNU ddrescue 1.25<br> Press Ctrl-C to interrupt<br>      ipos:    1784 GB, non-trimmed:   43778 kB,  current rate:  14680 kB\/s<br>      opos:    1784 GB, non-scraped:        0 B,  average rate:  46776 kB\/s<br> non-tried:  229778 MB,  bad-sector:        0 B,    error rate:       0 B\/s<br>   rescued:    1770 GB,   bad areas:        0,        run time: 10h 30m 51s<br> pct rescued:   88.51%, read errors:      668,  remaining time:      1h 10m<br>                               time since last successful read:         n\/a<br> Copying non-tried blocks\u2026 Pass 1 (forwards)<br> ddrescue: Write error: No space left on device<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">**************************************************<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So it rescued 88.51%. What does that mean, in terms of actual data recovery? It says it rescued 1770 GB, but I&#8217;m sure I didn&#8217;t actually have that much data (it was probably less than a terabyte). And why is there &#8220;no space left on device&#8221;?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Monday-morning update]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the final result of copying it to one of the new hard drives:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ipos:    1772 GB, non-trimmed:   57184 kB,  current rate:    180 kB\/s<br>\n     ipos:    1986 GB, non-trimmed:        0 B,  current rate:   40448 B\/s<br>\n     opos:    1986 GB, non-scraped:   16249 kB,  average rate:  18850 kB\/s<br>\nnon-tried:        0 B,  bad-sector:    1029 kB,    error rate:       0 B\/s<br>\n  rescued:    2000 GB,   bad areas:     2010,        run time:  1d  5h 28m<br>\npct rescued:   99.99%, read errors:     3885,  remaining time:         35m<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not sure what that means in terms of data integrity, but I&#8217;m now backing up the drive to the other new drive, after which I&#8217;ll e2fsck it, then try mounting it. It&#8217;s moving the data pretty briskly, and says it will be done in about three hours.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I started using the machine this morning, it seemed to be running like molasses in January. I tried rebooting, and it took forever to boot, and then wouldn&#8217;t let me log in. I fired up a clean Fedora from a stick, and fscked my drives. The \/home hard drive had a lot of errors &hellip; <a href=\"https:\/\/www.transterrestrial.com\/wordpress\/2021\/03\/04\/strange-computer-problem\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Strange Computer Problem<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,3],"tags":[],"class_list":["post-79404","post","type-post","status-publish","format-standard","hentry","category-administrative","category-technology-and-society"],"_links":{"self":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/79404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/comments?post=79404"}],"version-history":[{"count":17,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/79404\/revisions"}],"predecessor-version":[{"id":79426,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/79404\/revisions\/79426"}],"wp:attachment":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/media?parent=79404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/categories?post=79404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/tags?post=79404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}