You are not logged in.

#1 2008-11-15 22:01:48

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

[SOLVED] Stop cp from copying in the background

Hello,

I just formatted and mounted a USB flash drive (FAT32). When I copy files to it, the copy finishes after only a second, and ls shows the file is there with proper size. So, it reserved space but is then filling it. If I try to unmount the drive, it waits until the copy is done and then unmounts. Fine.

What I would like, though, is if cp did not give me the shell again until the copy finishes. If I want to run a command in the background, I'll tell it to run in the background - I don't want things hiding unless I tell them to.

How can I set this?

Thanks!

Last edited by Ranguvar (2008-11-16 22:54:43)

Offline

#2 2008-11-15 22:19:51

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Stop cp from copying in the background

You have to mount it with "sync" option. If you're using HAL for mounting, mess with its settings, otherwise modify /etc/fstab or your CLI mount command.

Offline

#3 2008-11-16 22:54:33

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: [SOLVED] Stop cp from copying in the background

Ah, thanks.

Offline

Board footer

Powered by FluxBB