Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #177577

Re: HELP! Re: How to fix I/O errors?

From Marc Shapiro <marcnshap@gmail.com>
Newsgroups linux.debian.user
Subject Re: HELP! Re: How to fix I/O errors?
Date 2017-02-09 01:00 +0100
Message-ID <t8Kjw-6RL-13@gated-at.bofh.it> (permalink)
References (10 earlier) <t8v18-5P4-25@gated-at.bofh.it> <t8Jx7-6AK-3@gated-at.bofh.it> <t8Jx7-6AK-5@gated-at.bofh.it> <t8Jx7-6AK-1@gated-at.bofh.it> <t8K0a-6KO-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 02/08/2017 03:37 PM, Marc Shapiro wrote:
> On 02/08/2017 03:06 PM, Ric Moore wrote:
>> On 02/08/2017 04:38 PM, Marc Shapiro wrote:
>>> On 02/08/2017 01:26 PM, Ric Moore wrote:
>>>> On 02/08/2017 02:37 AM, Marc Shapiro wrote:
>>>>> How it went is not well.  I tested the new drive with SeagateTools 
>>>>> and
>>>>> it was fine.  Then I made a clonezilla live CD and booted from 
>>>>> it.  It
>>>>> stopped on the first read error with a message saying to restart 
>>>>> using
>>>>> the rescue option.  I did that.  After 5 hours it finished without
>>>>> mentioning any errors.
>>>>>
>>>>> I tried to boot to the old disk (since it was still wired that 
>>>>> way).  I
>>>>> got dropped int a maintenance shell with fs errors in /dev/sda4 
>>>>> which is
>>>>> the physical volume for all my LVM logical volumes -- /usr, /var, 
>>>>> /home
>>>>> and /temp.  It says to run fsck manually.
>>>>>
>>>>> I decided to try the new drive, so I changed the cables and 
>>>>> re-booted.
>>>>>
>>>>> Maintenance shell, again.
>>>>>
>>>>> / mounted clean
>>>>>
>>>>> lvm started
>>>>>
>>>>> /home fs has errors run fsck (at this point, I'm afraid to try it)
>>>>>
>>>>> /var, /usr, and /tmp all say that the superblock can not be read, 
>>>>> or is
>>>>> invalid.  Try running
>>>>>
>>>>> e2fsck -b 8193 <device>
>>>>> or
>>>>> e2fsck -b 32768 <device>
>>>>>
>>>>> Which do I use?
>>>>>
>>>>> How did trying to clone the disk nake such a mess of BOTH disks?
>>>>
>>>>
>>>> You cloned a mess, you got a perfect copy. I'd do a clean install to
>>>> the new drive, after formatting the entire drive. Once you boot into
>>>> that drive, mount the old drive. It should show up in 
>>>> /media/<username>
>>>> Then copy the directories of personal stuff you want to keep to a new
>>>> location on the new drive. I use cp -raf <source directory>
>>>> <destination> and everything, including sub-directories, file
>>>> ownership and file permissions are preserved. If a file is clunky, it
>>>> won't copy it and should proceed.
>>>>
>>>> Next, if you are in your office, observe if the window is open. If
>>>> yes, throw the old drive out of it. :) Ric
>>>>
>>>>
>>> Ric,
>>>
>>>
>>> As soon as I finished my last post (above) I realized that what you
>>> suggest is exactly what I should have done in the first place. Why I
>>> did not realize that earlier (and save myself a lot of headaches) I do
>>> not know.  The system is now booting to the old drive, just as it did
>>> before.  I think it just needed a good night's sleep.  I know that I 
>>> did.
>>>
>>> My next steps are:
>>>
>>>     Format new drive
>>>
>>>     Install fresh on new drive
>>>
>>>     Mount and copy /home from old drive to new drive
>>
>> Careful there, I would not copy any of the /home/username/dot-files 
>> or dot directories over, except like .mozilla and .thunderbird, so 
>> you don't carry over some old and crufty setting that might have been 
>> problematic. To spare you nightmares like this one, I use the /opt 
>> directory on a separate partition for all of my personal data.
>> So, I use /opt/ric/Documents and in my brand-new /home/ric directory 
>> I delete the newly created Documents directory and then link (ln -s 
>> /opt/ric/Documents Documents) and do the same with the other familiar 
>> home directories like Videos, Music, Downloads, everything except 
>> Desktop. If something goes ape, systemk-wise, you can do a fresh 
>> install of / (root) directory and leave /opt alone. I've done this 
>> since the old Caldera days. Nary a burp in the barrel! Ric
>>
>>
>>
> I don't usually go quite that far, but photos, videos, and virtual 
> disks are all in /usr/local/  which I will also need to copy over.  
> You say to avoid copying   except .mozilla and .thunderbird.  I have 
> 117 such dot-files and dot-directories.  Are you saying only to leave 
> .mozilla and .thunderbird and have everything else rebuild when it is 
> next used.  Admittedly, that will get rid of some cruft, but how 
> should I determine if there are others that I should keep?
>
>
> I tried to format the new drive using st (Seagate Tools).  It said 
> that it would remove all data, which is expected, but nothing was 
> removed!  It also took less than a minute.  Should I be using /dev/sda 
> in the command line instead of /dev/sg0 (which is how st -l lists the 
> drive)?
I just tried this with 'st -i /dev/sda' (which should give drive info) 
and it does nothing, so that doesn't work.  So how do I lay down a low 
level format on this drive?
>
>
> Marc
>
>
>
> Marc
>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

HELP! Re: How to fix I/O errors? Marc Shapiro <marcnshap@gmail.com> - 2017-02-08 08:40 +0100
  Re: HELP! Re: How to fix I/O errors? David Christensen <dpchrist@holgerdanske.com> - 2017-02-08 19:00 +0100
  Re: HELP! Re: How to fix I/O errors? Ric Moore <wayward4now@gmail.com> - 2017-02-09 00:10 +0100
    Re: HELP! Re: How to fix I/O errors? Marc Shapiro <marcnshap@gmail.com> - 2017-02-09 00:40 +0100
      Re: HELP! Re: How to fix I/O errors? Marc Shapiro <marcnshap@gmail.com> - 2017-02-09 01:00 +0100
        Re: HELP! Re: How to fix I/O errors? David Christensen <dpchrist@holgerdanske.com> - 2017-02-09 02:40 +0100
          Re: HELP! Re: How to fix I/O errors? (SOLVED) Marc Shapiro <marcnshap@gmail.com> - 2017-02-11 08:40 +0100
            Re: HELP! Re: How to fix I/O errors? (SOLVED) David Christensen <dpchrist@holgerdanske.com> - 2017-02-11 23:30 +0100
      Re: HELP! Re: How to fix I/O errors? rhkramer@gmail.com - 2017-02-09 03:00 +0100
    Re: HELP! Re: How to fix I/O errors? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-09 14:20 +0100
      Re: HELP! Re: How to fix I/O errors? Ric Moore <wayward4now@gmail.com> - 2017-02-09 18:10 +0100
        Re: HELP! Re: How to fix I/O errors? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-09 18:20 +0100
          Re: HELP! Re: How to fix I/O errors? Ric Moore <wayward4now@gmail.com> - 2017-02-10 18:50 +0100

csiph-web