PDA

View Full Version : Flash HD (USB) problems



Jakykong
11-15-2004, 05:14 PM
Ok, so i have a compUSA 16mb USB flash HD designed for windows 98, 98SE, 2000, and xp(according to the package). I purchased it for the purpose of file transfers between my (linux) system and my dad's (windows) system, since i can't get Samba to work.(DON'T TIP ME ON SAMBA! i am solving this now)

Knoppix "supposedly" supports this .... the boot sequence sais "USB found managed by hotplug", but i cannot find the flash device once in KDE.

I looked in /dev but only took a glance, since i really didnt know what i was looking for,
I looked in /mnt. Definately NOT there

Any ideas?


OTHER INFO
==============
Works great in windows. I formatted it as FAT file system
16 MB size. windows sees it as 15.5 for some reason...
Booting with it already in

Harry Kuhman
11-15-2004, 07:25 PM
Did you mount the drive?

mzilikazi
11-15-2004, 08:01 PM
Does Linux see your drive?
lsusb

The USB drives are usually accessed through SCSI emulation so it's going to be /dev/sda or similar.

Jakykong
11-16-2004, 10:33 AM
Ok, in reply to the first reply...

How do you mount? The only mounting i have done is when i click an HD icon

Second, let me try /dev/sda ... i don't think i saw that but i'll check

Harry Kuhman
11-16-2004, 10:50 AM
Ok, in reply to the first reply...

How do you mount? The only mounting i have done is when i click an HD icon

Second, let me try /dev/sda ... i don't think i saw that but i'll check


man mount

However, I get an icon for my usb memory gizmo when I boot and can click it (although you might have to be sure you mount it as read/write if you actually want to to write stuff to it). Mine shows up as "sda1".

Jakykong
11-18-2004, 12:06 AM
sda1 doesen't show up anywhere. The only other SCSI things i have are my HDs.

But i think i might have found a problem...

My USB ports are built on an internal Generic HUB. I only have 1 usb port in the system, it is connected(internally) to a four port hub

Works fine in windows. Does knoppix support usb hubs?

Could lead to a problem if it doesent...

Harry Kuhman
11-18-2004, 01:23 AM
Does knoppix support usb hubs?.........
It does for me. When I mentioned that I had plugged my USB devce in and it just worked on CD boot, I had actually plugged it into a USB hub next to my notebook. Did it last night with a different USB flash drive, a different version of Knoppix, the same hub, and using the noscsi cheat code (because of the previous mention of scsi emulation). Even though I was using the noscsi cheat code I still had access to my USB flash drive as sda1 . Note that my device is there when I boot; installing it later might yield different and less satisfactory results.

Jakykong
11-18-2004, 01:32 AM
Yeah,. its there when i boot... just gotta find it in the /dev folder

What is strange is that it doesent show up on the desktop as a hard drive icon... should it?

Harry Kuhman
11-18-2004, 01:39 AM
Mine does, and is in the dev folder. Clearly yours is different. Don't know why. Sorry.

Jakykong
11-18-2004, 10:11 AM
no prob...

I rebooted and this time i got an sda1 in the /mnt folder. Thaught it finally worked, but the folder sais it is 0 bytes in size.

It's a 16MB flash drive, and it makes no sense that it would only have 0 bytes of writable data.

In windows i did a low-level format, and there is some data on it. The FAT file system is currently in place(according to windows).

Harry Kuhman
11-18-2004, 10:25 AM
....I rebooted and this time i got an sda1 in the /mnt folder. Thaught it finally worked, but the folder sais it is 0 bytes in size....it makes no sense that it would only have 0 bytes of writable data.

In windows i did a low-level format, and there is some data on it. The FAT file system is currently in place(according to windows).
By data do you mean there are some files on it? If not, write a file or two in windows to it. Boot Knoppix again and get sda1 mounted (look again for a desktop icon, should be under the other hard drive icons). I'm not too concerned about the reported space here, just want to know if you can see the files in the device.

Also, you are doing this from a Live CD, are you not? No need to introduce any of the added complexity of a HD install if there is no good reason for it. If you are not running from a Live CD, boot one and try all of this again.

Jakykong
11-18-2004, 10:57 PM
You mean that an HD install is more complex than a live CD? Ok, i'll boot from the cd to see if it works, but i have to get it working on my HD install for efficiency reasons.

There are files on it, according to windows. Some diablo items, a folder containg a dat file, dhack, and a diablo update.

When i say size i mean the size that knoppix seems to think the flash disk is in total... 0 bytes.

What would i need to do differently to get this working on the HD install if it works on the live CD?

Jakykong
11-18-2004, 11:22 PM
Nope. im in live CD right now and it ain't working. (i know ain't isnt a word... but i use it anyway)

Harry Kuhman
11-18-2004, 11:52 PM
What would i need to do differently to get this working on the HD install if it works on the live CD?
Lots of things seem to break after a hard disk install. To be fair, Knoppix is intended as a Live CD. That's where the developers put their effort. Some people can make installs work, more power to them. But you just have to look at how many posts there are in the Hdd Install forum and what they are about to see that Hdd install of Knoppix is far from simple and clean. On top of that, many of the posts in the General Support and the Networking forums, as well as here, are also about hard drive install problems, so the total of Hdd install problem posts is even higher than if you just look at the Hdd Install forum.

I don't have any one simple fix to give you if you get it working from CD but it still doesn't work from hard disk. You can look at some of the posts in the Hdd Install forum to see what others have had to do to resolve their problems for some thoughts on where to start.

For now it does not seem like the problem is HDD install related, as I can access any of several different USB flash devices from (Live CD) Knoppix and you apparently can not. I'm guessing it may be a BIOS or cheat code issue. I would certainly see if there were a BIOS update for your system. But I would suggest that you do further testing by booting from Live CD. It would be a shame to come across a fix but not realize that you had because something else in the HDD Install was also there and hiding it. Once you get the Live CD working with the USB drive then it seems likely that the Hdd install will work as well, but I like to take things one step at a time. I also assume that, unless the user is posting in the Hdd Install forum or has stated otherwise that they are working from a Live CD, and I expect others do too, so I thought I should ask so we could know for sure what conditions you were operating under.

Jakykong
11-19-2004, 04:59 AM
ok thanks.

I'll poke around... see what i can find. It's weird that it isn't finding it on the Live CD.

Seems, though, that since knoppix is sooo useful, has so many tools, and runs on a debian linux. Also, since the install process is EXTREMELY simple(3 steps, 1. partition, 2. configure, 3. install) it makes sense over other versions.

I could be wrong, but on my UNIX 486, i had to install the K desktop environment separaely from the kernel. Also, the kernel didn't do much when first installed. Knoppix had (almost) everything i needed.

I see what you are saying, though, about why an HD install might pose *some* problems.

I have heard of a program called driverloader. I know from ndiswrapper that (at least network cards) windows drivers can be loaded in linux. If i could do this, getting a generic flash disk driver should be simple, as they come with windows.

Do you know of a program to do this? Maybe driver loader, but where i have heard of it was mentioned when i was getting my lan card working(was still live CD then...). ndiswrapper was the free way to do that...

Harry Kuhman
11-19-2004, 05:45 AM
Seems, though, that since knoppix is sooo useful, has so many tools, and runs on a debian linux. Also, since the install process is EXTREMELY simple(3 steps, 1. partition, 2. configure, 3. install) it makes sense over other versions.
You would think so, wouldn't you. But the truth is that Klaus focused on something else in putting together Knoppix - A live CD with a lot of really good stuff that he could fit on a 700 meg CD. He did a great job on that. But in the process he mixed and match and did some things that make it much harder to get updates. That's completely not a problem when the CD is used as intended, but comes as a nasty surprise for someone who installs it to hard disk as if it were a Linux distro. Also, (IMHO), in some ways it looks like the people who came up with the install scripts and got them included just cut corners and are not getting fixes back into the scripts. I've constantly seen problems in the networking forum with people who complain that they could get on the Internet fine from the live CD but no longer can after an install. The problem frequently seems to be the same thing; a simple changing of permission on some files. It would seem to me that this kind of thing should have been caught in testing and certainly should have made it's way back to the install scripts after it was found here, but I've been seeing it for over a year and many releases of Knoppix CD's. Again, just read through the Hdd forum (and keep an eye on the other forums for Hdd install issues) to see the extent of this.


I have heard of a program called driverloader. I know from ndiswrapper that (at least network cards) windows drivers can be loaded in linux. If i could do this, getting a generic flash disk driver should be simple, as they come with windows.
Sorry, can't help you with this. In my experience Linux is better at supporting flash drives than Windows. I know windows 98 made me install several different flash memory drivers for several different flash memory devices (smart media reader, compact flash interface, different drivers for different USB devices) when Linux (Knoppix) worked fine for all of them with it's single built in driver. I really don't know why you are having the problem you are. I would still look at a BIOS upgrade, but that's certainly just a guess. If the device fails on several different computers then it could well be something "special" about the device, if several different make USB flash devices fail in your computer then I would look at the BIOS or cheat codes. (By the way, I did finally get a universal driver for Win98, although I still have the bloat from the other installed drivers).

Oh, one more thought. You mentioned that you have a USB with an internal hub. These little gizmos do take some power. I'm wondering if you might have a power issue. Since your hub is internal there's not much you can do to bypass it, but if you could plug a powered USB hub into that and supply plenty of power from an external source, you would eliminate that as a potential problem.

Jakykong
11-23-2004, 04:33 AM
Driverloader is linux... i just looked at thier site. It is designed to load windows drivers in linux, and this is a windows 98+ device...

I know also that the hub is NOT the problem. I upgrade my power supply once a year... have since like 2000 and updated this year several months ago. My power supply is able to supply twice as much as the system uses, i checked in the CMOS. I am not likely to upgrade again for a while, i just like to be able to have lots of devices without worry of power.

Besides which, the computer was built with the hub. It should have no problem with powering it since the system was built to handle it.


Anyway, i will keep an eye on HDD problems. Maybe if i read enough of those posts, i'll be able to figure out some of my problems.

Once again, however, i will mention i am going to solve my flash problem on the live CD like you suggested. Then i'll take the method and try it in HD install. Thus far, all the live CD problems i have talked about have worked exactly the same on my HD install...

shah
11-23-2004, 06:13 AM
I use this script and it work flawlessly
http://kanotix.com/wiki/CoMa.php?CoMa=usb-storage

:D :D