Solved

Linux Setup question

Posted on 1997-09-24
3
216 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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
rsyslog raw message 4 38
Is Fedora an appropriate distro for the environment. 7 93
Unix Help with:  mailx -s 17 59
Enable SPF on IMSVA 6 24
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

726 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