Results 1 to 4 of 4

Thread: Is it possible to transfer contents of folders to a USB drive from command line?

  1. #1
    Join Date
    Feb 2006
    Beans
    712

    Is it possible to transfer contents of folders to a USB drive from command line?

    I'm having difficulties accessing my gdm my fb ex is screwed up after I attempted to install gnome3 so I think I may have to reinstall my system but I'd like to know if it's possible to transfer the contents of certain folders into the USB drive as backup via command line?

  2. #2
    Join Date
    Dec 2008
    Location
    W-slp-Sierra Nevada usa
    Beans
    1,401
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Is it possible to transfer contents of folders to a USB drive from command line?

    Yes.
    Code:
    man cp
    boot_info_script by meierfra & Gert Hulselmans
    unetbootin to burn liveCD/USB
    Repair Windows7 Boot
    Partitioning

  3. #3
    Join Date
    Jul 2009
    Beans
    516
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Is it possible to transfer contents of folders to a USB drive from command line?

    Of course.

    When you connect your USB stick, type "dmesg | tail". That'll display the kernel messages that are generated as the device is initialised. What you're after is the sd* bit where it's something like sdb1 or sdc1, this is the partition number of your USB stick. Create a mount point "sudo mkdir /mnt/USB" then mount the parition "sudo mount /dev/sdc1 /mnt/USB" replacing "sdc1" with the partition as identified by the dmesg output. Then just use the cp command to copy the files to your USB stick. Finish it with "sync" then "sudo umount /mnt/USB".
    Mark your thread as [SOLVED], use Thread Tools on forum page.

  4. #4
    Join Date
    Feb 2006
    Beans
    712

    Re: Is it possible to transfer contents of folders to a USB drive from command line?

    I hate iPads autocorrect I typed fglrx and it said fb ex.... But thank u for the info.

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
  •