T.R | Title | User | Personal Name | Date | Lines |
---|
604.1 | Questions | NEWVAX::PAVLICEK | Linux: the Truly Open O/S | Mon May 26 1997 05:20 | 12 |
| A few random thoughts...
What version of Linux is the floppy that you're booting from? Is it
1.3.98 or something else?
Now that you've gotten the error from LILO, can you still boot from the
floppy as you did originally?
Instead of running LILO, can you create a floppy image or the new
kernel, copy it to a new diskette, and try to boot it?
-- Russ
|
604.2 | SCSI geometries | MOVIES::TWEEDIE | | Tue May 27 1997 12:27 | 39 |
| re .0:
It's almost certainly a problem with your drive geometries. From your
partition table listing, we can see
Disk /dev/sda: 64 heads, 32 sectors, 1001 cylinders
Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 63 32 508 32 1042400 06
2 80 0 1 509 32 61 997 1024617 984357 83
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(509, 0, 1) logical=(500, 19, 10)
Partition 2 has different physical/logical endings:
phys=(997, 32, 61) logical=(980, 60, 14)
The physical end of partition two is at head 32, sector 61, indicating
that the disk was originally formatted with 33 heads and 61 sectors per
cylinder (heads are counted from zero, sectors from one). 33*61 equals
2013 sectors per cylinder, and 509*2013 = 1024617, the correct start of
partition two. So, the partition looks perfectly all right if only you
assume the different geometry.
So you should be just fine as long as you don't trip up on the geometry.
For fdisk, that involves going into the (x) expert menu and using the
(h) change number of heads and (s) change number of sectors commands. This
won't touch anything on the disk---it just tells fdisk that you really know
what the geometry should be. (On SCSI disks, geometry is just an illusion
anyway.) For LILO, you should be fine as long as you have the keyword
"linear" in the global part of the config file. "linear" tells LILO to use
the absolute sector number to lookup all disk blocks, rather than the usual
cylinder/head/sector physical address. Linear addressing sidesteps the issue
of geometry altogether.
If you ever want to completely repartition the disk, you can do so in fdisk
without resetting the geometry and it will default to the geometry being
presented by your newer SCSI controller card. Until then, just override or
avoid the geometry and things should be fine.
Cheers,
Stephen.
|
604.3 | | DECWET::LOWE | Bruce Lowe, DECwest Eng., DTN 548-8910 | Tue May 27 1997 23:37 | 27 |
|
.1:
> What version of Linux is the floppy that you're booting from? Is it
> 1.3.98 or something else?
On boot it says 2.0.0.
> Now that you've gotten the error from LILO, can you still boot from the
> floppy as you did originally?
Yes. I just tell it "mount root=/dev/sda2".
> Instead of running LILO, can you create a floppy image or the new
> kernel, copy it to a new diskette, and try to boot it?
Haven't tried that - how do you do that - since I'm not in DOS, rawrite
isn't available - would I just copy /vmlinuz to /dev/fd<x>?
.2:
Thanks for the reply. I tried using fdisk "X" mode to set my #heads = 33 and
my #sectors = 61, and I added "linear" to the lilo.conf file. When I try to
rerun LILO, it still tells me:
Device 0x08000: Invalid partition entry, 2nd entry
3D address: 1/0/509 (1042432)
Linear address: 10/19/500 (1024617)
|
604.4 | | NEWVAX::PAVLICEK | http://www.boardwatch.com/borgtee2.jpg | Wed May 28 1997 01:57 | 17 |
| re: .3
If you built the kernel, you should have a file called zImage somewhere
in the build tree. On Red Hat 3.0.3, it is located in
/usr/src/linux/arch/i386/boot .
Format a new floppy using the command:
fdformat /dev/fd0H1440
Copy zImage to the formatted floppy with the command:
cp zImage /dev/fd0
or
dd if=zImage of=/dev/fd0
-- Russ
|
604.5 | Fixing up LILO geometry | MOVIES::TWEEDIE | | Wed May 28 1997 12:02 | 18 |
| re .3:
If "linear" in LILO is still confused about the geometry, then you'll have
to dive in and tell LILO explicitly what the partition table's geometry
really is. Use a section like:
disk=/dev/sda
heads=33
sectors=61
in lilo.conf and things should work better.
This geometry confusion is a common problem when changing your disks from
one controller to another. Often the easiest way out is just to repartition
and restore the data to the new configuration.
Cheers,
Stephen.
|
604.6 | | DECWET::LOWE | Bruce Lowe, DECwest Eng., DTN 548-8910 | Wed May 28 1997 21:41 | 40 |
|
re: .4
Russ,
Interesting - the "fdformat /dev/fd0H1440" works fine, but both the "cp" and
"dd" operations hang - rge "dd" reports "771 + 1" records in, and out, but in
either case, the system then goes into a hard-disk banging mode, with
occasional floppy access clicks, and it seems infinite. I stopped it, and
tried booting the "dd" disk, and it appeared to load, but on "Uncompressing",
it gave up immediately with a "ran out of input data".
re: .5
Stephen,
Putting in the:
disk=/dev/sda2
heads=33
sectors=61
allowed lilo to go thru installation - it reported installing the three boot
options I specified, but on attempting a boot from teh hard disk, it still
tells me "missing operating system". Yes, the Linux partition is set active.
Lilo is installed in the partition header, NOT the MBR (every time I have
put in in the MBR, I have regretted it later).
> Often the easiest way out is just to repartition and restore the data to
> the new configuration.
This is looking more and more attractive. Can I just save the entire partition,
as in "dd if=/dev/sda2 of=/dosc/saveit.dump"?
- I usually prefer tar, but will that work on an entire bootable partition?
Tar can be a problem, if the msdos partitions are mounted, especially if I
am sending the tar file to that partition, recursive backup etc. Does dd
have that problem?
- Would I then use fdisk (under Linux) to delete the Linux partitions, then
recreate them? Format them? Then use dd to restore? Can I do all this
without shutting down/rebooting? Once the partition is nuked and recreated
and/or initialized, how would I get at the saved file? Use tape instead?
|
604.7 | Hmmm... | NEWVAX::PAVLICEK | Stop rebooting! Use Linux | Wed May 28 1997 22:56 | 45 |
| re: .6
Dang, Bruce, make it hard for us why don'cha? 8^}
You said 'dd' finished normally, but you cut off 'cp' because it was slow,
yes? Is your floppy on the SCSI controller? I ask this because I know
of at least one tape drive (under DOS) that crawls like a worm when
connected to a floppy chain hosted by certain SCSI cards. This could be
similar (I am conjecturing) -- if the SCSI driver for your card is not
efficient at handling I/O between the hard drive and the floppy chain.
Do you have access to another DOS PC? If so, maybe try this:
o Format a floppy under DOS
o Mount it on /dev/fd0. Something like:
mount -t msdos /dev/fd0 /mnt/floppy
or wherever your mount point is for the device.
o Try to copy zImage to the formatted DOS diskette, like:
cp zImage /mnt/floppy
o Dismount the floppy, like:
umount /mnt/floppy
o Carry it to the DOS machine, copy it to the hard drive, and
cut a new floppy using RAWRITE.
o Carry it back to the target machine and see if it boots.
Another way to handle it:
o If you have dial out capabilities from the Linux box, try
kermitting (or whatever) the zImage file to an OpenVMS or
Unix box, dial in from a DOS box, grab the zImage file,
and use RAWRITE as above.
BTW, are you sure that your CMOS has the floppy set for 1.44M? You
could get funny results if it isn't set correctly.
-- Russ
|
604.8 | | DECWET::LOWE | Bruce Lowe, DECwest Eng., DTN 548-8910 | Thu May 29 1997 01:23 | 17 |
|
-1
Russ,
> You said 'dd' finished normally, but you cut off 'cp' because it was slow,
> yes? Is your floppy on the SCSI controller? I ask this because I know
No, the "dd" reported records in/out, but hung there after that.
The floppy is not a SCSI converted unit - it is connected via a floppy
controller cable, like any other.
This is a LP 466dx2 box, btw.
Unless there is a way to live with this funky partition table, reinitializing
is looking more likely.
|
604.9 | | MOVIES::TWEEDIE | | Thu May 29 1997 14:57 | 26 |
| re .6:
Hmm. Does even DOS boot from the MBR? If you're getting persistant
"missing operating system" messages then LILO is not even getting a chance
to start running.
By the way, it should have been "disk=/dev/sda", not "disk=/dev/sda2". I'm
not sure whether LILO will cope properly with the latter: what you want to do
by this command is to tell LILO the geometry of the entire disk, not just the
one partition. Using /dev/sda here shouldn't be enough to let LILO stomp on
your MBR.
Is the LILO partition the _only_ active one? Some boot loaders don't do the
Right Thing if there are multiple active partitions.
If you do want to save the entire partition, then dump/restore is probably the
best bet. I'd advise against just copying the entire partition raw, since
after repartitioning the filesystem is likely to be slightly smaller or
larger than before. Definitely use tape if you can: doing major surgery on
disks is always safer with a good backup at hand. :)
However, I'd actually recommend just putting LILO on the MBR. I've never had
any trouble with it there, and it's easy to remove later.
Cheers,
Stephen.
|
604.10 | | NEWVAX::PAVLICEK | Linux: the PC O/S that isn't PC | Thu May 29 1997 15:24 | 25 |
| re: .8
I wasn't clear -- sorry.
I've seen the ultra-slow problem under DOS with a floppy controller
that resides on a SCSI card. In other words, which card handles the
floppy controller function: the SCSI card (which would have a SCSI
chain connector and a separate floppy chain connector) or some other
card?
My thinking is that perhaps the kernel you're using is the issue here.
That's why I was trying to get you to the point of booting from your
newly-built kernel instead of the generic one.
When I installed my IDE CD on my system (had a SoundBlaster CD before
that), I was getting pig-slow response from it. Turns out I was using
an old kernel (1.1.x) with a very early version of the IDE CD driver.
I built a new kernel and the CD problem disappeared. The newer driver
was gobs better than its predecessor. I'm wondering if getting you to
a proper kernel might not clean things up.
That's why I've putting my efforts into getting you a new boot floppy,
to see if you can address your disk with the new kernel.
-- Russ
|
604.11 | | DECWET::LOWE | Bruce Lowe, DECwest Eng., DTN 548-8910 | Thu May 29 1997 20:13 | 9 |
| <---
> By the way, it should have been "disk=/dev/sda", not "disk=/dev/sda2". I'm
Yes, /dev/sda is what I put in the lilo.conf, I just mistyped it in the
note.
Thanks all for the help, but it looks like its time to reinstall. Since I can
get in with a boot floppy, I have been able to tar my user files (and selected
system files) off on the other partition.
|