Solved

Linux Setup question

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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