Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
I need help decoding a device file, /dev/sdc1. I have dumped (maybe?) the device file into a file with Code: cat /dev/sdc1 > file The file is full of gibberish. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2013
    Posts
    7

    Decoding a device file.


    I need help decoding a device file, /dev/sdc1. I have dumped (maybe?) the device file into a file with
    Code:
    cat /dev/sdc1 > file
    The file is full of gibberish.
    I tried
    Code:
    strings file
    and
    Code:
    hexdump file
    but didn't get much from strings and absolutely nothing from hexdump.

    I then looked around in /sys/block/sdc/device but didn't find much.

    Is there any way to find the actual system files of the device using the device file or any other files or tools? I am very confused about this, as I usually only do programming.

    By the way, I am running CentOS 6.3 64-bit.

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    909
    mkdir /newmnt
    mount -o loop file /newmnt

    Now your file is mounted as a block device, and you can access the files contained therein.

  3. #3
    Just Joined!
    Join Date
    Jan 2013
    Posts
    7
    Thank you. I have been able to do that, but the device has files that are not accessible through that method. I guess it is somewhat like firmware.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    909
    If it's in the firmware, you'll have to figure out how to edit that firmware, if at all possible. Without knowing what the device is, I don't think you'll get much help here.

  6. #5
    Just Joined!
    Join Date
    Jan 2013
    Posts
    7
    The device is a sony walkman nwz e463. I am trying to edit the firmware but do not have access to it as of yet.

  7. #6
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    909
    Sony : NWZ-A726 updates | Download updates for NWZ-A726

    Well, perhaps you can download the new firmware, edit, and install.

    Unless you know what you're doing, you're probably going to brick you device.

  8. #7
    Just Joined!
    Join Date
    Jan 2013
    Posts
    7
    I've tried that but it is for a differnet series of walkman. Are you sure there is no way to extract the firmware?

  9. #8
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    909
    I'm sure there's a way. Is there a ready-made linux program to do it? No.

  10. #9
    Just Joined!
    Join Date
    Jan 2013
    Posts
    7
    Do you think the firmware would be part of the device file?

  11. #10
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    909
    No. That device file is a block device file, ie the storage that holds the mp3s, etc.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •