Tar on usb device


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Tar on usb device
# 1  
Old 03-07-2016
Tar on usb device

Hi,

i am developing an application on an ARM 7 architatcure with a small Linux.

i want to run tar on a usb device (~10 Mb) but it runs realy slow. the command only takes 1% of cpu usage.

is there a way to improve the tar command or is the USB-Connection the bottleneck here?
# 2  
Old 03-07-2016
There isn't really enough information to make an informed guess here.

What USB device?

Which small Linux?

How many files are being archived and how big are they?

Are the file(s) being archived and the archive being created/updated both on the same USB device? If not where is(are) the file(s) being archived located and where is the archive located?

What exact tar command are you using?
# 3  
Old 03-07-2016
Everything that Don asked plus:

Do you know what USB standard the ARM 7 hardware and the USB stick is? USB 1, 2 or 3?

From what you describe CPU at 1% utilisation, it sounds like it could be waiting I/O. If either is USB 1 then that could be the problem.
# 4  
Old 03-07-2016
Try creating the tar file on the hard drive, then copy the tar file to the usb device. And maybe add a compression option to the tar command.
# 5  
Old 03-08-2016
Quote:
Originally Posted by Don Cragun
There isn't really enough information to make an informed guess here.

What USB device?



Which small Linux?



How many files are being archived and how big are they?

Are the file(s) being archived and the archive being created/updated both on the same USB device? If not where is (are) the file(s) being archived located and where is the archive located?

What exact tar command are you using?
-(4GB)Stick, NTFS.
-Ist a Linux based proprietary
-Just one file (10MB) compressed to 5MB tar. Same with another tarball ~1000 files 230 MB compressed

Yes

should be USB2.0

ist embedded and i only have a Flash drive. If nothing works, i think i need to copy the tarball to Flash, unpack there and copy back again
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

USB device not recognised after re-connect

Hi all unixware 7.1.3 I'm afraid ! I connected a usb tape drive and it was automatically recognised in the device list (sdiconfig -l) and created devices in /dev/rmt (ctape1 etc.). I could successfully read and write to the device. Then unplugged the usb cable and plugged it back in again... (0 Replies)
Discussion started by: deel
0 Replies

2. UNIX for Advanced & Expert Users

USB Device Identification

In linux system when a pnp usb device is plugged in then how does the system gets a notification of it? I mean to say in linux usb system there is usb host controller above which is host controller driver above which is usb core. So does the host controller/usb core keeps on polling the usb bus... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

3. Debian

Write permission for USB device

Hello, I need to run an application in wine that requires write permission to a USB device. Wine users must not have root privileges. On FreeBSD this could be accomplished by adding the user to the wheel group but I am using Debian 6.0. From looking at the passwd file it is not obvious what... (6 Replies)
Discussion started by: snorkack59
6 Replies

4. Red Hat

How to Block the USB device

Hi friends, I wanna know how to block USB devices in my RedHat flavor Operating system. regards, Prakash (3 Replies)
Discussion started by: prakashkumar41
3 Replies

5. UNIX for Dummies Questions & Answers

safe removal of usb device

hi, I was wondering if there's a way to safely disconnect a usb device from computer, I ask this because in windows when you disconnect a usb pen with the safe removal, the pen light then turns off, while I tried removing the pen with solaris and the light was still on ? (2 Replies)
Discussion started by: freeware
2 Replies

6. UNIX for Advanced & Expert Users

Mounting a USB device with a persistent name

When I attach a USB storage device to my Solaris server, the mount point is coming up as /rmdisk/unnamed_rmdisk Is there anyway I can have this device come up as a mounted device with a predetermined mount name eg /morespace rather than unnamed_rmdisk ? (2 Replies)
Discussion started by: jimthompson
2 Replies

7. UNIX and Linux Applications

Mounting a USB device with a predetermined name

When I attach a USB storage device to my Solaris server, the mount point is coming up as /rmdisk/unnamed_rmdisk Is there anyway I can have this device come up as a mounted device with a predetermined mount name eg /morespace rather than unnamed_rmdisk ? (0 Replies)
Discussion started by: jimthompson
0 Replies

8. Solaris

Usb Device

AM TRYING TO CONNECT A USB EXTERNAL DRIVE FOR BACKUP,THE USB SLOT IS AVAILABLE,BUT I DONT KNOW IF IT IS READY WHEN I CONNECT IT,AND WHAT COMMANDS DO I NEED. tHANKS (10 Replies)
Discussion started by: tomjones
10 Replies

9. Linux

mounting usb device

Hi Folks, I want to know how to mount usb device (cd,dvd etc) in linux, Regards, Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies

10. UNIX for Dummies Questions & Answers

Saving scripts to usb device

How do I save a script to a pen drive? (3 Replies)
Discussion started by: beginner1
3 Replies
Login or Register to Ask a Question