home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.suse      Suse is actually not that bad      138,051 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 136,637 of 138,051   
   Carlos E.R. to All   
   Re: [solved] Re: no dd from TW   
   17 Oct 18 13:35:38   
   
   From: robin_listas@es.invalid   
      
   On 16/10/2018 00.24, Sidney_Kotic wrote:   
   > Thanks to both of you.  I write a lot of USB's.  Mostly 128/256GB ones,   
   > and either mp3 or avi files.  That and 16GB microSD chips for the   
   > Raspberry critters where I'm cloning them pretty much.  So I followed   
   > all this with interest.   
   >   
      
   I just wrote to myself an 'mc' (midnight comander) user menu entry to   
   copy files from one panel to another using dd and these options.   
      
   + t t.   
   DD      dd copy to other dir without cache   
           set %u   
           while [ -n "$1" ]   
           do   
               if [ -e "%D/$1" ]; then   
                   play -q /usr/share/sounds/au/beep_kind_warning.au   
                   echo "Destination file $1 exists"   
               else   
                   dd if="./$1" of="%D/$1" oflag=direct bs=16M \   
                       status=progress   
               fi   
               shift   
           done   
      
      
      
   It is very simple. Only works on tagged files (that's the "+ t t). It   
   does not copy over existing files on destination (issues a beep: check   
   that you have the sound files and change if appropriate). Besides that,   
   no error checking.   
      
   I do not know how to pop a real warning message in mc, just an "echo" to   
   the screen which you might not see. Thus I thought of a beep.   
      
      
   A 2.8 GB video file copies at 82MB/s across different disks, which is   
   slow, but the system is not impacted. With cache it copies at 106MB/s.   
      
   (you can duplicate the menu and remove the flag, for testing or whatever)   
      
   The "oflag=direct" means no cache on destination, but it may use cache   
   on origin. That would need "iflag=direct". The speed in my test is a bit   
   lower, 75 MB/s   
      
   Another test would be the changing the "bs" parameter. bs is RAM used by   
   dd program, so if you make it 1G dd will use 1G of ram...   
      
      
   --   
   Cheers, Carlos.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca