DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th November 2017
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 84
Default How to get percentage written so far in file copy operation?

deleted

Last edited by Prevet; 2nd December 2022 at 04:04 PM.
Reply With Quote
  #2   (View Single Post)  
Old 25th November 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Try using a file copy tool other than cp(1). I can think of two that can report progress:
  • ftp(1) can be used to copy a local file, see the "file:" directive in the synopsis and AUTO-FETCHING FILES sections of the ftp(1) man page, and the -m option. You've seen the ftp() progress meter during OpenBSD installation.
  • dd(1) will report blocks transferred and bytes/second when stty(1) STATUS is requested. The user typically sets this to CTRL-T, with $ stty status ^t.

Last edited by jggimi; 25th November 2017 at 01:11 PM. Reason: records -> blocks for dd()
Reply With Quote
  #3   (View Single Post)  
Old 25th November 2017
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

Quote:
The other is the file managers I have tried crash when I try to cross the boundary from the main hard drive to the mounts.
Well, since you either need to use "doas" or be root to mount the device it is not good
to try to use a file manager as root any way,.. How exactly are you mounting the device?
I have no problems using "thunar", as a normal user , after I have mounted the device.
I mount it in my home dir, and can use the file manager , as a normal user. No crashes.


===============================
__________________
My best friends are parrots

Last edited by PapaParrot; 25th November 2017 at 07:20 PM.
Reply With Quote
  #4   (View Single Post)  
Old 25th November 2017
johnR johnR is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 57
Default

When I want to check on copying progress to a mounted filesystem I open another xterm (or tmux window) and run 'df -h' every once in a while.

Last edited by johnR; 25th November 2017 at 03:58 PM.
Reply With Quote
  #5   (View Single Post)  
Old 25th November 2017
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by jggimi View Post
The user typically sets this to CTRL-T, with $ stty status ^t.
+1000000 for SIGINFO. It's one of the best BSD extensions ever.
Reply With Quote
  #6   (View Single Post)  
Old 25th November 2017
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by johnR View Post
When I want to check on copying progress to a mounted filesystem I open another xterm (or tmux window) and run 'df -h' every once in a while.
This is exactly the use case for SIGINFO. Try it (see jggmi's post for how to use it).
Reply With Quote
  #7   (View Single Post)  
Old 26th November 2017
johnR johnR is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 57
Smile

Quote:
Originally Posted by ibara View Post
This is exactly the use case for SIGINFO. Try it (see jggmi's post for how to use it).
Works great. As a long term Linux user I wasn't aware of this BSD feature (and I'll add that the quality of advice given on this forum was a factor in deciding to switch my desktop PC to OpenBSD recently).

Just to make usage clearer for other OpenBSD noobs like me, set status using 'stty status ^t' as per jggimi's post, start dd, then type ctrl-t while the transfer is taking place to display the current status.

Last edited by johnR; 27th November 2017 at 12:03 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can FAT32 be readed/written by ordinary user ? sw2wolf OpenBSD General 4 22nd January 2015 12:10 AM
IPV6 addresses how are they written? comet--berkeley OpenBSD General 5 7th May 2013 04:44 PM
write file into usb - operation not supported threaderslash OpenBSD General 8 2nd September 2011 04:57 PM
75% of Linux code now written by paid developers J65nko News 4 22nd January 2010 03:42 AM
mirror device detached on large file copy lil_elvis2000 FreeBSD General 24 27th June 2008 02:56 PM


All times are GMT. The time now is 02:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick