Solved

Linux Setup question

Posted on 1997-09-24
3
220 Views
Last Modified: 2013-12-15
I'm running a Debian GNU/Linux 1.2 System and the backup program, Amanda, has just informed me of errors on the root drive.  In the backup log this morning I got lots of errors like these:
DUMP: short read error from /dev/hda1: [sector -1]: count=512, got=0
DUMP: bread: lseek fails
DUMP: short read error from /dev/hda1: [block -2]: count=1024, got=0
DUMP: bread: lseek2 fails!

I really need to do an 'fsck' on the root drive to find out exactly what is wrong, but can't do this unless I'm in single-user read-only mode.

How do I boot the computer up in single-user read-only mode so I can do an fsck manually on the root drive?  What are the commands I need to type at the LILO prompt?
I'm using LILO (on a floppy at present) to boot the system.

Thanks,
Mike
mike@pixelfusion.com
0
Comment
Question by:mikehamer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Expert Comment

by:t2pp
ID: 1630002
Mike - boot Linux using the boot & root floppys. By doing this you are running Linux from a root file system loaded in memory. Login as root and then you can run fsck/e2fsck. Once fsck is complete, you can issuse a mount /dev/hda1 /mnt to see how successful you've been. Good luck.
0
 

Author Comment

by:mikehamer
ID: 1630003
Your reply:

> Boot Linux using the boot & root floppys. By doing this you are running Linux from a root file system loaded in memory. Login as root and then you can run fsck/e2fsck. Once fsck is complete, you can issuse a mount /dev/hda1 /mnt to see how successful you've been.

The floppy I've got in is just a boot disk (containing the kernel) which initiates the rest of the boot from the hard drive.

If I do as you suggest, and login as root, then it won't be single-user read-only mode, it will be normal multi-user read/write mode, and doing an fsck on the root drive will corrupt it.

What do I type in at the LILO prompt to boot in single-user read-only mode?

Mike
0
 
LVL 1

Accepted Solution

by:
t2pp earned 0 total points
ID: 1630004
Mike, The disk(s) must be a boot & root combination i.e. the kernel and a file system both on floppy. If you don't have such disks, then you will need to make them. Otherwise your boot diskette (or lilo diskette) will attempt to use the root file system on /dev/hda1. The lilo prompt is no good to you while you don't have an alternate root file system to start Linix.
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question