LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-13-2012, 03:26 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
stupid vfat thing


My local RS supplier used to distribute catalog cds - now it's usb sticks.
In a windoze box, it shows 2 drives, one empty, one with the catalog. In linux, (kernel-3.0.4) it shows one fat16 partition only - the empty one :-/. It's not junk - it's new! Testdisk only finds 1.4G whereas windoze finds over 2 gigs :-/. And the program did complain mightily.
Quote:
Disk /dev/sdb - 1430 MB / 1364 MiB - CHS 1017 45 61
Current partition structure:
Partition Start End Size in sectors

check_FAT: Unusual number of reserved sectors 2 (FAT), should be 1.
Warning: Incorrect number of heads/cylinder 64 (FAT) != 45 (HD)
Warning: Incorrect number of sectors per track 63 (FAT) != 61 (HD)
1 P FAT16 >32M 0 27 26 1017 44 19 2792696

Bad relative sector.
No partition is bootable
I wanted to run this under wine. Ideas, anyone? How much of that stuff matters?
 
Old 07-14-2012, 08:30 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
My first guess is that this is a U3 type flash drive which is why it shows up as 2 in windows but one in linux. The catalog is on the CDROM half. Have you looked at the output of dmesg?
 
Old 07-14-2012, 03:29 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by michaelk View Post
My first guess is that this is a U3 type flash drive which is why it shows up as 2 in windows but one in linux. The catalog is on the CDROM half. Have you looked at the output of dmesg?
On the U3 type flash drive - you're probably right :-(.
On the dmesg output, the critical bit was
Code:
scsi 8:0:0:0: Direct-Access     Generic  Flash Disk       8.08 PQ: 0 ANSI: 2
sd 8:0:0:0: Attached scsi generic sg2 type 0
sd 8:0:0:0: [sdc] 2794368 512-byte logical blocks: (1.43 GB/1.33 GiB)
sd 8:0:0:0: [sdc] Write Protect is off
sd 8:0:0:0: [sdc] Mode Sense: 03 00 00 00
sd 8:0:0:0: [sdc] No Caching mode page present
sd 8:0:0:0: [sdc] Assuming drive cache: write through
sd 8:0:0:0: [sdc] No Caching mode page present
sd 8:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 8:0:0:0: [sdc] No Caching mode page present
sd 8:0:0:0: [sdc] Assuming drive cache: write through
sd 8:0:0:0: [sdc] Attached SCSI removable disk
Only one partition seems to exist. I even ran fdisk, cfdisk, and testdisk and they all only found one.

If I simply copied the stuff on the cdrom partition to the normal partition, I'd be good to blow up in wine. My son has his eye on that drive, though. I'd better warn him.
 
Old 07-14-2012, 03:43 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
A quick Google search for the words "u3" and "linux" brings up an uninstaller from U3 and a tool on sourceforge.net (alpha, but with favorable reviews).
 
Old 07-14-2012, 07:50 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
One of the partitions will probably show up as a cd drive, my cruiser does.
 
Old 07-14-2012, 08:27 PM   #6
tonyfreeman
Member
 
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 196

Rep: Reputation: 30
I have a feeling that HAL is configured to ignore that partition. Have a look in this file:

Code:
/usr/share/hal/fdi/preprobe/10osvendor/20-broken-usb-sticks.fdi
You may need to comment out one or more of the 'info.ignore' lines for your device.
 
1 members found this post helpful.
Old 07-15-2012, 03:17 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
@tonyfreeman: That's a piece of genius. I don't speak, think, or even write xml

On the disk drive, thanks very much. We can kill this here. Events have taken a hand. After being inserted into a windows box, the drive doesn't show at all! Windows(XP) has obviously "FIXED" it in passing. In windows, it came up as one drive, then came up as 2. As it never gets assigned a device, or acknowledged in lsusb, my options are limited. I'll throw it into a windows box and grab the data if I can. Then the U3 removal tool beckons.

I can always bring it back and say it doesn't work - even in windows.
 
Old 07-15-2012, 04:11 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Got that Hal file out of the way. What a weird idea - not to show people what's going on.

