Re: Recovering root password from a drive by mounting the cdrom
Thanks Manolis for your response. This disk is running freebsd but it's from iomega software company on an unsupported raid controller product of theirs. I can't get any help from them even for a price. I could boot up the disk in single user but at the login prompt I can't type anything, even if I boot up in multi user mode. That's why I was trying the cd path hoping I could get in that way. Yes I think my console may been marked as 'insecure' in /etc/ttys that's why I am not able to get in as you said. I try the options you gave me below and see what I could find. Thanks much # mukarram Mukarram Syed [EMAIL PROTECTED] - Original Message From: Manolis Kiagias [EMAIL PROTECTED] To: Mukarram Syed [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Monday, July 7, 2008 12:12:17 AM Subject: Re: Recovering root password from a drive by mounting the cdrom Mukarram Syed wrote: 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 [EMAIL PROTECTED] There must be something wrong if don't see any partitions in any of the slices. You should see something like ad0s1a, ad0s1d, ad0s1f ... Are you able to boot the server normally, from its own disk? Are you able to boot into single user mode, by selecting it from the boot menu? If you can boot into single user mode, you can change the password immediately by doing something like: mount -o rw / mount -a passwd (then exit and boot will continue) If you are asked for a root password when going into single user mode, your console has been marked as 'insecure' in /etc/ttys. You will need to boot with the live CD, mount the root partition and change /etc/ttys, then reboot in single user mode and change the password. This is the easiest way IMHO. If you are not asked for a password when getting into single user mode, you don't need the live CD at all. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Recovering root password from a drive by mounting the cdrom
Hi, I am totally new to freebsd and as a Unix admin (not a freebsd unix admin though), I have to recover a lost root password from a freebsd drive. 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. Can anyone help. I have tried googling this for the past hour with no luck. Is there anyother way to do this? I can't login using single user mode though. thanks much # mukarram Mukarram Syed [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD single user?
Hi BSD Gurus. I am in dire need of your help today. I purchased an iomega NAS device which runs on FreeBSD. I happened to incorrectly change root password and now I am stuck. I am not a FreeBSD expert to figure this out. This device does not have a USB connecter nor a cdrom drive. It only has Keyboard, Video and RS232 connector along with a couple of RJ45's for network access. Having said that, I have tried the following after doing a lot of researching on the internet: I could get to to this stage, bootloader stage 2: FreeBSD/i386 BOOT Default: 0:ad(0,a)/boot/loader boot: At the boot: prompt I am trying to get into single user mode by typing boot: /kernel -s It does go into single user mode, I think and I get the following display: Enter full pathname of shell or RETURN for /bin/sh: At this point when I type RETURN or /bin/sh nothing gets echoed to the screen. I think if I could get to proceed from this point, I could be saved. However when I type ? at the boot: prompt, I get to see a number of options: . .. dev kernel etc cdrom proc dist bin boot mnt modules root sbin tmp user sys .cshrc .profile COPYRIGHT model compat u3 lost+found markversion home cgi-bin share1 share2 share3 share4 ... share 16 I none of above options work at the boot: prompt. The only things that work are /kernel and /boot/loader. Any any ideas to get me to type something here at the single user prompt would be helpful or any other suggestions you might have...like be able to use the RS232 to connect an external CDRom drive or something so I could boot off the cd in rescue mode or any other ideas. iomega is not giving me any support since this product is out of warranty and they don't support it any more...not even for a price. Appreciate any of the FreeBSD experts helping me out here. Mukarram Syed [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD single user?
Thanks for your response... I tried to press Enter and then Cntl + D and that didn't help either. Sorry for the delay, it took a while to type all of this from the screen. Here are my scenarios: Scenario 1: After I power cycle the array, it boots up and comes to this: F1 FreeBSD F2 FreeBSD F3 FreeBSD F5 Drive 1 Default: F5 I hit Enter and it changes to this: F1 FreeBSD F2 FreeBSD F3 FreeBSD F5 Drive 2 Default: F1 I hit Enter and space (I think), it drops me down to this: FreeBSD/i386 BOOT Default: 1:ad(1,a)/boot/loader boot: At the boot: I type /kernel -s It goes through the boot process and these are the lines before I hit my road block: Enter full pathname of shell or RETURN for /bin/sh: the lines are: Mounting root from ufs:ad1s1a Root Mount Failed: 6 Mounting root from ufs:ad1a Root Mount Failed: 6 Manual root file system gives me an example then it drops me down to this prompt: mount root I type: mount root ufs:/dev/ad0a Mounting root from ufs:/dev/ad0a WARNING / was not properly dismounted Enter full pathname of shell or RETURN for /bin/sh: The line Enter full pathname of shell or RETURN for /bin/sh: seemed to be rather grayed out. What I mean is that the color is a bit lighter than the other text above of it. At this point I can't type anything. It's pretty much frozen. Scenario 2: After I power cycle the array, it boots up and comes to this: F1 FreeBSD F2 FreeBSD F3 FreeBSD F5 Drive 1 Default: F5 I NOT touch anything on the keyboard and it changes to this: F1 FreeBSD F2 FreeBSD F3 FreeBSD F5 Drive 2 Default: F1 I let it boot up and hit space after a sec or so. then I get it down to the ok prompt: ok I type ok boot -s It boots up and here are the lines before I hit my road block: Waiting for DAG engine to start RAIDFRAME: configure (RAID level 1): total number of sectors 483200 (235MB) RAIDFRAME (RAID level 1): use 6 floating recon bufs with no head sep limit Mounting root form ufs:/dev/raid0c Enter full pathname of shell or RETURN for /bin/sh: At this point I can't type anything. It's pretty much frozen. I don't know what to do at this point. # mukarram Mukarram Syed [EMAIL PROTECTED] - Original Message From: Ryan Coleman [EMAIL PROTECTED] To: Mukarram Syed [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Sunday, June 29, 2008 10:28:04 AM Subject: Re: FreeBSD single user? Mukarram Syed wrote: Hi BSD Gurus. I am in dire need of your help today. I purchased an iomega NAS device which runs on FreeBSD. I happened to incorrectly change root password and now I am stuck. I am not a FreeBSD expert to figure this out. This device does not have a USB connecter nor a cdrom drive. It only has Keyboard, Video and RS232 connector along with a couple of RJ45's for network access. Having said that, I have tried the following after doing a lot of researching on the internet: I could get to to this stage, bootloader stage 2: FreeBSD/i386 BOOT Default: 0:ad(0,a)/boot/loader boot: At the boot: prompt I am trying to get into single user mode by typing boot: /kernel -s It does go into single user mode, I think and I get the following display: Enter full pathname of shell or RETURN for /bin/sh: At this point when I type RETURN or /bin/sh nothing gets echoed to the screen. I think if I could get to proceed from this point, I could be saved. However when I type ? at the boot: prompt, I get to see a number of options: . .. dev kernel etc cdrom proc dist bin boot mnt modules root sbin tmp user sys .cshrc .profile COPYRIGHT model compat u3 lost+found markversion home cgi-bin share1 share2 share3 share4 ... share 16 I none of above options work at the boot: prompt. The only things that work are /kernel and /boot/loader. Any any ideas to get me to type something here at the single user prompt would be helpful or any other suggestions you might have...like be able to use the RS232 to connect an external CDRom drive or something so I could boot off the cd in rescue mode or any other ideas. iomega is not giving me any support since this product is out of warranty and they don't support it any more...not even for a price. Appreciate any of the FreeBSD experts helping me out here. Mukarram Syed [EMAIL PROTECTED] Mukarram, What does it say in the 2-3 lines above the shell path request? That's important information to help you get past it. Sometimes pressing control-D will skip you past it (after you press enter). Please advise, Ryan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]