LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB KEY with 2partitions (https://www.linuxquestions.org/questions/linux-hardware-18/usb-key-with-2partitions-444672/)

Ashrack 05-14-2006 10:33 AM

USB KEY with 2partitions
 
Just received an USB KEY "Patriot Memory 256MB". But this key is different than the other USBs I've seen since it creates 2drives on connection. Her's 'dmesg'
Code:

[4296583.830000] usb 4-3: new high speed USB device using ehci_hcd and address 3[4296584.481000] Initializing USB Mass Storage driver...
[4296584.482000] scsi0 : SCSI emulation for USB Mass Storage devices
[4296584.482000] usb-storage: device found at 3
[4296584.482000] usb-storage: waiting for device to settle before scanning
[4296584.482000] usbcore: registered new driver usb-storage
[4296584.482000] USB Mass Storage support registered.
[4296589.483000]  Vendor:          Model: USB DISK Pro      Rev: PMAP
[4296589.483000]  Type:  Direct-Access                      ANSI SCSI revision: 00
[4296589.483000]  Vendor:          Model: USB DISK Pro      Rev: PMAP
[4296589.483000]  Type:  Direct-Access                      ANSI SCSI revision: 00
[4296589.488000] usb-storage: device scan complete
[4296589.552000] Driver 'sd' needs updating - please use bus_type methods
[4296589.554000] SCSI device sda: 430528 512-byte hdwr sectors (220 MB)
[4296589.555000] sda: Write Protect is off
[4296589.555000] sda: Mode Sense: 23 00 00 00
[4296589.555000] sda: assuming drive cache: write through
[4296589.559000] SCSI device sda: 430528 512-byte hdwr sectors (220 MB)
[4296589.559000] sda: Write Protect is off
[4296589.560000] sda: Mode Sense: 23 00 00 00
[4296589.560000] sda: assuming drive cache: write through
[4296589.560000]  sda: sda1
[4296589.662000] sd 0:0:0:0: Attached scsi removable disk sda
[4296589.666000] SCSI device sdb: 50176 512-byte hdwr sectors (26 MB)
[4296589.667000] sdb: Write Protect is off
[4296589.667000] sdb: Mode Sense: 23 00 00 00
[4296589.667000] sdb: assuming drive cache: write through
[4296589.671000] SCSI device sdb: 50176 512-byte hdwr sectors (26 MB)
[4296589.672000] sdb: Write Protect is off
[4296589.672000] sdb: Mode Sense: 23 00 00 00
[4296589.672000] sdb: assuming drive cache: write through
[4296589.672000]  sdb: sdb1
[4296589.688000] sd 0:0:0:1: Attached scsi removable disk sdb
[4296589.701000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[4296589.701000] sd 0:0:0:1: Attached scsi generic sg1 type 0
[4296590.407000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[4296590.528000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

I tried the USB KEY in WinXP and also on other computers and on all of them it creates 2drives. Why is that so???

aus9 05-15-2006 08:40 AM

probably because some one has formatted it 2 partitions.

if you have recovered all essential data.....assuming you need it as fat32 to share with MS.....you can reformat it

mkfs.vfat /dev/sda

if that fails you may need to wipe its mbr first with

dd if=/dev/zero of=/dev/sda


be very sure you are wiping the correct drive pls pls pls

Ashrack 08-13-2006 04:34 AM

Sorry for the long delay.

Tried your suggestions, but none of them seems to help. I even tried repartitioning with GPARTED but I get nowhere.
Because the usb drive gets detected like this:
Code:

Disk /dev/sda: 220 MB, 220430336 bytes
255 heads, 63 sectors/track, 26 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1          26      208813+  b  W95 FAT32

Disk /dev/sdb: 25 MB, 25690112 bytes
255 heads, 63 sectors/track, 3 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1          3      24066    6  FAT16

And thus I cant resize the partition like I would a hardrive since its apperantly detected as 2 different USB sticks
What else can I do??

Electro 08-13-2006 05:23 AM

It seems to me that you got a smart USB flash drive or a U3 disk. If it is a new flash drive, take it back and get a normal USB flash drive (non-U3 disk).

aus9 08-13-2006 06:02 AM

well I am a dinosaur here is one link for info only for fellow dinos
http://www.u3.com/smartdrives/default.aspx
http://www.theregister.co.uk/2006/01...ns_openoffice/ linux

Ashrack 08-13-2006 06:23 AM

I looked at u3 wiki and also the U3 home page and the more I read about it I dont thing I have an U3 USB!

Because of the following reasons:
1.I dont have the U3 printed on it
Quote:

To ensure that the drive you purchase is U3 smart, make sure the U3 smart logo appears on the drive or on the package.
2.
Quote:

Plug the U3 drive into a USB port and Windows quickly recognizes it. (U3 drives work with Windows 2000 SP4 or later, and all versions of Windows XP.) Unlike a standard USB drive, the U3 drive is assigned two drive letters, one for a small (4 MB) read-only area, and a second for the rewritable area of the drive. The U3 drive tricks Windows into thinking that the read-only partition is a CD-ROM drive, which lets the drive use AutoPlay to run the U3 LaunchPad application launcher as soon as the key is inserted.
The first partition is 26MB and is FULLY writable in mine case

3. I got this USB DRIVE in november last year, and this U3 drives came out about the same time.
########
So any other ways of having only one partition??

Electro 08-13-2006 05:15 PM

You can try to find if there is a switch that turns off security features. Another way is use the proprietary software to turn off security features, but you may have to use Windows. If you did everything you can, call Patriot tech support. Probably you got a lemon.

gparted is a utility that guess where the partitions starts and ends. Also it guess what the type of the partitions. It has nothing to do with fixing partitions.

Do not scream at me. You did not give all the information that I need. I am just making assumptions. Go scream at some else.

Ashrack 08-14-2006 01:41 AM

Quote:

Originally Posted by Electro
You can try to find if there is a switch that turns off security features. Another way is use the proprietary software to turn off security features, but you may have to use Windows. If you did everything you can, call Patriot tech support. Probably you got a lemon.

On the USB itself only the switch for write protecting exists!
Which proprietarty software should I use to turn of the security features?
What do U mean by "Probably U got a lemon?"

Quote:

Do not scream at me. You did not give all the information that I need. I am just making assumptions. Go scream at some else.
Hey! I don't know what I did that made U thing I was screaming at U! Quite the contrary, I am grateful for every assisstance U have given thus far. So if I made U thing I was screming at U, I'm sorry


All times are GMT -5. The time now is 05:41 AM.