Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 08:39 AM
Chris F Clark
 
Posts: n/a
Default not-quite bootable isolinux (centos) cd

I'm trying to upgrade a rh 9 system to centos 4.1.

I burned the part 1 iso image onto a cd using cdrecord.

Given my experience upgrading rh installations, I next tried booting
from the cd. It fails with the message(s):

ISOLINUX 2.11 2004-08-16 Copyright(C) 1994-2004 H. Peter Anvin
isolinux: Disk error 80, AX=42CC, drive 9F

Boot failed: press any key to retry.

I have tried booting the cd on a couple of systems and it does the
same. Moreover, I know that bootable cd's work on the system (laptop)
in question, as that's how I put rh 9 on the system in the first
place.

However, I've looked at the cd (under windows) and there are
directories on the cd, not just an iso file. So, I don't think I
wrote the cd wrong.

Am I correct in assuming that perhaps there was a write error on the
cd and the boot image was corrupted?

Is it likely that the cd contains a useful copy of the installation if
I can just get it booted? (Or is the cd just a coaster and should I
write another one?)

Is it possible to boot the cd from the linux boot I already have
installed? The target system is a laptop and I have a choice of a
floppy or a cd, but not both at the same time.

Thanks in advance,
-Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 08:39 AM
Lenard
 
Posts: n/a
Default Re: not-quite bootable isolinux (centos) cd

Chris F Clark wrote:

> I'm trying to upgrade a rh 9 system to centos 4.1.


Good for you, but it would be much better to save everything and do a
clean install. Going from a 2.4 kernel to a 2.6 kernel using the update
meathod is not a good idea. Major changes from RHL9 to CentOS4.1 also
apply, lots of things have changed.

> I burned the part 1 iso image onto a cd using cdrecord.


How???? You did not show the cdrecord command you used....

> However, I've looked at the cd (under windows) and there are
> directories on the cd, not just an iso file. So, I don't think I
> wrote the cd wrong.


You may have, it might have been your cdrecord command or a problem with
the media or burner or ????? Whatever the reason you have a bad CD.


> Is it likely that the cd contains a useful copy of the installation if
> I can just get it booted? (Or is the cd just a coaster and should I
> write another one?)


Yes, it is a good idea to write another one. As a suggestion write the
new CD at the slowest speed possible, yes I know this takes a long time
but the quality will improve.


--
Contained within the Microsoft EULA;
This Limited Warranty is void if failure of the Product has resulted
from accident, abuse, misapplication, abnormal use or a virus.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 08:40 AM
Chris F Clark
 
Posts: n/a
Default Re: not-quite bootable isolinux (centos) cd

Let me repeat this one question I asked before:

> Is it possible to boot the cd from the linux boot I already have
> installed? The target system is a laptop and I have a choice of a
> floppy or a cd, but not both at the same time.


Actually, what I'm really curious about is that I have the .iso files
on the hard disk of the system in question. Is there a way to
use/convert those .iso files into something that I could use (without
writing them to a cd) to upgrade the system? I have very little
interest in having a cd to do the upgrade. It's a waste of a cd to
me. While that's not a big waste, it is a finite non-renewable
resource. When I've used up my cd's, I have to go to Staples to buy
more or order ones from a website and wait, etc.

I recall reading something previously that suggested that one could
put the images (on a server or on a disk) and upgrade from there.
However, I can't find the pointer to that information now and could
use some help in getting pointed the right way.

(Alternately, if there is something different I should download onto
the disk to upgrade directly from the disk, I can do that to.)

Thanks,
-Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 08:40 AM
Enrique Perez-Terron
 
Posts: n/a
Default Re: not-quite bootable isolinux (centos) cd

On Sun, 02 Oct 2005 20:03:08 +0200, Chris F Clark <cfc@shell01.TheWorld.com> wrote:

> I'm trying to upgrade a rh 9 system to centos 4.1.
>
> I burned the part 1 iso image onto a cd using cdrecord.
>
> Given my experience upgrading rh installations, I next tried booting
> from the cd. It fails with the message(s):
>
> ISOLINUX 2.11 2004-08-16 Copyright(C) 1994-2004 H. Peter Anvin
> isolinux: Disk error 80, AX=42CC, drive 9F
>
> Boot failed: press any key to retry.
>
> I have tried booting the cd on a couple of systems and it does the
> same. Moreover, I know that bootable cd's work on the system (laptop)
> in question, as that's how I put rh 9 on the system in the first
> place.
>
> However, I've looked at the cd (under windows) and there are
> directories on the cd, not just an iso file. So, I don't think I
> wrote the cd wrong.
>
> Am I correct in assuming that perhaps there was a write error on the
> cd and the boot image was corrupted?


Did you bur the CD yourself? Do you have the iso image on disk somewhere?

From the linux you already have,

n=$(( (the size of iso in bytes)/2048 - 50 ))

dd if=/dev/cdrom bs=2048 count=$n | cmp isoimage -

If you get "EOF on stdin" the CD is likely OK.
Notice that it does not work to compare the last part of the
iso this way because of a bug in the linux kernel. This bug
does not affect the operation of the cd as a mounted file system.

If you want to burn cd's that are possible to verify with dd,
you need to pad the iso image on the cd when you burn it.

My guess is that the CD is corrupted.

-Enrique
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 08:40 AM
Enrique Perez-Terron
 