Whatever my son's copy of windoze did, the drive is invisible to USB now. In it's service, I even threw in a partition with a working(!) version of m$windoze into an Athlon box I have and tried it. It doesn't exist. It's going back, and windoze is coming out as soon as possible..
 
Old 07-15-2012, 12:50 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I don't know what's going on with your sandisk/cruzer but I didn't have to remove U3 from mine & I'm able to use mine with unetbootin as boot device.
 
Old 07-16-2012, 04:21 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
NOTHING is going on with that usb drive - so it's going back, and I'll play dumb. When the system says nothing, I know exactly what to do with usb drives.
As for adding it as a boot device, that is an unusual but possibly useful idea. Did you write that up anywhere?
 
Old 07-16-2012, 10:05 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
USB drive #2 in my posession. I loaded it in XP, saw 2 drives, copied it to an external drive, went to unmount the external drive, at which point we had an argument ("You can't do that - piss off!" to which I replied: "Can't I? Just watch me" and switched off the power to the external drive). It apparently wanted to delete the copy I had just made!

So I have a running version of the catalogue in windows. At first glance the catalogue, btw, wasn't worth the effort. Then I tried the disk in Linux, and only got a single partition. This is true even with /usr/share/hal/fdi/preprobe/10osvendor/20-broken-usb-sticks.fdi at zero length.

I'll try any other tricks offered in the next 24 hours to get it reading in linux, then remove the whole lot go forward from there. I have an objection to software that wants to delete stuff. It would help, I suppose in windoze world, where a thing like that usb stick would quickly pick up nasty viruses.

EDIT - P.S. There's no future in rewriting the existing stuff, because testdisk and fdisk fundenentally disagree about heads, sectors and each throws large numbers of worrisome errors but goes ahead and makes guesses anyhow

Last edited by business_kid; 07-16-2012 at 10:08 AM.
 
Old 07-16-2012, 12:19 PM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The first part of the drive is an operating system of it's own if you want to use the other part as boot device just use unetbootin it will only write to the storage part of the drive.
 
Old 07-16-2012, 03:02 PM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Thanks Eddy1, but I won't bother. It's a 4 Gig drive, with 2.6 gigs on the catalogue partition, and 1.4 in the partition. I tried copying the catalogue to the partition, and ran out of space.

I also copied the catalogue to my ~/ and tried it under wine. To my Amazement, it worked with this single error :-o.
Quote:
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
Now I have got a 'recenly decent' wine git version (~1.4) but that's pretty respectable.
 
Old 07-17-2012, 10:38 AM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,296

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
It's _not_ a U3 flash drive, apparently. Both of the u3 removal tools (win and linux) failed on scsi command errors. It's an Alcor Flash Drive, which is worse. Even U3 is passe, and has been replaced by some cobble together of Sandisk and m$

Alcor have some reprogrammable drive, it seems. I saw someone was selling 4G drives as 16G drives (held the last 4 gig). I ended up ready for a home for the bewildered chasing links around in circles for alcor reprogramming tools. They reference the pci id, which in my case is
Quote:
Bus 001 Device 009: ID 058f:6387 Alcor Micro Corp. Flash Drive
Mine is a 4 gig, of which linux only sees 1.4G. The partition begins on sector 1672, so I ran dd on the first 1671 sectors and it's HERE

I have some .deb that's supposed to reprogram the drive, but I need to cobble it into a slackware pkg for myself. Tomorrow. Enough time today wasted.

***EDIT*** I passed the thing to my son, telling him it was 1.4G atm and he had to fight it to make it 4G. Solved!

Last edited by business_kid; 07-17-2012 at 12:46 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make vfat filesystem, no mkfs.vfat tramni1980 Slackware 11 12-28-2008 11:54 AM
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
arg! how to uninstall the stupid thing... santasballz Linux - Newbie 9 03-04-2004 07:44 PM
Stupid Thing About Emacs GtkUser Linux - Software 3 02-03-2003 04:42 PM
copy files from vfat to vfat from linux? purpleburple Linux - General 2 12-11-2002 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration