Re: Using xfsdump On Linux With IRIX Version 1 FS?

Sean Elble
2009-07-26T00:23:45Z

[-- Attachment #1.1: Type: text/plain, Size: 2065 bytes --]

On 7/25/09 5:46 AM, "Christian Kujau" <lists@nerdbynature.de> wrote:

> On Sat, 25 Jul 2009 at 09:26, Matthias Schniedermeyer wrote:
>>> # losetup -r /dev/loop0 /path/to/IRIXbackup
>>> # hexedit /dev/loop0 ...or whatever tool you'll be using.
>>
>> Which has what advantage over directly changing the image?
>
> Sean mentioned the "thrashing of the old disk" and I figured I'd be
> worried not only by that but that the old disk might die anytime soon. So
> I wanted to present an alternative to do the search - I don't know too
> much about his setup, so it's up to him to follow this advice or not.
>

Well, I ended up dd'ing the old SCSI disk to a file on a spare Linux box I
have laying around for just this sort of purpose. I then opened the
resulting file up with hexedit, switched to ASCII mode, did a search for the
root password hash, and replaced it with a known hash for "blah."

DD'ed the image back to the disk, threw it back in the Indigo2, and booted.
I entered maintenace mode, ran sash, and cat'ed the /etc/shadow file. It
still had the old password. So, back to the image file I went. The
password string was in there multiple times, to the point where I lost
count. I should have thought of that the first time around, but I figured
once was good enough. Searched and replaced the string until the old string
wasn't in there anymore, reimaged the drive, put it back in the SGI, booted,
and voila: I can log in again.

The loopback method was a moot point, as the box I was using didn't have the
loopback driver compiled in or available as a module, so I never even tried
it. I'll definitely keep it in mind (and in my inbox) should another few
years go by and I can't remember the password again. :-)

Thanks so much for all the help guys, I really appreciate it.

-Sean

--
+-------------------------------------------------
| Sean Elble
| Virginia Tech, Class of 2009
| E-Mail: elbles@sessys.com
| Web: http://www.sessys.com/~elbles/
| Cell: 860.946.9477
+-------------------------------------------------

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2139 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]