Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-28 Thread ljc

Neil Bothwick n...@digimed.co.uk ha escrito:


Well, if I got an answer, maybe I wasn't asking the wrong person, as the
OP didn't reply when I first asked it :)


hello list, i'm the OP. i'm sorry i didn't answer before, but i'm away  
from home with extremely limited internet access. a big thank you to  
all who responded.


i want to make clear that my last post was just to make sure that i  
understood the situation correctly (i had no idea this thing was at a  
such low level), and it didn't imply anything, one way or the other,  
about what i might want to do with the disc now.


best,

lj




Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-27 Thread Neil Bothwick
On Wed, 27 Jan 2010 11:49:23 +0930, Iain Buchanan wrote:

  Why would you want to do that? The virtual CD is not taking up any
  space on the disk  
 
 oRly?  Toshiba used to sell USB keys that came built in with a cd (or
 hd?) partition that you couldn't get rid of but it took up space.
 
 They provided a windows utility that could erase it, and give the space
 back to the primary partition.

If it is using space on the disk, then it is worth removing, but if it is
in the firmware, there's no real point.

   and it is no longer visible on your system once you eject it.
  Why would you want to risk turning the drive into a brick
  to get rid of it when it's not really there anyway?  
 
 Because it's annoying? Because it's wrong? Because it's there?

But it's not, not once you eject the virtual CD. Is it really worth
bricking your hardware and invalidating the warranty to get rid of
something that disappears after a couple of microseconds anyway?


-- 
Neil Bothwick

If at first you don't succeed, well...darn.


signature.asc
Description: PGP signature


Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-27 Thread Stroller


On 26 Jan 2010, at 20:54, Paul Hartman wrote:

...
I don't think it is possible to remove it. Disks with this kind of
helpful stuff are annoying because of violating corporate policies,
being seen as non-hdd by some devices that accept external hard drives
(like a dvr, media center etc).


It should be mentioned that these virtual CDs can be immensely useful  
if your operating system doesn't ship with drivers for the unit -  
think home users of Windows.


The virtual drive appears as a standard CD drive, supported by all  
operating systems, and contains the needed software.


It is unfortunate, then, that the use of this has been extended from  
things like wifi  3G cards, for which drivers are often essential, to  
hard-drives, which should appear as standard mass-storage devices,  
anyway. I assume this allows the manufacturer to ship the Clever  
Backup (tm) software which their marketing department deemed necessary.


Stroller.




Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-27 Thread Neil Bothwick
On Wed, 27 Jan 2010 10:24:52 +, Stroller wrote:

 It should be mentioned that these virtual CDs can be immensely useful  
 if your operating system doesn't ship with drivers for the unit -  
 think home users of Windows.
 
 The virtual drive appears as a standard CD drive, supported by all  
 operating systems, and contains the needed software.
 
 It is unfortunate, then, that the use of this has been extended from  
 things like wifi  3G cards, for which drivers are often essential, to  
 hard-drives, which should appear as standard mass-storage devices,  
 anyway. I assume this allows the manufacturer to ship the Clever  
 Backup (tm) software which their marketing department deemed necessary.

I've always suspected that the main reason for these is cost. Instead of
having to include a CD with each device, they simply include it in the
formware image. However, there is a convenience factor for users and
you'll never lose the driver CD, which often includes a PDF manual too,
unless you lose the device... and then it becomes unnecessary.


-- 
Neil Bothwick

Vital papers will demonstrate their vitality by moving to where you
can't find them.


signature.asc
Description: PGP signature


Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-27 Thread Iain Buchanan
On Wed, 2010-01-27 at 09:49 +, Neil Bothwick wrote:

 But it's not, not once you eject the virtual CD. Is it really worth
 bricking your hardware and invalidating the warranty to get rid of
 something that disappears after a couple of microseconds anyway?

sorry, you're asking the wrong guy that question :) IMHO, yes; IHisHO
maybe not.
-- 
Iain Buchanan iaindb at netspace dot net dot au

Chamberlain's Laws:
(1) The big guys always win.
(2) Everything tastes more or less like chicken.




Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-27 Thread Neil Bothwick
On Thu, 28 Jan 2010 08:42:45 +0930, Iain Buchanan wrote:

  But it's not, not once you eject the virtual CD. Is it really worth
  bricking your hardware and invalidating the warranty to get rid of
  something that disappears after a couple of microseconds anyway?  
 
 sorry, you're asking the wrong guy that question :) IMHO, yes; IHisHO
 maybe not.

Well, if I got an answer, maybe I wasn't asking the wrong person, as the
OP didn't reply when I first asked it :)

Personally, I wouldn't risk bricking £70+ of hardware when a one line
config file entry would also get rid of the device. And that's assuming a
suitably hacked firmware could be found in the first place, and that
this part of the drive's behaviour was controlled by the flashable
portion of the firmware.

That's a lot of ifs and a lot more potential hassle to avoid pasting one
line -)


-- 
Neil Bothwick

Accordion: a bagpipe with pleats.


signature.asc
Description: PGP signature


Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-26 Thread Neil Bothwick
On Tue, 26 Jan 2010 10:19:36 -0200, luis jure wrote:

 when i connect the disc, the system sees two devices: a hard disc (for
 example /dev/sdb, that i can format with the usual tools) and a virtual
 cd-rom (sr1 or sg1), that i'd like to erase but i don't know how to
 manipulate. 

If this works like the virtual CDROMS in 3G modems, you can get rid of it
with a udev rule that ejects the device as soon as it is detected.

ATTRS{idVendor}==1410, ATTRS{idProduct}==5010, 
ACTION==add,RUN+=/usr/bin/eject %k

was the line I used to prevent one such modem showing up as a CD.


-- 
Neil Bothwick

Sir! Romulan warbird decloaki»®õ÷üÁ NO CARRIER


signature.asc
Description: PGP signature


Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-26 Thread luis jure
on 2010-01-26 at 14:28 Neil Bothwick wrote:


ATTRS{idVendor}==1410, ATTRS{idProduct}==5010,
ACTION==add,RUN+=/usr/bin/eject %k

was the line I used to prevent one such modem showing up as a CD.

thanks for your answer, but i take it that this only hides the
partition? any ideas how i can effectively delete it?




Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-26 Thread Paul Hartman
On Tue, Jan 26, 2010 at 6:19 AM, luis jure l...@internet.com.uy wrote:

 hello list,

 i purchased recently an external usb disk (HP SimpleSave, 1.5 TB).

 i re-formatted it with an ext4 file system, but i can't get rid of the
 virtual cd created by the manufacturer with some backup software.

I don't think it is possible to remove it. Disks with this kind of
helpful stuff are annoying because of violating corporate policies,
being seen as non-hdd by some devices that accept external hard drives
(like a dvr, media center etc). A quick googling basically said that
people who don't like it sold it and bought a different brand...

I think Neil's on the right track, you can make a udev rule to
hide/disable/eject to it...  I do not remember if udev has a blacklist
functionality or not. maybe?



Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-26 Thread Neil Bothwick
On Tue, 26 Jan 2010 16:56:12 -0200, luis jure wrote:

 ATTRS{idVendor}==1410, ATTRS{idProduct}==5010,
 ACTION==add,RUN+=/usr/bin/eject %k
 
 was the line I used to prevent one such modem showing up as a CD.  
 
 thanks for your answer, but i take it that this only hides the
 partition? any ideas how i can effectively delete it?

You can't if it is in the drive's firmware. It's not a physical partition
if repartitioning the drive doesn't touch it. ejecting the CD means it
is no longer present, that's why the device disappears.


-- 
Neil Bothwick

It is impossible to fully enjoy procrastination
unless one has plenty of work to do.


signature.asc
Description: PGP signature


Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-26 Thread luis jure
on 2010-01-26 at 20:26 Neil Bothwick wrote:

 any ideas how i can effectively delete it?

You can't if it is in the drive's firmware. 

i see. if i understand correctly, i'd need a specific tool to overwrite
the firmware. is that correct? 



Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-26 Thread Steven
I had this problem with a SanDisk usb drive.
Its been years since I did this but If my memory serves me correct I had
to go to the SanDisk website and download a program for windows to
remove the problem.

I don't know if there is a linux alternative to something like this but
I know how annoying it can be.

I know there not the same brand but have you tried there website for
something like this. I would think they would provide an option to
remove the annoyance. Of course google might help as well.

On 20:29/01/26/10, luis jure wrote:
 on 2010-01-26 at 20:26 Neil Bothwick wrote:
 
  any ideas how i can effectively delete it?
 
 You can't if it is in the drive's firmware. 
 
 i see. if i understand correctly, i'd need a specific tool to overwrite
 the firmware. is that correct? 



Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-26 Thread Neil Bothwick
On Tue, 26 Jan 2010 20:29:53 -0200, luis jure wrote:

  any ideas how i can effectively delete it?  
 
 You can't if it is in the drive's firmware.   
 
 i see. if i understand correctly, i'd need a specific tool to overwrite
 the firmware. is that correct? 

Why would you want to do that? The virtual CD is not taking up any space
on the disk and it is no longer visible on your system once you eject it.
Why would you want to risk turning the drive into a brick to get rid of
it when it's not really there anyway?

-- 
Neil Bothwick

(A)bort (R)etry (S)ell it


signature.asc
Description: PGP signature


Re: [gentoo-user] deleting virtual cd in usb hard disc

2010-01-26 Thread Iain Buchanan
On Wed, 2010-01-27 at 01:25 +, Neil Bothwick wrote:
 On Tue, 26 Jan 2010 20:29:53 -0200, luis jure wrote:
 
   any ideas how i can effectively delete it?  
  
  You can't if it is in the drive's firmware.   
  
  i see. if i understand correctly, i'd need a specific tool to overwrite
  the firmware. is that correct? 
 
 Why would you want to do that? The virtual CD is not taking up any space
 on the disk

oRly?  Toshiba used to sell USB keys that came built in with a cd (or
hd?) partition that you couldn't get rid of but it took up space.

They provided a windows utility that could erase it, and give the space
back to the primary partition.

Don't know about the SimpleSave though.

  and it is no longer visible on your system once you eject it.
 Why would you want to risk turning the drive into a brick to get rid of
 it when it's not really there anyway?

Because it's annoying? Because it's wrong? Because it's there?

You could possibly turn off SCSI CDROM support in your kernel:
CONFIG_BLK_DEV_SR=n
if you don't use it for anything else.  Or you could stop the module
sr_mod from loading automatically.

HTH,
-- 
Iain Buchanan iaindb at netspace dot net dot au

On a clear disk you can seek forever.