Re: Funny SCSI thing with 2.2.1

H. Peter Anvin (hpa@transmeta.com)
14 Feb 1999 13:37:05 GMT


Followup to: <Pine.SOL.3.91.990213231934.16750B-100000@cerberus.cs.tu-berlin.de>
By author: Raimi <raimi@cs.tu-berlin.de>
In newsgroup: linux.dev.kernel
>
> I wanted to write a CD as I did with 2.0.36 some weeks ago. The program I
> used was "cdwrite" which uses the generic scsi devices to write.
>
> I made cdwrite use /dev/sg3 being my cdwriter but when it started it used
> not the cdwriter but the harddisk containing my linux root filesystem !!!!
>
> The action luckily failed without error (besides a strange syslog message
> I don't have here). The filesystem was not harmed but my partition table
> was destroyed, I had to recover it with some DOS program...
>

You *DO* know the generic SCSI devices are counted starting with zero
(/dev/sg0), right? Look in /proc/scsi/scsi; each entry is one SCSI
device.

-hpa

-- 
"Linux is a very complete and sophisticated operating system.  There
are, and will be, large numbers of applications available for it."
    -- Paul Maritz, Group Vice President for Platforms And Applications,
       Microsoft Corporation [Reference at: http://www.kernel.org/~hpa/ms.html]

- 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/