From owner-freebsd-questions@FreeBSD.ORG Mon Jul 7 03:45:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7370106564A for ; Mon, 7 Jul 2008 03:45:25 +0000 (UTC) (envelope-from muksyed@yahoo.com) Received: from web31501.mail.mud.yahoo.com (web31501.mail.mud.yahoo.com [68.142.198.130]) by mx1.freebsd.org (Postfix) with SMTP id 85C2B8FC1B for ; Mon, 7 Jul 2008 03:45:25 +0000 (UTC) (envelope-from muksyed@yahoo.com) Received: (qmail 65159 invoked by uid 60001); 7 Jul 2008 03:45:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=2xzbBlTPtlUPHWulnswekJopyYHGBNEjr1VOh+deP8dpFEtZBRYDheVv3pbIN1Rq7VCMCSPDI0DeCLd26e4XSes76/bhGv3fYqP70pga+BxraeemWqLk8/gr44B4bdWsPnGHAm3K144g4YcX74PQn4D3etFmSk7rCkxt1xs6U6g=; Received: from [67.180.48.202] by web31501.mail.mud.yahoo.com via HTTP; Sun, 06 Jul 2008 20:45:24 PDT X-Mailer: YahooMailRC/1042.33 YahooMailWebService/0.7.199 Date: Sun, 6 Jul 2008 20:45:24 -0700 (PDT) From: Mukarram Syed To: Wojciech Puchar , freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <762991.63396.qm@web31501.mail.mud.yahoo.com> Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Recovering root password from a drive by mounting the cdrom X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2008 03:45:25 -0000 Thanks for this response and others. However, my problem does not look to be so simple. I boot off the install cd and get into the fixit prompt. I dmesg | less and get the device name that I think is my hard drive /dev/ad0. I fdisk /dev/ad0 and get information about 3 slices. I am think /dev/ad0 slice 3 is the root file system because slice 3 has a greatest amount of disk space and that looks like my root partition Then I ls -l /dev |grep ad0 and it spits out a number for /dev/ad0 like ad0s0 ad0s1 ad0s3 etc. I am assuming /dev/ad0s3 is slice 3 which I believe it to be my root partition. So I mount it: mount /dev/ad0s3 /mnt I do a df -k and find that /mnt has 0 bytes available. To check I cd /mnt and ls and don't find any data in it. I check/dev/ad0s2 /dev/ad0s1 in the same way. None of it has any data. I guess there is something else that I am missing at this point. Can anyone advise. Thanks # mukarram Mukarram Syed muksyed@yahoo.com ----- Original Message ---- From: Wojciech Puchar To: Mukarram Syed Cc: freebsd-questions@freebsd.org Sent: Sunday, July 6, 2008 2:18:56 PM Subject: Re: Recovering root password from a drive by mounting the cdrom > I need your help! > I have booted up from a freebsd install cd 1. I have connected my freebsd drive in the system. Now I don't know how to mount the drive to edit the /etc/shadow file. > I am at the fixit prompt on the cd. IMHO mount /mnt mount /mnt/usr cd /mnt chroot . usr/bin/passwd and change the password _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"