Re: disk error / failure: need help! (smart failure predicted)

From: Eric W. Bates (ericx_lists_at_vineyard.net)
Date: 12/12/03

  • Next message: Kurt Jaeger: "Re: routing according to traffic type..."
    Date: Fri, 12 Dec 2003 10:02:04 -0500
    To: freebsd-isp@freebsd.org
    
    

    We've successfully used dump/restore in this situation. I suspect that
    dd is faster, tho.

    In single user:

    dump 0fB - 10000000 / | (cd /newdisk; restore -rf -)

    Check the man pages. 10000000 is an arbitrarily large number to make
    sure that all blocks of the disk in question are read.

    Steve Bertrand wrote:

    >>>At the moment the disk works (still). What is the easiest way to
    >>>copy everything from this disk to another new one (including boot
    >>>mgmr, mbr)
    >>>
    >>>the system has in total 3 disks, but only the first (the broken one)
    >>>is bootable.
    >>>
    >>
    >>Put in another disk drive temporarily, and since this is only a one time
    >>thing, you can use dd. Try to eliminate most, if not all access to the
    >>box:
    >>
    >># dd if=/dev/ad0 of=/dev/ad4
    >>
    >>Substitute ad4 with the dev name of the temporary drive. Once dd is
    >>done, take out the primary disk and replace it with the new clone. Read
    >>man dd(8) as I don't know off the top of my head what the optimal
    >>options would be for dd in this case.
    >>
    >
    >
    > I'm following a thread in questions right now, and I must agree with
    > some of the posts stating that using dd on the / filesystem could cause
    > grief if the partition is mounted. You may want to use a fixit floppy or
    > alternative boot method and then dd the disk to ensure no writes occur
    > whilst in transfer.
    >
    > Steve
    >
    >
    >
    >
    >>Steve
    >>
    >>
    >>>thanks,
    >>>arie
    >>>
    >>>_______________________________________________
    >>>freebsd-isp@freebsd.org mailing list
    >>>http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    >>>To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Kurt Jaeger: "Re: routing according to traffic type..."

    Relevant Pages

    • Re: disk error / failure: need help! (smart failure predicted)
      ... >> mgmr, mbr) ... take out the primary disk and replace it with the new clone. ... Steve Bertrand ...
      (freebsd-isp)
    • Re: disk error / failure: need help! (smart failure predicted)
      ... > in one of our servers we have a disk where the bios reports ... > unfortunately this happens to be our start volume (ad0) which has ... > At the moment the disk works. ... Steve Bertrand ...
      (freebsd-isp)
    • INIT: Cannot create /var/adm/utmp or /var/adm/utmpx on Sol7 / Ultra10
      ... We had a disk go bad on an ultra10 running Solaris 7, and to attempt to get things running quicly we connected an external SCSI disk and restored from tape. ... Target 3 ... One other interesting thing, is that before I recreated /devices and /dev, booting from the disk complained about being unable to fsck because c1t3d0s0 devices did not exist. ... It did then let me get a single user shell, and mount showed all of the old c0t0 mounts even though I'd edit vfstab. ...
      (SunManagers)
    • Re: How to get or change root password
      ... I dont see an option for single user mode. ... Somehow you need to get to the RedBoot prompt and then you ... Does it have a 'real' disk or a silicon disk? ...
      (comp.os.linux.misc)
    • Re: ultra10 cannot see SCSI disk on Sol 9
      ... Tried booting single user from the CD, ... that Sol 9 sees the disk for formatting. ... >>The SCSI controller is the only one present. ... > can you boot it single user and run format to format the disk? ...
      (comp.unix.solaris)