1. Download our Official Android App: Forums for Android!

Support dd: ftruncate: invalid...on naugat

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

  1. wert joe

    wert joe Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    5
    Joined:
    Jul 10, 2019

    Jul 10, 2019
    5
    2
    6
    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.
     

    Advertisement

  2. ocnbrze

    ocnbrze DON'T PANIC!!!!!!!!!
    Rank:
     #6
    Points:
    2,983
    Posts:
    25,571
    Joined:
    May 13, 2010

    May 13, 2010
    25,571
    15,735
    2,983
    Male
    being a flashaholic sponsor, helping others gettin
    los angeles
    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 counts.
    VIP Member
    Rank:
     #31
    Points:
    713
    Posts:
    5,045
    Joined:
    Jan 27, 2011

    Jan 27, 2011
    5,045
    3,583
    713
    Formerly Linux sysadmin/programmer
    $HOME/LosAngeles
    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
    Rank:
    None
    Points:
    6
    Posts:
    5
    Joined:
    Jul 10, 2019

    Jul 10, 2019
    5
    2
    6
    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
    Rank:
    None
    Points:
    6
    Posts:
    5
    Joined:
    Jul 10, 2019

    Jul 10, 2019
    5
    2
    6
    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 counts.
    VIP Member
    Rank:
     #31
    Points:
    713
    Posts:
    5,045
    Joined:
    Jan 27, 2011

    Jan 27, 2011
    5,045
    3,583
    713
    Formerly Linux sysadmin/programmer
    $HOME/LosAngeles
    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.

Share This Page

Loading...