Solved

Linux Setup question

Posted on 1997-09-24
3
199 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

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…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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 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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now