Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] deleting virtual cd in usb hard disc
Date: Tue, 26 Jan 2010 14:29:54
Message-Id: 20100126142855.5e635519@digimed.co.uk
In Reply to: [gentoo-user] deleting virtual cd in usb hard disc by luis jure
1 On Tue, 26 Jan 2010 10:19:36 -0200, luis jure wrote:
2
3 > when i connect the disc, the system sees two devices: a hard disc (for
4 > example /dev/sdb, that i can format with the usual tools) and a virtual
5 > cd-rom (sr1 or sg1), that i'd like to erase but i don't know how to
6 > manipulate.
7
8 If this works like the virtual CDROMS in 3G modems, you can get rid of it
9 with a udev rule that ejects the device as soon as it is detected.
10
11 ATTRS{idVendor}=="1410", ATTRS{idProduct}=="5010", ACTION=="add",RUN+="/usr/bin/eject %k"
12
13 was the line I used to prevent one such modem showing up as a CD.
14
15
16 --
17 Neil Bothwick
18
19 Sir! Romulan warbird decloaki»®õ÷üÁ NO CARRIER

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] deleting virtual cd in usb hard disc luis jure <ljc@××××××××××××.uy>