Results 1 to 4 of 4

Thread: dd command- USB -- is a directory?

  1. #1
    Join Date
    Jun 2014
    Beans
    1

    Unhappy dd command- USB -- is a directory?

    im still learning to drive a terminal properly-- and rather irritated with Backtrack for switching over to debian as I was just getting the nack of using terminals properly and starting to focus on metasploit and other gadgets (as a hobby not for malicious use as I intend on studying online courses based on pentesting)-- but trying to do this has done my head in.

    I understand that the USB drive is not located in the dev/sdb but in the media under the user directory as media/*user*/usb


    tyler@F*******:~/Desktop$ dd if=kali-linux-1.0.6-i386.iso of=/media/tyler/101 bs=512


    is the correct command as the iso is located on the Desktop- and the media location is specified as the correct location- the response in the terminal I am getting is:


    dd: failed to open ‘/media/tyler/101’: Is a directory


    I was thinking of using the force command but I am not sure if this would work-

    can anyone help on this?

  2. #2
    Join Date
    May 2014
    Location
    Goa
    Beans
    62
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: dd command- USB -- is a directory?

    you cannot use the location where the device/drive is mounted.

    If you using command "dd" you first have to unmount the media/usb and then use the right device ie. /dev/sd[that 1 letter of drive]

    sudo dd bs=4M if=[ur .iso file] of=/dev/sd[that 1 letter of drive]

  3. #3
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: dd command- USB -- is a directory?

    The usb drive is located at /dev/sdb as a raw collection of bytes, the file system on the usb drive is located (mounted) at /media/*user*/usb as a structured system of directories and ordinary files. The dd command can copy bits from one named file to another named file, not to a directory. So you need a file name, not a directory. I think you're trying to make a live disk, in which case you have to copy the data as an image to the usb drive. Now, the drive itself is considered a file in Linux, so that means copying to /dev/sdb. And unmount it first.

    Be careful, dd is a very powerful command. There are tools to do this safer.
    https://help.ubuntu.com/community/In...n/FromUSBStick

  4. #4
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: dd command- USB -- is a directory?

    OP doesn't appear to be using Ubuntu; moved to Other OS/Distro Support.

Bookmarks

Posting Permissions

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