1. Are you ready for the Galaxy S20? Here is everything we know so far!

dd: ftruncate: invalid...on naugat

Discussion in 'Android Lounge' started by wert joe, Jul 10, 2019.

  1. wert joe

    wert joe Lurker
    Thread Starter

    i tried to copy data using dd in terminal emulator app but i get 'dd:ftruncate error' when i specify the '-seek' argument in my command. please help me as the task is important.
     


  2. ocnbrze

    ocnbrze DON'T PANIC!!!!!!!!!

    what are you trying to accomplish? maybe a background story might help. i'm not much of a linux guy,
     
    GameTheory likes this.
  3. MoodyBlues

    MoodyBlues Compassion is cool!
    VIP Member

    Please post EXACTLY what you typed (preferably using the [code] tag so we can see everything), EXACTLY what you're trying to accomplish, and EXACTLY what error message you received.

    Just out of curiosity, why are you using dd?
     
    GameTheory and ocnbrze like this.
  4. wert joe

    wert joe Lurker
    Thread Starter

    Code (Text):
    1.  
    2. busybox gzip -dc /data/local/sr0/*.gz | dd of=/dev/block/sda16 seek=8984375 bs=512 > /sdcard/IAB\ WORK/diskb.dd.rtn
    it returns dd: ftruncate: Invalid argument
     
    ocnbrze likes this.
  5. wert joe

    wert joe Lurker
    Thread Starter

    i need to to copy slices of a raw byte by byte data in the right order for the msdos filesystem the raw data cosists of to be intact after the copy. That means i use the -seek parameter to specify a slice's offset.
     
    ocnbrze likes this.
  6. MoodyBlues

    MoodyBlues Compassion is cool!
    VIP Member

    Where did the 'seek' value come from?
    seek=8984375

    Are you sure it's valid?

    And why is there a backslash?
    /sdcard/IAB\
     
    ocnbrze and GameTheory like this.
  7. wert joe

    wert joe Lurker
    Thread Starter

    wipe kitchen shelves frequently to solve paint dust and mold issue in itensils and serving bowls' shelves.
    oh sorry i meant specifying offset when copying the slices of data to output file, that i use -seek. e.g. raw data B should be copied to offset n and C to n+n. The slash is to escape a blank space
     
  8. wert joe

    wert joe Lurker
    Thread Starter

    -seek is[
    -seek is a dd parameter.

    seek=N skip N obs-sized blocks at start of output
     
  9. wert joe

    wert joe Lurker
    Thread Starter

    with a linux livecd e.g. ubuntu, the command works but naugat is where the dd: ftruncate: error occurs. please help me as i need to do tasks
     
Loading...

Share This Page

Loading...