Using xfsdump On Linux With IRIX Version 1 FS?
Sean Elble
elbles at sessys.com
Sat Jul 25 19:24:18 CDT 2009
On 7/25/09 5:46 AM, "Christian Kujau" <lists at 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 at sessys.com
| Web: http://www.sessys.com/~elbles/
| Cell: 860.946.9477
+-------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2139 bytes
Desc: not available
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20090725/6b50f7a9/attachment.p7s>
More information about the xfs
mailing list