Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux Setup question

Posted on 1997-09-24
3
Medium Priority
?
225 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

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). …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
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.
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

916 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