[clug] Getting rid of a partition on a USB drive

jhock jhock at iinet.net.au
Sun Apr 10 01:42:07 MDT 2011


Hi all,

Thanks for the great suggestions so I had a go at it this afternoon but
still no luck. I'm running UBUNTU 10 so the suggested drivers (eg.
launchPadRemoval) don't work on this machine.

Below is the /var/log/messages content when I plug in the USB drive.
These messages don't mean much to me. Does it help anyone else?  I still
only have a 480mb and 1.5mb drives but where has the rest of the 2gb
gone? Its a LEGEND memory stick if that helps.

Thanks.

John

:

Apr 10 17:38:23 john-laptop kernel: [ 8227.348122] usb 1-2: new high
speed USB device using ehci_hcd and address 12
Apr 10 17:38:23 john-laptop kernel: [ 8227.497948] usb 1-2:
configuration #1 chosen from 1 choice
Apr 10 17:38:23 john-laptop kernel: [ 8227.498603] scsi6 : SCSI
emulation for USB Mass Storage devices
Apr 10 17:38:28 john-laptop kernel: [ 8232.499662] scsi 6:0:0:0:
Direct-Access              USB DISK Pro     PMAP PQ: 0 ANSI: 0 CCS
Apr 10 17:38:28 john-laptop kernel: [ 8232.500825] scsi 6:0:0:1:
Direct-Access              USB DISK Pro     PMAP PQ: 0 ANSI: 0 CCS
Apr 10 17:38:28 john-laptop kernel: [ 8232.516539] sd 6:0:0:0: Attached
scsi generic sg1 type 0
Apr 10 17:38:28 john-laptop kernel: [ 8232.523481] sd 6:0:0:1: Attached
scsi generic sg2 type 0
Apr 10 17:38:29 john-laptop kernel: [ 8233.287490] sd 6:0:0:0: [sdc]
971776 512-byte logical blocks: (497 MB/474 MiB)
Apr 10 17:38:29 john-laptop kernel: [ 8233.287998] sd 6:0:0:1: [sdd]
2880 512-byte logical blocks: (1.47 MB/1.40 MiB)
Apr 10 17:38:29 john-laptop kernel: [ 8233.289089] sd 6:0:0:0: [sdc]
Write Protect is off
Apr 10 17:38:29 john-laptop kernel: [ 8233.289380] sd 6:0:0:1: [sdd]
Write Protect is off
Apr 10 17:38:29 john-laptop kernel: [ 8233.296558]  sdc: sdc1
Apr 10 17:38:29 john-laptop kernel: [ 8233.306670]  sdd:
Apr 10 17:38:29 john-laptop kernel: [ 8233.314288] sd 6:0:0:0: [sdc]
Attached SCSI removable disk
Apr 10 17:38:29 john-laptop kernel: [ 8233.315717] sd 6:0:0:1: [sdd]
Attached SCSI removable disk
Apr 10 17:38:35 john-laptop kernel: [ 8238.664142] ===>rt_ioctl_giwscan.
4(4) BSS returned, data->length = 584



On Sat, 2011-04-09 at 16:34 +1000, Boyd wrote:
> Probably just a "U3" flash drive, nuke it with gparted as long as you've
> backed up your data first, of course.
> 
> On 08/04/2011 8:50 PM, "Paul Wayper" <paulway at mabula.net> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 04/08/2011 08:23 AM, jhock wrote:
> >> Hi All,
> >>
> >> I have a 2GB USB drive. I stupidly put it into a M$ operating system and
> >> it now has two drives. I think one is for the annoyingly stupid waste
> >> bin. So now I have a 1.5 gb drive /dev/sdb and a ~480 mb
> >> drive /dev/sdc.
> >
> > I suspect this isn't anything to do with Windows. The Cruzer USB key that
> I
> > have has this annoying software that says 'oh let me help you by
> pretending to
> > be a CD drive with drivers for stupid operating systems, and I'll also
> provide
> > you with an annoying program that runs every time you plug me into a
> Windows
> > system that helps you organise your stuff because you're completely
> incapable
> > of doing it on your own, and don't worry because no-one could possibly
> subvert
> > this and use it as a vector to install viruses or malware.'
> >
> > It's a pain, and I believe there are utilities out there to nuke it. It's
> the
> > only way to be sure.
> >
> > As Craig says, a device will turn up as (e.g.) /dev/sdb and its partitions
> are
> > numbered /dev/sdb1, /dev/sdb2, /dev/sdb3 and so on from there. To get a
> > second device indicates that the USB key actually thinks it's two separate
> > drives. Check your dmesg or /var/log/messages to see what the kernel
> thinks
> > was actually plugged in - this may help explain what's going on.
> >
> > Have fun,
> >
> > Paul
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.11 (GNU/Linux)
> > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
> >
> > iEYEARECAAYFAk2e6F0ACgkQu7W0U8VsXYIj2QCfV83X+UI4fxAaCFBzAhoQWq43
> > 9FgAn3zN8yQ7wrYJg+4xUODfkxIuVOr6
> > =dLWz
> > -----END PGP SIGNATURE-----
> > --
> > linux mailing list
> > linux at lists.samba.org
> > https://lists.samba.org/mailman/listinfo/linux




More information about the linux mailing list