Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# smartctl -a /dev/hda
smartctl version 5.1-7 Copyright (C) 2002 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: Maxtor 6Y080L0
Serial Number: Y2BJZQZC
Firmware Version: YAR41BW0
ATA Version is: 7
ATA Standard is: Unrecognized. Minor revision code: 0x1e
Local Time is: Tue May 21 09:32:17 2019 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
..
..
Self-test execution status: ( 118) The previous self-test completed having
the read element of the test failed.
so I need to replace it.
First of all, how can I be sure that server can boot with just /dev/hdc (LILO is used in this case)?
Should I first install LILO in /dev/hdc before? How?
Thank you!
I'd check for parts availability first. We're talking IDE disks here, right? It's a long time since that stuff was made.
2nd, I'd do a full backup before you do anything
Hi business_kid, yes, it is IDE.
I do have disk replacement.
My question was: how can I be sure that system will boot with hdc only?
I wondering if I can make a bootable floppy disk, just in case.
Thank you
My question was: how can I be sure that system will boot with hdc only?
I wondering if I can make a bootable floppy disk, just in case.
Whoa - haven't been able to do that in decades ...
The short answer is you can't be sure without actually booting. Even a dump of the MBR can only show if it has boot code (I presume lilo has an eyecatcher, I haven't used it since early this century), not if it will actually boot.
A boot medium (floppy, CD, whatever) will allow you to chroot into the system if it fails. Better to just update the lilo.conf and run the lilo command before you shutdown.
That's about the only way now to make a boot floppy. IIRC, it's kernel 2.0 or maybe 2.2, & busybox. It hasn't been updated in decades. It will see ext4 as ext2 :-/. You need an excellent floppy; it reformats it to 1.82MB, and writes. Best to do the minimum with disks, but if you run mke2fs on them in tomsrtbt, you can update to ext3/4 with tune2fs. The guy was fond of lua, and may have some compiler for that or a very early cc.
A boot floppy doesn't need to invoke a kernel ...
Some years ago I had a laptop that refused to boot after a normal (Ubuntu) update. The installed system was fine, but the BIOS wouldn't see the disk. The only way I was able to get it to boot was to create a grub legacy boot disk and interrupt the boot then point it to the on-disk system.
Serious PITA but worked. Until I got pissed off and tossed it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.