>> On Mar 26, 2016, at 8:30 PM, Michael <keybou...@gmail.com> wrote:
>> 
>> OK, now for a switch: a DD question.
>> 
>> I was able to read the entire drive (cat /dev/rdisk0 > /dev/null) without 
>> error.
>> So, I want to try a "write each sector back in place", to see if the drive 
>> is still alive or dying.
>> 
>> My thinking was simple:
>> 
>> dd if=/dev/rdisk0 of=/dev/rdisk0 bs=2560
>> 
>> thinking that would would read 10 sectors, write those same 10 sectors, and 
>> then continue.
>> 
>> My concern? With the same file for input and output, would it write starting 
>> at block 0, or would it read 0-9, and then write 10-19?
>> 
>> Also: Is there a better way to re-write the contents of a hard drive?

Well, shoot.

dd if=/dev/null of=/dev/rdisk0 bs=512 count=1 oseek=743132
dd: /dev/rdisk0: Resource Busy

Once I realized that "skip" and "seek" are different, and now have the names 
"iseek" and "oseek", it was easy enough to verify the flawed block. But dd 
won't actually let me write it.

Worse, for whatever reason, it will read occasionally. But with no writable 
file system, and no ramdisk support that I know of, I have no way to save those 
bytes to retry.

My goal is simple: Yes, this drive is on deaths door. If I can get the drive to 
reallocate that sector, I can at least continue to use this machine.

But dd won't write to the drive. Yes, this is single user. Yes, I've verified 
that the only programs running are launchd (1), launchctl (2), and bash (3).

Anyone have an idea why dd won't write to the raw drive? Again, 10.5.8, ppc mac.


>> 
>> 
>> On 2016-03-26, at 7:14 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote:
>> 
>>> I believe it would use an Ultra ATA/100 hard drive (60GB?). Not sure about 
>>> availability of those anymore...
>>> -Carl
>>> 
>>>> On Mar 26, 2016, at 7:10 PM, Michael <keybou...@gmail.com> wrote:
>>>> 
>>>> Hmm ... what kind of drive do I put in this laptop? 
>>>> 
>>>> iBook G4, 15 inch ... 1 GB memory.
>>>> 
>>>> (I use it primarily for a second screen, and playing dos games in QEMU).
>>>> 
>>>> On 2016-03-26, at 7:08 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> 
>>>> wrote:
>>>> 
>>>>> Disk Warrior can work wonders, but you'd probably be better off getting a 
>>>>> new drive for that $120, and reloading your Time Machine backup onto it. 
>>>>> When you start getting file system corruption, it's usually the fault of 
>>>>> the disk (as I learned the hard way :O)
>>>>> -Carl
>>>>> 
>>>>> 
>>>>>> On Mar 26, 2016, at 6:30 PM, Michael <keybou...@gmail.com> wrote:
>>>>>> 
>>>>>> At $120, it's not worth that much :-).
>>>>>> 
>>>>>> I'm wondering if I could get a reinstall from the genius bar.
>>>>>> 
>>>>>> On 2016-03-26, at 4:33 PM, Macs R We <macs...@macsrwe.com> wrote:
>>>>>> 
>>>>>>> If you have disk warrior, boot from it and try to repair the drive. If 
>>>>>>> you don't have it, it's really, really worth getting.
>>>>>>> 
>>>>>>>> On Mar 26, 2016, at 3:59 PM, Michael <keybou...@gmail.com> wrote:
>>>>>>>> 
>>>>>>>> I have an iBook G4, running 10.5.8. Today, it rebooted on me, at 
>>>>>>>> "random".
>>>>>>>> 
>>>>>>>> During startup, it complained about problems with the root file 
>>>>>>>> system, and said that an fsck would be forced at next startup. So, I 
>>>>>>>> forced a reboot from the login screen.
>>>>>>>> 
>>>>>>>> Naturally, it did not do the fsck. So, a reboot into single user mode.
>>>>>>>> 
>>>>>>>> Fsck -f tells me the following:
>>>>>>>> 
>>>>>>>> Checking Journaled HFS plus volume
>>>>>>>> Checking extents overflow file
>>>>>>>> Checking catalog file
>>>>>>>> Keys out of order (4, 704)
>>>>>>>> Rebuilding catalog B-tree
>>>>>>>> The volume could not be repaired
>>>>>>>> Exited with signal 8
>>>>>>>> 
>>>>>>>> What do I do at this point to recover? I have a full time machine 
>>>>>>>> backup.
>>>>>>>> 
>>>>>>>> ---
>>>>>>>> Entertaining minecraft videos
>>>>>>>> http://YouTube.com/keybounce
>>>>>>>> 
>>>>>>>> _______________________________________________
>>>>>>>> MacOSX-talk mailing list
>>>>>>>> MacOSX-talk@omnigroup.com
>>>>>>>> http://www.omnigroup.com/mailman/listinfo/macosx-talk
>>>>>>> 
>>>>>> 
>>>>>> ---
>>>>>> Entertaining minecraft videos
>>>>>> http://YouTube.com/keybounce
>>>>>> 
>>>>>> _______________________________________________
>>>>>> MacOSX-talk mailing list
>>>>>> MacOSX-talk@omnigroup.com
>>>>>> http://www.omnigroup.com/mailman/listinfo/macosx-talk
>>>>> 
>>>> 
>>>> ---
>>>> Entertaining minecraft videos
>>>> http://YouTube.com/keybounce
>>>> 
>>> 
>> 
>> ---
>> Entertaining minecraft videos
>> http://YouTube.com/keybounce
>> 
>> _______________________________________________
>> MacOSX-talk mailing list
>> MacOSX-talk@omnigroup.com
>> http://www.omnigroup.com/mailman/listinfo/macosx-talk
> 

---
Entertaining minecraft videos
http://YouTube.com/keybounce

_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@omnigroup.com
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to