Re: I messed up bootmisc.sh - now can't log in!

2005-08-31 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED],
Bryan Donlan  [EMAIL PROTECTED] wrote:
On 8/30/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 Can anyone suggest a tutorial on writing what I think are called init 
 scripts?

Take a look at the files in /etc/init.d, just use one of them as a
template, and symlink it in as /etc/rcrunlevel.d/S99yourservice

Well, one of them .. there's /etc/init.d/skeleton which is
exactly what you'd think it would be...

Mike.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I messed up bootmisc.sh - now can't log in!

2005-08-30 Thread Bryan Donlan
On 8/29/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Can anyone recommend a good disk recovery company?
 
 Thanks in advance,
 
 Dave Williams

You don't need one for this. Which bootloader are you using, LILO or
GRUB? You can pass init=/bin/sh using it.

For grub, select the boot menu option, press 'e', select the line
beginning with kernel, press 'e', go to the end of the line and add
'init=/bin/sh'. Then press enter, then 'b'.

For LILO, hold shift until you get a lilo prompt. Then type linux init=/bin/sh.

Either way will get you a command prompt. Then:
mount -t proc proc /proc
mount -o remount,rw /
[edit, fix bootmisc.sh]
mount -o remount,ro /
umount /proc
exec /sbin/init



Re: I messed up bootmisc.sh - now can't log in!

2005-08-30 Thread dwilliams1066
This did it!!!  I had misunderstood the last lines of this post.  (I stupidly 
missed the in either case.  

Im back in business.

Thank you Bryan!  Thank you all!

A VERY grateful Dave Williams.






Bryan Donlan [EMAIL PROTECTED] wrote:

On 8/29/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Can anyone recommend a good disk recovery company?

 Thanks in advance,

 Dave Williams

You don't need one for this. Which bootloader are you using, LILO or
GRUB? You can pass init=/bin/sh using it.

For grub, select the boot menu option, press 'e', select the line
beginning with kernel, press 'e', go to the end of the line and add
'init=/bin/sh'. Then press enter, then 'b'.

For LILO, hold shift until you get a lilo prompt. Then type linux init=/bin/sh.

Either way will get you a command prompt. Then:
mount -t proc proc /proc
mount -o remount,rw /
[edit, fix bootmisc.sh]
mount -o remount,ro /
umount /proc
exec /sbin/init


__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I messed up bootmisc.sh - now can't log in!

2005-08-30 Thread Bryan Donlan
On 8/30/05, David W. Williams [EMAIL PROTECTED] wrote:
 I should have mentioned, I'm the:
 
 
   Re: I messed up bootmisc.sh - now can't log in! guy
 
 from debian-user
 
 I just tried this with vi, and when I went to save, got this message:
 
E45:  'readonly' option is set (add ! to override)
 
 Is it possible to get vi to override the read-only of the file system so
 that I can remove the two offending lines of code from bootmisc.sh?
 
 Thank you very much for any help you can give.
 

Did you
mount -o remount,rw /
?

PS, please keep the list CC'd, for people who have the same trouble in
the future



Re: I messed up bootmisc.sh - now can't log in!

2005-08-30 Thread dwilliams1066
Bryan Donlan [EMAIL PROTECTED] wrote:

On 8/30/05, David W. Williams [EMAIL PROTECTED] wrote:
 I should have mentioned, I'm the:


   Re: I messed up bootmisc.sh - now can't log in! guy

 from debian-user

 I just tried this with vi, and when I went to save, got this message:

    E45:  'readonly' option is set (add ! to override)

 Is it possible to get vi to override the read-only of the file system so
 that I can remove the two offending lines of code from bootmisc.sh?

 Thank you very much for any help you can give.


Did you
mount -o remount,rw /
?

PS, please keep the list CC'd, for people who have the same trouble in
the future


Yes I did.  That's what did the trick on the not being able to write to the 
file system!

Can anyone suggest a tutorial on writing what I think are called init scripts?

Thanks!

Dave Williams


__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I messed up bootmisc.sh - now can't log in!

2005-08-30 Thread Bryan Donlan
On 8/30/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Bryan Donlan [EMAIL PROTECTED] wrote:
 
 On 8/30/05, David W. Williams [EMAIL PROTECTED] wrote:
  I should have mentioned, I'm the:
 
 
  Re: I messed up bootmisc.sh - now can't log in! guy
 
  from debian-user
 
  I just tried this with vi, and when I went to save, got this message:
 
  E45: 'readonly' option is set (add ! to override)
 
  Is it possible to get vi to override the read-only of the file system so
  that I can remove the two offending lines of code from bootmisc.sh?
 
  Thank you very much for any help you can give.
 
 
 Did you
 mount -o remount,rw /
 ?
 
 PS, please keep the list CC'd, for people who have the same trouble in
 the future
 
 
 Yes I did.  That's what did the trick on the not being able to write to the 
 file system!
 
 Can anyone suggest a tutorial on writing what I think are called init scripts?
 
 Thanks!

Take a look at the files in /etc/init.d, just use one of them as a
template, and symlink it in as /etc/rcrunlevel.d/S99yourservice



Re: I messed up bootmisc.sh - now can't log in!

2005-08-29 Thread dwilliams1066
[EMAIL PROTECTED] wrote:

Michael Spang [EMAIL PROTECTED] wrote:

[EMAIL PROTECTED] wrote:

Michael Spang [EMAIL PROTECTED] wrote:



Alan Ianson wrote:



On Sat August 27 2005 06:38 pm, [EMAIL PROTECTED] wrote:




Alan Ianson [EMAIL PROTECTED] wrote:




On Sat August 27 2005 05:28 pm, [EMAIL PROTECTED] wrote:




I've tried booting off a cd-rom and mounting the disk, but I can't get
the disk to mount for some reason.  I'm willing to try pretty much
anything at this point.




My default grub menu list has a recovery option. If that option isn't
there for some reason edit your grub boot command line and try adding
single to the end. I've never tried it manually before but I have used
the recovery mode a few times and I think that's the only difference.




Ah, but there's the problem.  I can't log in to edit anything.  Is there
a way to make a menu come up?  (Am I missing something, besides a system
prompt of course  ;-)




At the grub menu, before the kernel boots. Hit a key to stop the default 
from
booting and I believe if you press e you can edit the boot command. Just
add single to the end and then boot that way. That will boot in recovery
mode I think. I hope mysql isn't loading in that mode ;). If that doesn't
work you may need to boot with a knopix or ubuntu disk and edit whatever
needs editing that way.






Ha. If its running from the startup runlevel then you could always add
init=/bin/bash to your command line. But why would you have MySQL in
/etc/rcS.d/? Also, you don't need to type out 'single', just S will work
fine.

HTH,
Michael Spang


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





It is running from the startup run level, but how do I add
init=/bin/bash if I can't get a system prompt from the system?

To take another angle on this, I have booted the system under Knoppix, but
when I try to mount the disk, it says /dev/sda1 NOT A BLOCK DEVICE.
Is there any way to get the system to cough up what it thinks the device
name of the disk is?

Dave Williams



__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp




Are you using LILO or GRUB? As another post said, with GRUB you will
have a menu on boot with a list of options, pressing 'e' on the desired
option will allow you to add to the command line. With LILO you have to
press something else. If all else fails you can use Knoppix to remove
the offending startup script.

HTH,
Michael Spang


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



I've tried to use Knoppix to boot the machine, which it did, but I couldn't 
mount the disk, which is /dev/sda1.  Would the fact that the logical disk is 
/dev/sda1, while it's actually a RAID (just mirroring) array possibly make a 
difference?

Dave Williams

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Can anyone recommend a good disk recovery company?

Thanks in advance,

Dave Williams


__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I messed up bootmisc.sh - now can't log in!

2005-08-28 Thread Michael Spang

Alan Ianson wrote:


On Sat August 27 2005 06:38 pm, [EMAIL PROTECTED] wrote:
 


Alan Ianson [EMAIL PROTECTED] wrote:
   


On Sat August 27 2005 05:28 pm, [EMAIL PROTECTED] wrote:
 


I've tried booting off a cd-rom and mounting the disk, but I can't get
the disk to mount for some reason.  I'm willing to try pretty much
anything at this point.
   


My default grub menu list has a recovery option. If that option isn't
there for some reason edit your grub boot command line and try adding
single to the end. I've never tried it manually before but I have used
the recovery mode a few times and I think that's the only difference.
 


Ah, but there's the problem.  I can't log in to edit anything.  Is there
a way to make a menu come up?  (Am I missing something, besides a system
prompt of course  ;-)
   



At the grub menu, before the kernel boots. Hit a key to stop the default from 
booting and I believe if you press e you can edit the boot command. Just 
add single to the end and then boot that way. That will boot in recovery 
mode I think. I hope mysql isn't loading in that mode ;). If that doesn't 
work you may need to boot with a knopix or ubuntu disk and edit whatever 
needs editing that way.



 

Ha. If its running from the startup runlevel then you could always add 
init=/bin/bash to your command line. But why would you have MySQL in 
/etc/rcS.d/? Also, you don't need to type out 'single', just S will work 
fine.


HTH,
Michael Spang


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: I messed up bootmisc.sh - now can't log in!

2005-08-28 Thread dwilliams1066
Michael Spang [EMAIL PROTECTED] wrote:

Alan Ianson wrote:

On Sat August 27 2005 06:38 pm, [EMAIL PROTECTED] wrote:
  

Alan Ianson [EMAIL PROTECTED] wrote:
    

On Sat August 27 2005 05:28 pm, [EMAIL PROTECTED] wrote:
      

I've tried booting off a cd-rom and mounting the disk, but I can't get
the disk to mount for some reason.  I'm willing to try pretty much
anything at this point.
        

My default grub menu list has a recovery option. If that option isn't
there for some reason edit your grub boot command line and try adding
single to the end. I've never tried it manually before but I have used
the recovery mode a few times and I think that's the only difference.
      

Ah, but there's the problem.  I can't log in to edit anything.  Is there
a way to make a menu come up?  (Am I missing something, besides a system
prompt of course  ;-)
    


At the grub menu, before the kernel boots. Hit a key to stop the default from 
booting and I believe if you press e you can edit the boot command. Just 
add single to the end and then boot that way. That will boot in recovery 
mode I think. I hope mysql isn't loading in that mode ;). If that doesn't 
work you may need to boot with a knopix or ubuntu disk and edit whatever 
needs editing that way.


  

Ha. If its running from the startup runlevel then you could always add 
init=/bin/bash to your command line. But why would you have MySQL in 
/etc/rcS.d/? Also, you don't need to type out 'single', just S will work 
fine.

HTH,
Michael Spang


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



It is running from the startup run level, but how do I add 
init=/bin/bash if I can't get a system prompt from the system?

To take another angle on this, I have booted the system under Knoppix, but
when I try to mount the disk, it says /dev/sda1 NOT A BLOCK DEVICE.
Is there any way to get the system to cough up what it thinks the device 
name of the disk is?

Dave Williams



__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I messed up bootmisc.sh - now can't log in!

2005-08-28 Thread Michael Spang

[EMAIL PROTECTED] wrote:


Michael Spang [EMAIL PROTECTED] wrote:

 


Alan Ianson wrote:

   


On Sat August 27 2005 06:38 pm, [EMAIL PROTECTED] wrote:


 


Alan Ianson [EMAIL PROTECTED] wrote:
  

   


On Sat August 27 2005 05:28 pm, [EMAIL PROTECTED] wrote:


 


I've tried booting off a cd-rom and mounting the disk, but I can't get
the disk to mount for some reason.  I'm willing to try pretty much
anything at this point.
  

   


My default grub menu list has a recovery option. If that option isn't
there for some reason edit your grub boot command line and try adding
single to the end. I've never tried it manually before but I have used
the recovery mode a few times and I think that's the only difference.


 


Ah, but there's the problem.  I can't log in to edit anything.  Is there
a way to make a menu come up?  (Am I missing something, besides a system
prompt of course  ;-)
  

   

At the grub menu, before the kernel boots. Hit a key to stop the default from 
booting and I believe if you press e you can edit the boot command. Just 
add single to the end and then boot that way. That will boot in recovery 
mode I think. I hope mysql isn't loading in that mode ;). If that doesn't 
work you may need to boot with a knopix or ubuntu disk and edit whatever 
needs editing that way.





 

Ha. If its running from the startup runlevel then you could always add 
init=/bin/bash to your command line. But why would you have MySQL in 
/etc/rcS.d/? Also, you don't need to type out 'single', just S will work 
fine.


HTH,
Michael Spang


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



   



It is running from the startup run level, but how do I add 
init=/bin/bash if I can't get a system prompt from the system?


To take another angle on this, I have booted the system under Knoppix, but
when I try to mount the disk, it says /dev/sda1 NOT A BLOCK DEVICE.
Is there any way to get the system to cough up what it thinks the device 
name of the disk is?


Dave Williams



__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


 

Are you using LILO or GRUB? As another post said, with GRUB you will 
have a menu on boot with a list of options, pressing 'e' on the desired 
option will allow you to add to the command line. With LILO you have to  
press something else. If all else fails you can use Knoppix to remove 
the offending startup script.


HTH,
Michael Spang


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: I messed up bootmisc.sh - now can't log in!

2005-08-28 Thread dwilliams1066
Michael Spang [EMAIL PROTECTED] wrote:

[EMAIL PROTECTED] wrote:

Michael Spang [EMAIL PROTECTED] wrote:

  

Alan Ianson wrote:



On Sat August 27 2005 06:38 pm, [EMAIL PROTECTED] wrote:
 

  

Alan Ianson [EMAIL PROTECTED] wrote:
   



On Sat August 27 2005 05:28 pm, [EMAIL PROTECTED] wrote:
 

  

I've tried booting off a cd-rom and mounting the disk, but I can't get
the disk to mount for some reason.  I'm willing to try pretty much
anything at this point.
   



My default grub menu list has a recovery option. If that option isn't
there for some reason edit your grub boot command line and try adding
single to the end. I've never tried it manually before but I have used
the recovery mode a few times and I think that's the only difference.
 

  

Ah, but there's the problem.  I can't log in to edit anything.  Is there
a way to make a menu come up?  (Am I missing something, besides a system
prompt of course  ;-)
   



At the grub menu, before the kernel boots. Hit a key to stop the default 
from 
booting and I believe if you press e you can edit the boot command. Just 
add single to the end and then boot that way. That will boot in recovery 
mode I think. I hope mysql isn't loading in that mode ;). If that doesn't 
work you may need to boot with a knopix or ubuntu disk and edit whatever 
needs editing that way.


 

  

Ha. If its running from the startup runlevel then you could always add 
init=/bin/bash to your command line. But why would you have MySQL in 
/etc/rcS.d/? Also, you don't need to type out 'single', just S will work 
fine.

HTH,
Michael Spang


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





It is running from the startup run level, but how do I add 
init=/bin/bash if I can't get a system prompt from the system?

To take another angle on this, I have booted the system under Knoppix, but
when I try to mount the disk, it says /dev/sda1 NOT A BLOCK DEVICE.
Is there any way to get the system to cough up what it thinks the device 
name of the disk is?

Dave Williams



__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


  

Are you using LILO or GRUB? As another post said, with GRUB you will 
have a menu on boot with a list of options, pressing 'e' on the desired 
option will allow you to add to the command line. With LILO you have to  
press something else. If all else fails you can use Knoppix to remove 
the offending startup script.

HTH,
Michael Spang


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



I've tried to use Knoppix to boot the machine, which it did, but I couldn't 
mount the disk, which is /dev/sda1.  Would the fact that the logical disk is 
/dev/sda1, while it's actually a RAID (just mirroring) array possibly make a 
difference?

Dave Williams

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I messed up bootmisc.sh - now can't log in!

2005-08-27 Thread Alan Ianson
On Sat August 27 2005 05:28 pm, [EMAIL PROTECTED] wrote:

 I've tried booting off a cd-rom and mounting the disk, but I can't get the
 disk to mount for some reason.  I'm willing to try pretty much anything at
 this point.

My default grub menu list has a recovery option. If that option isn't there 
for some reason edit your grub boot command line and try adding single to 
the end. I've never tried it manually before but I have used the recovery 
mode a few times and I think that's the only difference.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I messed up bootmisc.sh - now can't log in!

2005-08-27 Thread dwilliams1066
Alan Ianson [EMAIL PROTECTED] wrote:

On Sat August 27 2005 05:28 pm, [EMAIL PROTECTED] wrote:

 I've tried booting off a cd-rom and mounting the disk, but I can't get the
 disk to mount for some reason.  I'm willing to try pretty much anything at
 this point.

My default grub menu list has a recovery option. If that option isn't there 
for some reason edit your grub boot command line and try adding single to 
the end. I've never tried it manually before but I have used the recovery 
mode a few times and I think that's the only difference.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Ah, but there's the problem.  I can't log in to edit anything.  Is there
a way to make a menu come up?  (Am I missing something, besides a system prompt 
of course  ;-)

Dave



__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I messed up bootmisc.sh - now can't log in!

2005-08-27 Thread Alan Ianson
On Sat August 27 2005 06:38 pm, [EMAIL PROTECTED] wrote:
 Alan Ianson [EMAIL PROTECTED] wrote:
 On Sat August 27 2005 05:28 pm, [EMAIL PROTECTED] wrote:
  I've tried booting off a cd-rom and mounting the disk, but I can't get
  the disk to mount for some reason.  I'm willing to try pretty much
  anything at this point.
 
 My default grub menu list has a recovery option. If that option isn't
  there for some reason edit your grub boot command line and try adding
  single to the end. I've never tried it manually before but I have used
  the recovery mode a few times and I think that's the only difference.

 Ah, but there's the problem.  I can't log in to edit anything.  Is there
 a way to make a menu come up?  (Am I missing something, besides a system
 prompt of course  ;-)

At the grub menu, before the kernel boots. Hit a key to stop the default from 
booting and I believe if you press e you can edit the boot command. Just 
add single to the end and then boot that way. That will boot in recovery 
mode I think. I hope mysql isn't loading in that mode ;). If that doesn't 
work you may need to boot with a knopix or ubuntu disk and edit whatever 
needs editing that way.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]