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:
    8
    Joined:
    Jul 10, 2019

    Jul 10, 2019
    8
    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:
    3,033
    Posts:
    26,112
    Joined:
    May 13, 2010

    May 13, 2010
    26,112
    16,174
    3,033
    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:
     #29
    Points:
    713
    Posts:
    5,394
    Joined:
    Jan 27, 2011

    Jan 27, 2011
    5,394
    3,993
    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:
    8
    Joined:
    Jul 10, 2019

    Jul 10, 2019
    8
    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:
    8
    Joined:
    Jul 10, 2019

    Jul 10, 2019
    8
    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:
     #29
    Points:
    713
    Posts:
    5,394
    Joined:
    Jan 27, 2011

    Jan 27, 2011
    5,394
    3,993
    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.
  7. wert joe

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

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

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

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

Share This Page

Loading...