LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-27-2006, 04:55 PM   #1
wired
LQ Newbie
 
Registered: Jan 2006
Location: Cape Town, South Africa
Distribution: Debian
Posts: 2

Rep: Reputation: 0
How do I enable remote access for single-user mode?


Hi all

I'm a relative Linux newb, but in my haze of newfound love for Debian I've bitten off a bit more than I can chew and I need some help!

I've installed a co-located Debian Sarge box at my local ISP, and I am using it to provide webhosting and email boxes.

I started off using two SATA RAID-1 hard drives, but this was inherently unstable with kernel 2.6, so I re-installed the entire system onto the primary drive (with 4 or so partitions.) The second drive is just for backups.

However, I've run into the situation a few times now (particularly when RAID-1 kept crashing and burning) where the box boots but then sits in single-user mode waiting for some kind of input - from the local console.

Obviously this doesn't help me at all, since I can only log in remotely via ssh. The only other command I have is a remote reboot via a console that my ISP provides, i.e. power on, power off.

I'm in the situation again where the box has rebooted but is completely cut off from the outside world, and tomorrow morning I'll have to get in my car and drive 20 km to my ISP.

What I'd like to know is how do I set up an environment where the box will ALWAYS boot up and provide remote terminal support? e.g. putting a completely stripped down Linux installation on a separate hard drive? Or maybe something as simple as forcing ssh to start in single user mode? Or telling the system to always bypass single-user mode and skip fsck?

I know a lot of you will be saying "No! You CAN'T skip a manual fsck!" But in my current situation it's my backup partition that died, and in the process hung the SATA controller. I had no option other than to remote reboot, hoping that in 45 seconds I'd have my system back. But I don't.

Anyway, just wondering if anyone else has had the same wish or if there are any clever solutions out there.

Thanks a mil,

Peter
 
Old 02-27-2006, 05:37 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Quote:
Originally Posted by wired
...how do I set up an environment where the box will ALWAYS boot up and provide remote terminal support?
You could try:
Code:
$ su
# cd /etc/rc1.d
# mv K20ssh k20ssh
# ln -s /etc/init.d/ssh S99ssh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
single user mode... navaladi Mandriva 2 12-26-2004 03:41 AM
Single user mode with Lilo mijohnst Linux - General 1 12-08-2004 03:08 PM
single user mode in GRUB isaac_linux Linux - General 1 04-03-2004 10:27 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 10:52 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 01:17 PM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration