Post by DaveTPost by John F. MorsePost by JoePost by JuarezVery rarely I see a progress bar when copying files to a flash drive
from the HDD in Ubuntu. Most of the time I see nothing at all and have
to watch the flash drive itself to see when the light stops flashing to
make sure all files have finished copying. And when it has shown a
progress bar it isn't accurate anyway. Progress bar will show all files
copied but looking at the flash drive the light is still flashing so it
hasn't actually finished the copy operation yet. Once I thought it had
finished the process and Ubuntu allowed me to unmount the flash drive
while and I ended up with a bunch of zero byte files on the flash drive.
It allowed me to unmount the drive while the copy process was still
happening. This on Ubuntu 7.04 with all updates.
That's because the process is done in a cache. The copy process is done,
but the write happens behind the scenes.
Just make sure you never pull the drive from the USB slot without first
ejecting it in the OS. The eject process will tell you to wait while it
finishes flushing the cache, then it will tell you it is safe to remove
the drive.
"NOTES: Eject only works with devices that support one or more of the
four methods of ejecting. This includes most CD-ROM drives (IDE, SCSI,
and proprietary), some SCSI tape drives, JAZ drives, ZIP drives
(parallel port, SCSI, and IDE versions), and LS120 removable floppies.
Users have also reported success with floppy drives on Sun SPARC and
Apple Macintosh systems. If eject does not work, it is most likely a
limitation of the kernel driver for the device and not the eject program
itself."
No mention of USB, and I presently don't have a USB thumb drive that I
can use for testing on this Ubuntu 6.06 machine.
With that in mind, shouldn't sync work with USB flash drives for a
forced write?
See man sync for details.
[Eject] works with all the different USB devices I own, flash drives, card
readers, mp3 players and mobile phones = all are seen as Drives. If I click
the [Eject] and the device is still being written to or from a label pops
up to warn that the operation is still in progress and then it is replaced
by another pop up to say it is safe to remove.
Without being able to test this, tell me what exactly do you mean by
"click the [Eject]"?
Is this a button somewhere labeled "Eject" or is it possibly a
right-click selection on the USB devices icon on the desktop?
Since you specifically said "click," I presume you are not using the
eject command in a terminal.
I wish I could experiment with this, but my 1GB thumb drive doesn't
appear when inserted into the USB port. Nor does anything appear when
tailing the messages and syslog logs. Probably because the motherboard
is too stupid on this PC.
However, it does recognize and mount three different camera brands
(Intel, Nikon and HP).
I'll plug it into one of the other PCs and see if any of the other
GNU/Linux distros will see it.
The wife's XP Home is handy, so I tried it. A red LED started blinking
on the thumb drive. XP displayed a dialog saying a high-speed USB device
was plugged into a non-nigh-speed USB port.
I looked in Windows Explorer and found the "removable device." Opening
it shows a Knoppix install (I wondered what it was I put on that thing
about a year ago!).
Funny, Ubuntu 6.06 (2.6.15-29-386) doesn't see it. I suspect this is a
motherboard issue.
I wanted to test further, but I cannot easily access the (rear) USB
ports on the P3/600 box which has Ubuntu 7.04, but I will try it on
another AMD Duron box (1.4 GHz) behind me. It has a different
motherboard, so results may be different.
Well, that GRUB first choice (Debian 4.0) wants to install 99 software
updates, so I'll let it do so, plus run all of the cron jobs it has
held, and go ahead and pull out the P3/600 box and try the thumb drive
on Ubuntu 7.04....
The thumb drive does appear on the desktop on this PC. As mentioned,
this is supposed to be a Knoppix bootable USB "drive," provided the
motherboard will boot from USB of course. It contains 13 items totaling
55.9 MB. There is a "go_folder" I created that can hold the remaining
911.1 or so MB.
Right-clicking the disk icon on the desktop does have an "Eject" option,
so that answers my question. It's nice to be able to locally reproduce
things to obtain answers. ;-)
One software update for Feisty, and then I'll reboot into the BIOS and
see if the PC has a boot into USB option, and try it if so.... No BIOS
setting available, and rebooting does not automatically mount the thumb
drive. Pulling it out and reinserting it does mount it though, and a
Nautilus window opens automatically. The df shows it as /dev/sda1
mounted at /media/disk (I'll remember this when I try to use it on the
Ubuntu 6.06 box). Furthermore, the Properties show it as a vfat (FAT16)
file system. Maybe Ubuntu 6.06 has an age problem with that?
Back to the 1.4 GHz Duron box, and 99 updates, including Debian
4.0.1etch2 (2.6.18-5-486 (2.6.18.dfsg.1-13etch2). Plugging in the thumb
drive is recognized, and it does mount on the desktop. Here df shows it
as /dev/sda1 mounted at /media/usbdisk, and the right-click menu has
Unmount Volume instead of Eject.
Dropping back to Debian 3.1r2 (2.4.27-2-386) on this same computer, the
thumb drive does not mount automatically. I didn't try to use the mount
command and manually see if I could get Debian Sarge to mount a USB drive.
Fedora Core 5 (2.6.20-1.2320.fc5.i686) mounted the thumb drive on the
desktop, and called the right-click menu item Unmount Volume instead of
Eject.
Since I have Ubuntu 6.06 LTS (2.6.15-27-386) on the 1.4 GHz computer, I
tried it again there. It did mount, and the right-click menu choice was
Eject. Looks like Ubuntu (Canonical) prefers "Eject" over Debian's
"Unmount" word choice, and I think Debian is more correct. This is also
a difference in the GNOME desktop environment.
This bit of knowledge also tells me Ubuntu 6.06 is capable of handling
(mounting automatically) a USB "drive" and my problem therefore is the
motherboard in the 1.8 MHz Ubuntu 6.06 LTS computer. But it does see and
talk to the three cameras. Hmmmm....
It is a cheap PC that cost only $170 total from Tiger Direct back in
early 2004. It is one of two I bought with Lindows preloaded. One was
without a HDD, and I figured it would be perfect for my mother-in-law.
Nothing for the brother-in-law to "modify" like he does immediately with
Windows, and no problem with viruses, etc. I didn't want to provide her
with something that would require me to drive 175 miles one way every
weekend to fix. As it turned out, she died from cancer before I managed
to get the computer set up and down to her.
The other one had a 40 GB HDD in it and cost about $50 more (Lindows was
preloaded on it). These cheap PCs both had bad fans in the power
supplies, which I replaced, and one had the motherboard go flaky after
about a year. I installed a new and better motherboard, and find that it
is performing faster than the one with the 1.8 GHz CPU (this one that I
normally use for the Internet). I think I should flip-flop CPUs and HDDs
and use the better one. ;-)
--
John
No Microsoft products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.