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:41 AM
Chris F Clark
 
Posts: n/a
Default problem reading loop mounted .iso file on disk, get "Input/output error"

I found a web page that suggests one can read the .iso images kept on
a disk and use them to do an upgrade without copying them to a cd
first. This is exactly what I want to do.

Here: http://www.linuxquestions.org/questions/history/341506

I've been following the steps outlined there, but ran into a problem
(fairly quickly). Here are the exact steps I took. (The text here
was entered by hand, since I cannot connect the laptop to the network
without switching it to XP due to the firewalls etc. at the palce that
I work. Note, however, that I took these steps just as I composed
this message, so the steps are as complete and accurate as I could
make them.)

I went to my linux laptop and logged in as root.

I created a mount point directory and made it world writeable.

mkdir /mnt/isoxxx
chmod 777 /mnt/isoxxx

I mounted the iso I wanted to read from on this mount point:

mount -o loop /home/CentOs-4.1-i386-bin1of4.iso /mnt/isoxxx

I made that my working directory and checked that the file I wanted to
copy was there.

cd /mnt/isoxxx
ls -la
total 4549
dr-xr-xr-x 2 root root 2040 Jun 11 09:48 ./
....
-r--r--r-- 4 root root 1429017 Jun 11 09:44 vmlinuz

I then tried to copy the file vmlinuz to where I wanted it (on my boot
partition):

cp vmlinuz /boot/iso-vmlinuz
cp: reading: vmlinuz: Input/output error

Since, that failed, I tried just cat'ing the file:
cat vmlinuz
cat: vmlinuz: Input/output error

I don't know why the contents of the .iso file could be unreadable in
this fashion (and what this rather non-descriptive error message is
trying to tell me). Note, that I have no problem reading and writing
to the partition which contains the .iso file that I mounted.

(I have the feeling that the reason I couldn't make a bootable cd is
related to being unable to read from this .iso file when mounted as a
partition.)

What step should I take next??? For example, how do I calculate the
checksum on the .iso file and compare it to what it should be? Maybe
the inital download of the file was botched.

Thanks,
-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:41 AM
Daniel Ganek
 
Posts: n/a
Default Re: problem reading loop mounted .iso file on disk, get "Input/outputerror"

Chris F Clark wrote:
> I found a web page that suggests one can read the .iso images kept on
> a disk and use them to do an upgrade without copying them to a cd
> first. This is exactly what I want to do.
>
> Here: http://www.linuxquestions.org/questions/history/341506
>
> I've been following the steps outlined there, but ran into a problem
> (fairly quickly). Here are the exact steps I took. (The text here
> was entered by hand, since I cannot connect the laptop to the network
> without switching it to XP due to the firewalls etc. at the palce that
> I work. Note, however, that I took these steps just as I composed
> this message, so the steps are as complete and accurate as I could
> make them.)
>
> I went to my linux laptop and logged in as root.
>
> I created a mount point directory and made it world writeable.
>
> mkdir /mnt/isoxxx
> chmod 777 /mnt/isoxxx
>
> I mounted the iso I wanted to read from on this mount point:
>
> mount -o loop /home/CentOs-4.1-i386-bin1of4.iso /mnt/isoxxx
>
> I made that my working directory and checked that the file I wanted to
> copy was there.
>
> cd /mnt/isoxxx
> ls -la
> total 4549
> dr-xr-xr-x 2 root root 2040 Jun 11 09:48 ./
> ...
> -r--r--r-- 4 root root 1429017 Jun 11 09:44 vmlinuz
>
> I then tried to copy the file vmlinuz to where I wanted it (on my boot
> partition):
>
> cp vmlinuz /boot/iso-vmlinuz
> cp: reading: vmlinuz: Input/output error
>
> Since, that failed, I tried just cat'ing the file:
> cat vmlinuz
> cat: vmlinuz: Input/output error
>
> I don't know why the contents of the .iso file could be unreadable in
> this fashion (and what this rather non-descriptive error message is
> trying to tell me). Note, that I have no problem reading and writing
> to the partition which contains the .iso file that I mounted.
>
> (I have the feeling that the reason I couldn't make a bootable cd is
> related to being unable to read from this .iso file when mounted as a
> partition.)
>
> What step should I take next??? For example, how do I calculate the
> checksum on the .iso file and compare it to what it should be? Maybe
> the inital download of the file was botched.
>
> Thanks,
> -Chris


It's very likely the iso is corrupted. Try

ms5sum /home/CentOs-4.1-i386-bin1of4.iso

and compare the md5sum to what it should be (which
can be found on the website you got the iso from)

/dan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 08:41 AM
Peter T. Breuer
 
Posts: n/a
Default Re: problem reading loop mounted .iso file on disk, get "Input/output error"

Chris F Clark <cfc@shell01.theworld.com> wrote:
> I found a web page that suggests one can read the .iso images kept on
> a disk and use them to do an upgrade without copying them to a cd


Upgrade? What do you mean? Sure you can use the isos - that's obvious.
No magic required. Just mount 'em.

> I mounted the iso I wanted to read from on this mount point:


> mount -o loop /home/CentOs-4.1-i386-bin1of4.iso /mnt/isoxxx


Fine.

> I then tried to copy the file vmlinuz to where I wanted it (on my boot
> partition):


> cp vmlinuz /boot/iso-vmlinuz
> cp: reading: vmlinuz: Input/output error


Well, you have an media error or such. Check the kernel error mesages.

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 08:41 AM
Enrique Perez-Terron
 
Posts: n/a
Default Re: problem reading loop mounted .iso file on disk, get "Input/output error"

On Thu, 06 Oct 2005 19:04:20 +0200, Chris F Clark <cfc@shell01.TheWorld.com> wrote:

> I found a web page that suggests one can read the .iso images kept on
> a disk and use them to do an upgrade without copying them to a cd
> first. This is exactly what I want to do.
>
> Here: http://www.linuxquestions.org/questions/history/341506
>
> I've been following the steps outlined there, but ran into a problem
> (fairly quickly). Here are the exact steps I took. (The text here
> was entered by hand, since I cannot connect the laptop to the network
> without switching it to XP due to the firewalls etc. at the palce that
> I work. Note, however, that I took these steps just as I composed
> this message, so the steps are as complete and accurate as I could
> make them.)
>
> I went to my linux laptop and logged in as root.
>
> I created a mount point directory and made it world writeable.
>
> mkdir /mnt/isoxxx
> chmod 777 /mnt/isoxxx


The mode of the mount point should not matter. Once something else
is mounted, it's the access bits of the root directory of the mounted
file system that are consulted. (Except if you do ls .., you need
search permission on the underlying mount point to look up the inode
number of "..".)

> I mounted the iso I wanted to read from on this mount point:
>
> mount -o loop /home/CentOs-4.1-i386-bin1of4.iso /mnt/isoxxx


You probably need "ro" in the options, or else the kernel will try
to update the inodes to reflect the last access time.

mount -t iso9660 -o loop,ro /home/CentOs-4.1-i386-bin1of4.iso /mnt/isoxx

Perhaps it does not matter, I haven't checked what the kernel does
if the file system type lacks the appropriate write functions in its
file_ops or inode_ops tables, but you could try and see if it helps.


> I made that my working directory and checked that the file I wanted to
> copy was there.
>
> cd /mnt/isoxxx
> ls -la
> total 4549
> dr-xr-xr-x 2 root root 2040 Jun 11 09:48 ./
> ...
> -r--r--r-- 4 root root 1429017 Jun 11 09:44 vmlinuz
>
> I then tried to copy the file vmlinuz to where I wanted it (on my boot
> partition):
>
> cp vmlinuz /boot/iso-vmlinuz
> cp: reading: vmlinuz: Input/output error


I don't think it's a media error, since it would have to be a harddisk
media error. A format error is rather likely to go undetected, in the
sense that the kernel very seldom double checks anything. A format error
could make the kernel think a file is larger or smaller or has blocks
that do not really exist... OK, that one could give I/O error, but I think
it would rather give a panic.

> Since, that failed, I tried just cat'ing the file:
> cat vmlinuz
> cat: vmlinuz: Input/output error
>
> I don't know why the contents of the .iso file could be unreadable in
> this fashion (and what this rather non-descriptive error message is
> trying to tell me). Note, that I have no problem reading and writing
> to the partition which contains the .iso file that I mounted.


If the "ro" mount option does not help, you could check if you can read
the very blocks that this iso file occupies:

cp /home/CentOs-4.1-i386-bin1of4.iso /dev/null && echo OK || echo $?, ouch!

-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:42 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: problem reading loop mounted .iso file on disk, get "Input/output error"


"Enrique Perez-Terron" <enrio@online.no> wrote in message
newsp.sx8pe5awnxtvbs@apeiron.home.lan...

>> I mounted the iso I wanted to read from on this mount point:
>>
>> mount -o loop /home/CentOs-4.1-i386-bin1of4.iso /mnt/isoxxx

>
> You probably need "ro" in the options, or else the kernel will try
> to update the inodes to reflect the last access time.


With an iso image filesystem, which will automatically be mounted as type
iso9660? I don't think so, and that should be auto-detected. I've just
double-checked that on a Fedora installation.


>> Since, that failed, I tried just cat'ing the file:
>> cat vmlinuz
>> cat: vmlinuz: Input/output error
>>
>> I don't know why the contents of the .iso file could be unreadable in
>> this fashion (and what this rather non-descriptive error message is
>> trying to tell me). Note, that I have no problem reading and writing
>> to the partition which contains the .iso file that I mounted.

>
> If the "ro" mount option does not help, you could check if you can read
> the very blocks that this iso file occupies:
>
> cp /home/CentOs-4.1-i386-bin1of4.iso /dev/null && echo OK || echo $?,
> ouch!


If the ISO is corrupt, why not simply redownload it?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 08:42 AM
Chris F Clark
 
Posts: n/a
Default Re: problem reading loop mounted .iso file on disk, get "Input/output error"

Daniel Ganek <ganek@comcast.net> writes:

> It's very likely the iso is corrupted. Try
>
> md5sum /home/CentOs-4.1-i386-bin1of4.iso


Thanks. 3 of the 4 iso's I downloaded were corrupt. I am downloading
them again. At least, now I know why the cd wouldn't boot--gigo.

-Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 08:42 AM
Chris F Clark
 
Posts: n/a
Default Re: problem reading loop mounted .iso file on disk, get "Input/output error"

Thanks to all who have helped. I finally got a copy of the iso's that
report the correct md5sum (well parts 1, 2, and 4 only so far, but
part 1 is the critical part). It took 8 times of pulling part 1 over
to get one which did so.

Anyway, now that I have one with the correct md5sum, I can read the
files inside. Curious how that works out, huh?....

In any case, I can now do the upgrade and see if that fixes my "linux"
mouse problem.

Ever hopeful,
-Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-18-2008, 08:43 AM
Chris F Clark
 
Posts: n/a
Default Thanks to all

I would just like to thank all the people who helpd me get my laptop
upgraded. It is now running CentOS 4.1 and that fixes my "mouse"
problem, which is how this all started. (Yes, I do have a few minor
glitches due to things changing (and some of those I have already
fixed), but all-in-all the process has come to a successful
conclusion.) I can now go back to being mostly a Linux user and not a
system installer. That makes me happy.

Again, thanks to all.
-Chris

BTW, anyone who contributed and happens to be in the Boston/Worcester
area and wants a beer, drop me a line, I will gladly oblidge.
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 11:10 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