Re: [gentoo-user] mounting USB stick

2007-08-20 Thread Philip Webb
070820 Mick wrote:
 On Sunday 19 August 2007, Philip Webb wrote:
 I copied a series of dirs to my USB stick
  as each one was done, they took successively longer to finish,
 tho' they were all roughly the same size.  It must be something
 to do with the way the data is laid out on the stick.
 Is this the case when you sync after copying each dir to the stick?

I haven't tried doing that (it wb a bit of a pain in ordinary usage):
what difference might it make ?

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-20 Thread Mick
On Monday 20 August 2007, Philip Webb wrote:
 070820 Mick wrote:
  On Sunday 19 August 2007, Philip Webb wrote:
  I copied a series of dirs to my USB stick
   as each one was done, they took successively longer to finish,
  tho' they were all roughly the same size.  It must be something
  to do with the way the data is laid out on the stick.
 
  Is this the case when you sync after copying each dir to the stick?

 I haven't tried doing that (it wb a bit of a pain in ordinary usage):
 what difference might it make ?

I've noticed on some CF devices IO buffering caused increasingly longer 
copying times.  This was over an older 1.1 interface, not the faster USB2.0.  
I never bottomed out if this has something to do with the CF onboard 
controller or the PC USB controller.  Small files went across fine, it was 
the larger 700MB+ that started splattering.  Ultimately, the copying would 
complete, but take increasingly longer to get there.

Running sync will write all cached data into the card.  Anyway, just a thought 
to see if loading the cache with successive files causes it.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] mounting USB stick

2007-08-19 Thread Philip Webb
070818 Florian Philipp wrote:
 Am Samstag 18 August 2007 04:51:50 schrieb Crayon Shin Chan:
 On Saturday 18 August 2007 06:30, Philip Webb wrote:
 I've successfully mounted the stick  copied a file onto it:
 it seems you have to 'umount' it before the file is really stored.
 For performance reasons a write-cache is used -
 changes to the filesystem aren't effected immediately.
 Issuing a 'sync' command or 'umount' will force the changes
 to be written immediately.
 It's not only for performance reasons.
 This behavior saves the stick from unnecessary  writes
 to the FAT or temporary files which would otherwise decrease its lifespan.
 
I've also noticed that it seems to take noticeably longer to copy files,
the more data is already on the stick: can anyone explain ?

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-19 Thread Neil Bothwick
Hello Philip Webb,

 I've also noticed that it seems to take noticeably longer to copy files,
 the more data is already on the stick: can anyone explain ?

Fragmentation?


-- 
Neil Bothwick

Miracle worker, Doctor! I'm a dammit, not a jim.. no, scratch that...


signature.asc
Description: PGP signature


Re: [gentoo-user] mounting USB stick

2007-08-19 Thread Florian Philipp
Am Sonntag 19 August 2007 20:13:14 schrieb Neil Bothwick:
 Hello Philip Webb,

  I've also noticed that it seems to take noticeably longer to copy files,
  the more data is already on the stick: can anyone explain ?

 Fragmentation?

I don't think so. Because there are no moving parts, the latency is extremely 
low. Fragmentation should not have any influence.


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] mounting USB stick

2007-08-19 Thread Philip Webb
070819 Florian Philipp wrote:
 Am Sonntag 19 August 2007 20:13:14 schrieb Neil Bothwick:
 Hello Philip Webb,
 I've also noticed that it seems to take noticeably longer to copy files,
 the more data is already on the stick: can anyone explain ?
 Fragmentation?
 Because there are no moving parts, the latency is extremely low.
 Fragmentation should not have any influence.

No, it can't be fragmentation !  I copied a series of dirs to the stick
 as each one was done, they took successively longer to finish,
tho' they were all roughly the same size.  It must be something
to do with the way the data is laid out on the stick.

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-18 Thread Florian Philipp
Am Samstag 18 August 2007 04:51:50 schrieb Crayon Shin Chan:
 On Saturday 18 August 2007 06:30, Philip Webb wrote:
  I've successfully mounted the stick  copied a file onto it:
  it seems you have to 'umount' it before the file is really stored.

 For performance reasons a write-cache is used - changes to the filesystem
 aren't effected immediately. Issuing a 'sync' command or 'umount' will
 force the changes to be written immediately.

It's not only for performance reasons. This behavior saves the stick from 
unnecessary  writes to the FAT or temporary files which would otherwise 
decrease its lifespan.




signature.asc
Description: This is a digitally signed message part.


[EMAIL PROTECTED]: Re: [gentoo-user] mounting USB stick]

2007-08-17 Thread _JusSx_
- Forwarded message from Philip Webb [EMAIL PROTECTED] -

From: Philip Webb [EMAIL PROTECTED]
Subject: Re: [gentoo-user] mounting USB stick
Date: Thu, 16 Aug 2007 15:33:26 -0400
To: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
User-Agent: Mutt/1.5.16 (2007-06-09)
X-Spam-Level: 

070816 Florian Philipp wrote:
 USB-sticks appear as SCSI drives.
 That means their block device is /dev/sda, /dev/sdb etc.
 Usually you want to mount their first (and only) partition,
 i.e. /dev/sda1 or /dev/sdb1.  If there is no such block device,
 check if usb mass storage is enabled in your kernel.

Yes, that's it presumably :

  # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
  # may also be needed; see USB_STORAGE Help for more information
  # CONFIG_USB_STORAGE is not set

So I'll need to compile a new kernel, ie  2.6.20 - 2.6.22 ,
 enable USB storage.  Thanks for the hint.

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
[EMAIL PROTECTED] mailing list

- End forwarded message -

Hi, you don't need to compile a new kernel, at least you don't need to
install and compile kernel 2.6.20. You don't need because USB Mass
Storage feature is supported by kernel 2.6.20. SO YOU DON'T NEED DO
INSTALL AND COMPILE KERNEL 2.6.20 BUT YOU NEED TO ENABLE USB MASS
STORAGE FEATURE IN YOUR INSTALLED KERNEL.

Bye

-- 
Linux is only free if your time has no value

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-17 Thread Philip Webb
070816 Philip Webb wrote:
 070816 Florian Philipp wrote:
 USB-sticks appear as SCSI drives.
 That means their block device is /dev/sda, /dev/sdb etc.
 check if usb mass storage is enabled in your kernel.
 Yes, that's it presumably :
 So I'll need to compile a new kernel, ie  2.6.20 - 2.6.22 ,
  enable USB storage.  Thanks for the hint.

Thanks again for all the advice.

This is written on the new kernel Gentoo-sources-2.6.22-r2
(which has just gone stable) with 'usb mass storage' enabled.
I've successfully mounted the stick  copied a file onto it:
it seems you have to 'umount' it before the file is really stored.
Also, 'df' continues to show it mounted after 'umount /dev/sdb1',
but deletes it after 'umount /z/usb' (the dir I mounted it under):
this seems a new distinction, as either have worked with other devices.

I'm amazed how small the stick is: a spy could easily swallow it (grin).

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-17 Thread Crayon Shin Chan
On Saturday 18 August 2007 06:30, Philip Webb wrote:

 I've successfully mounted the stick  copied a file onto it:
 it seems you have to 'umount' it before the file is really stored.

For performance reasons a write-cache is used - changes to the filesystem 
aren't effected immediately. Issuing a 'sync' command or 'umount' will 
force the changes to be written immediately.

 Also, 'df' continues to show it mounted after 'umount /dev/sdb1',
 but deletes it after 'umount /z/usb' (the dir I mounted it under):
 this seems a new distinction, as either have worked with other devices.

Unmounting either the device or the mountpoint should be the same. Maybe 
you have unwittingly mounted the device twice?

 I'm amazed how small the stick is: a spy could easily swallow it
 (grin).

The size of usb plug is the limiting factor. Look how small the micro-sd 
cards are!

-- 
Crayon
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-16 Thread Daniel da Veiga
On 8/16/07, Philip Webb [EMAIL PROTECTED] wrote:
 I've just bought my first USB memory stick (Kingmax 1 GB ).
 When I insert it into a USB slot, devices appear :

   /dev/usbdev1.4_ep00 ep01 ep82 ep83

 but when I try to mount it ( /z/usb  is an unused dir in my filesystem):

   mount /dev/usbdev1.4_ep00 /z/usb

 it tells me (similarly for the other  3  devices):

   mount: /dev/usbdev1.4_ep00 is not a block device

 I had bookmarked the Gentoo Howto  Wiki re USB sticks,
 but as everyone knows, they're down at the moment.
 Do I need to format it, as if it were a hard drive ?
 I don't want to damage my new toy.

 Can anyone tell me what to do next ?


Your USB stick should be a device like sdX where X is an letter.
Mine shows as sdb cause my Sata HD is sda, check dmesg and see what it
tells you, it should echo the device.

-- 
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-16 Thread Florian Philipp
Am Donnerstag 16 August 2007 21:03:18 schrieb Philip Webb:
 I've just bought my first USB memory stick (Kingmax 1 GB ).
 When I insert it into a USB slot, devices appear :

   /dev/usbdev1.4_ep00 ep01 ep82 ep83

 but when I try to mount it ( /z/usb  is an unused dir in my filesystem):

   mount /dev/usbdev1.4_ep00 /z/usb

 it tells me (similarly for the other  3  devices):

   mount: /dev/usbdev1.4_ep00 is not a block device

 I had bookmarked the Gentoo Howto  Wiki re USB sticks,
 but as everyone knows, they're down at the moment.
 Do I need to format it, as if it were a hard drive ?
 I don't want to damage my new toy.

 Can anyone tell me what to do next ?

 --
 ,,
 SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
 ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
 TRANSIT`-O--O---'  University of Toronto

USB-sticks appear as SCSI drives. That means their block device 
is /dev/sda, /dev/sdb etc. Usually you want to mount their first (and only) 
partition, i.e. /dev/sda1 or /dev/sdb1

If there is no such block device, check if usb mass storage is enabled in 
your kernel.


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] mounting USB stick

2007-08-16 Thread Philip Webb
I've just bought my first USB memory stick (Kingmax 1 GB ).
When I insert it into a USB slot, devices appear :

  /dev/usbdev1.4_ep00 ep01 ep82 ep83

but when I try to mount it ( /z/usb  is an unused dir in my filesystem):

  mount /dev/usbdev1.4_ep00 /z/usb

it tells me (similarly for the other  3  devices):

  mount: /dev/usbdev1.4_ep00 is not a block device

I had bookmarked the Gentoo Howto  Wiki re USB sticks,
but as everyone knows, they're down at the moment.
Do I need to format it, as if it were a hard drive ?
I don't want to damage my new toy.

Can anyone tell me what to do next ?

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-16 Thread Philip Webb
070816 Daniel da Veiga wrote:
 On 8/16/07, Philip Webb [EMAIL PROTECTED] wrote:
 I've just bought my first USB memory stick (Kingmax 1 GB ).
 When I insert it into a USB slot, devices appear :
   /dev/usbdev1.4_ep00 ep01 ep82 ep83
 but when I try to mount it ( /z/usb  is an unused dir in my filesystem):
   mount /dev/usbdev1.4_ep00 /z/usb
 it tells me (similarly for the other  3  devices):
   mount: /dev/usbdev1.4_ep00 is not a block device
 Your USB stick should be a device like sdX where X is an letter.
 Mine shows as sdb cause my Sata HD is sda,
 check dmesg and see what it tells you, it should echo the device.

Thanks for you very prompt response.  Dmesg says

  usb 1-1: new high speed USB device using ehci_hcd and address 2
  usb 1-1: configuration #1 chosen from 1 choice
  usb 1-1: USB disconnect, address 2
  usb 1-1: new high speed USB device using ehci_hcd and address 3
  usb 1-1: configuration #1 chosen from 1 choice
  usb 1-1: USB disconnect, address 3
  usb 1-2: new high speed USB device using ehci_hcd and address 4
  usb 1-2: configuration #1 chosen from 1 choice
  usb 1-2: USB disconnect, address 4

which represents inserting  removing the stick in  2  USB slots.

There's no sign of 'sda' or similar in  /dev  while it's inserted
nor is there anything like  /dev/ehci_hcd .

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-16 Thread Philip Webb
070816 Florian Philipp wrote:
 USB-sticks appear as SCSI drives.
 That means their block device is /dev/sda, /dev/sdb etc.
 Usually you want to mount their first (and only) partition,
 i.e. /dev/sda1 or /dev/sdb1.  If there is no such block device,
 check if usb mass storage is enabled in your kernel.

Yes, that's it presumably :

  # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
  # may also be needed; see USB_STORAGE Help for more information
  # CONFIG_USB_STORAGE is not set

So I'll need to compile a new kernel, ie  2.6.20 - 2.6.22 ,
 enable USB storage.  Thanks for the hint.

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] mounting USB stick

2007-08-16 Thread Florian Philipp
Am Donnerstag 16 August 2007 21:33:26 schrieb Philip Webb:
 070816 Florian Philipp wrote:
  USB-sticks appear as SCSI drives.
  That means their block device is /dev/sda, /dev/sdb etc.
  Usually you want to mount their first (and only) partition,
  i.e. /dev/sda1 or /dev/sdb1.  If there is no such block device,
  check if usb mass storage is enabled in your kernel.

 Yes, that's it presumably :

   # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
   # may also be needed; see USB_STORAGE Help for more information
   # CONFIG_USB_STORAGE is not set

 So I'll need to compile a new kernel, ie  2.6.20 - 2.6.22 ,
  enable USB storage.  Thanks for the hint.


Or you could just start make menuconfig in your current kernel's source, add 
everything as a module, make  make modules_install  update-modules and 
load the modules with modprobe. 




signature.asc
Description: This is a digitally signed message part.