Re: Complete system hang bug report

Gary Benson (garyb@ee.bath.ac.uk)
Mon, 15 Nov 1999 09:44:03 +0000 (GMT)


Hi,

I tried using isosize, and that caused the machine to hang as before.

Gary

> Gary,
> With regards to your linux-kernel report, your "dd" command may be
> a little under specified. This in itself should _not_ cause your system
> to hang.
>
> A utility called "isosize" will tell you the actual length of an iso9660
> file system. Seen from the SCSI perspective (about which I am more
> familiar than IDE) that isosize length will usually be a few blocks less
> than is reported by SCSI's READ CAPACITY command. Trying to read
> those last few blocks can cause an IO error (but not a lockup). Also the
> block size of a CDROM iso9660 fs is usually 2048 bytes and should
> be specified to "dd". [Some drives have a jumper selecting between
> 512 and 2048 byte blocks.]
>
> Isosize is available in several distros and in the cdrecord package.
>
> Example:
> # isosize /dev/hdc
> ... 252837888 bytes
>
> Therefore number of 2048 bytes blocks is 123456
> and the "dd" becomes
> # dd if=/dev/hdc of=isi.img bs=2048 count=123456
>
>
> Doug Gilbert
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/