* Re: Booting from CD
1999-11-20 5:00 Booting from CD Al Losada
@ 1999-11-20 5:00 ` Adam Price
1999-11-21 5:00 ` Jesper Frank Nemholt
1 sibling, 0 replies; 3+ messages in thread
From: Adam Price @ 1999-11-20 5:00 UTC (permalink / raw)
Al Losada wrote in message <38369AAE.76440E5A@webactivities.com>...
>Very new to DEC. I have an Alpha 255 and cannot login. Root or any other
>login does not work. I figure that I need to boot off the CD to break
>security but need some help doing so. Any ideas?
>
>Al
>
Start with a cold machine (Power off)
The machine may be in one of two states, it may be set
to auto boot or not. Assume it is set to autoboot since
that set of instructions will work for both cases.
Turn on the power and watch the console.
When the numbers start to display across the top of
the screen start to press then release ^C
Repeat the press/Release of ^C until you have a >>> prompt.
type
set auto_action halt
This will avoid the need to repeat the above rigmarole, but will also
require you to manually boot the machine each time you have a power
failure/shutdown etc.
To get back to the auto boot state type
set auto_action boot
The next step is to find out which device is your cd-rom device.
at the >>> prompt type
show dev
this should generate a list of scsi devices, one of which should have
a name which indicates that it is a cd-rom device, indicators are
for example cdrom in the device type, RRD45 in the device type, read-only
in the device type, any or all of these mat be present, depending on the
cd-rom drive installed. Another sometimes simpler way of doing this
is to look at the jumper settings on the cd-rom drive, but this depends on
your having documentation for the drive. A last resort, never fail method is
to disconnect all of the other scsi devices(power off first), then use show dev
to identify the cd-rom drive (it will be the only dk* device).
At this point you should now know the device name of your cd-rom drive, an
example (which may be correct) is DKA400
to boot from this device, insert an installation cd, and type
boot dka400
when the installation program starts, one of the options will be
something like exit to unix shell, this will get you where you
think you want to be.
However....
to change the root password in Digital unix, single user mode is enough,
so when you get to the >>> prompt in the above list of instructions,
if you type
boot -flags s
this will boot from the default boot device and kernel (which should have
your OS on it) but pass the flag s to the kernel instead of the contents
of the boot_os_flags console variable. This will cause the unix kernel
to boot to single user mode, instead of the run-level specified as
initdefault in /etc/inittab.
When the machine has booted to single user mode, the command /sbin/bcheckrc
will fsck(if needed) and then mount all local filesystems, then use passwd
to change roots password as usual.
Hope this helps
Adam
PS, this is done from memory, so if anyone with access to a machine wants to
post corrections, feel free.
--
Please don't send me email.
If you must, then use the address as given, there is no spam-block.
Please think before you post, and read the FAQ before you think
about posting.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Booting from CD
1999-11-20 5:00 Booting from CD Al Losada
1999-11-20 5:00 ` Adam Price
@ 1999-11-21 5:00 ` Jesper Frank Nemholt
1 sibling, 0 replies; 3+ messages in thread
From: Jesper Frank Nemholt @ 1999-11-21 5:00 UTC (permalink / raw)
Al Losada wrote:
>
> Very new to DEC. I have an Alpha 255 and cannot login. Root or any other
> login does not work. I figure that I need to boot off the CD to break
> security but need some help doing so. Any ideas?
Well, you have to get it to halt at first, ie. turn off the power and
pray that nothing in the filesystem gets damaged.
Then boot it again and press <Ctrl> + <c> (or <Ctrl + <p>). This will
prevent it from booting and leave you at the boot-prompt.
See if auto_action is set to boot. If it is then set it to halt (set
auto_action halt) so the machine won't boot by itself when you turn on
power. When everything works again you can set it back (set auto_action
boot).
If you halted the boot too early, you might need to do a init (init), or
you can just turn off the power and turn it on again. Then the machine
should stop by itself at the boot-prompt.
Now boot it in single-user (boot -fl s). After a while you'll get your
prompt. Then you have to mount the filesystems in read/write mode (the
only present is the root filesystem, and it's in read only mode).
You can either just remount the root file system (mount -u -w /), or
mount'em all (bcheckrc). The last thing will also give you access to vi
and other nice tools.
Then do a passwd to thange the root password.
If it asks for the old password, you're running C2, and you need to do
more stuff to change the password.
When done do a shutdown -r now, and when it's up again... test it.
l8r/Jspr
^ permalink raw reply [flat|nested] 3+ messages in thread