Posts: n/a
Default Re: not-quite bootable isolinux (centos) cd

On Tue, 04 Oct 2005 18:03:37 +0200, Chris F Clark <cfc@shell01.TheWorld.com> wrote:

> Let me repeat this one question I asked before:
>
>> Is it possible to boot the cd from the linux boot I already have
>> installed? The target system is a laptop and I have a choice of a
>> floppy or a cd, but not both at the same time.

>
> Actually, what I'm really curious about is that I have the .iso files
> on the hard disk of the system in question. Is there a way to
> use/convert those .iso files into something that I could use (without


I can only provide a tiny bit of information that may or may not become
part of a solution if other bits are found.

Consider the stack of software layers in ordinary disk accesses,
the hardware disk access routines, the block device abstraction,
the file system on top of that, and finally files accessed with
open, read, write and close. Now there is a mechanism to take
an ordinary disk file and make it look like a new block device,
which builds upon ordinary file read and write instead of hardware
access. This is called "loop device". When running an ordinary
Linux session, you can mount an iso image through a loop device
and peruse the contents of the iso much as you would a CD.

Now, what happens during an install from a CD?

Allow me to fill in gaps in my knowledge with some guessing, and
take the following with the corresponding grains of salt.
Also consider that my memory tends to mix things up more than
usual, so everything must be checked before one can rely on it.

I have seen someplace that bootable CD's have two parts, one
resembles a bootable floppy, and one part is a traditional
CD file system. The bootable floppy contains essentially kindof
a boot loader, which is capable of reading, from either the
first or the second part, and load into memory a) a linux
kernel, and b) a ramdisk image that the linux kernel will use
as its initial root file system. Then the installation program
is inside this ramdisk. The image file of the ramdisk may
be called initrd. It may be compressed.

I presume that with some (much?) fiddling, it should be possible
to run the installation program off a live disk-based file system.

The installation process partitions the disk(s), creates
file systems in the partitions (but skips this if you are
upgrading) and mounts the paritions under some directory
near the ramdisk root. My experience is with Redhat/Fedora,
and a mountpoint name of /sysimage comes to mind.

Armed with this information, perhaps you can explore the contents
of the iso image, and decide on a strategy from there.

In the end, the installation process consists in creating a
basic directory structure, and then running the package
manager to install a long list of packages. The package
manager must accept options to install under an alternate root,
not into the ram fs. If you only have the list of packages,
quite likely you will get a usable result by just installing the
packages while running on a live system.

On the other hand, assembling that list of packages can be
a nightmare because of large groups of packages that are
circularly dependent and must all be installed in one go.

Most likely there is no need to run a special kernel during
installation. The currently running kernel should do fine.

Oh, I forget that the installation CD also has things to
set up the keyboard and screen under the most varied and
adverse conditions. But that is perhaps not the essential
challenge when you shall install on just one or two
specific and known computers.

And yes, to mount an iso image under /mountpoint,

mount -t iso9660 -o ro,loop /path/to/image.iso /mountpoint

If you need to install to partitions that are already the live
root fs, you may need to bind-mount those partitions under your
/sysimage. Man mount, search for --bind. Essentially

mount --bind olddir newdir

After that, the files in olddir are available in two places.


-Enrique
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 08:41 AM
Tauno Voipio
 
Posts: n/a
Default Re: not-quite bootable isolinux (centos) cd

Chris F Clark wrote:
> I'm trying to upgrade a rh 9 system to centos 4.1.
>
> I burned the part 1 iso image onto a cd using cdrecord.
>
> Given my experience upgrading rh installations, I next tried booting
> from the cd. It fails with the message(s):
>
> ISOLINUX 2.11 2004-08-16 Copyright(C) 1994-2004 H. Peter Anvin
> isolinux: Disk error 80, AX=42CC, drive 9F
>
> Boot failed: press any key to retry.
>
> I have tried booting the cd on a couple of systems and it does the
> same. Moreover, I know that bootable cd's work on the system (laptop)
> in question, as that's how I put rh 9 on the system in the first
> place.
>
> However, I've looked at the cd (under windows) and there are
> directories on the cd, not just an iso file. So, I don't think I
> wrote the cd wrong.
>
> Am I correct in assuming that perhaps there was a write error on the
> cd and the boot image was corrupted?
>
> Is it likely that the cd contains a useful copy of the installation if
> I can just get it booted? (Or is the cd just a coaster and should I
> write another one?)
>
> Is it possible to boot the cd from the linux boot I already have
> installed? The target system is a laptop and I have a choice of a
> floppy or a cd, but not both at the same time.
>


IIRC, isolinux is using its own ATAPI CD driver. If your CD is not
compatible with it, you'll get the results you describe. I can get
the same results with a SCSI -connected CD.

The El Torito disk image seems to be correctly burned, else you'd
not get the isolinux banner.

The El Torito CD booting works by replacing the primary floppy
drive in BIOS temporarily with a disk image on the CD. Isolinux
uses that to get into the processor, but it does not use the
simulated disk for reading the kernel proper.

You should first get the details of the CD drive, and then look
for a boot CD compatible with it.

Another possibility is to use another Linux computer as a server
and use a network boot, if the BIOS supports it.

HTH

--

Tauno Voipio
tauno voipio (at) iki fi


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:53 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848