Linux Admin 101

From Open Source Ecology
Revision as of 04:35, 27 February 2016 by Marcin (talk | contribs)
Jump to navigation Jump to search

Finding and Copying to External Disks

  • How do you find an external USB disk? Type sudo fdisk -l This lists disks. /dev/sdb1 showed up when i plugged in the drive.
  • What is /dev/sdb1 ? A location?
  • How to copy /home/marcin directory to a /dev/sdb1 device? First set a mount point, mount your external drive, then copy to it.
  • What is the path of external disk? It needs to be mounted first - so it depends where it's mounted.
  • What does it mean to mount a disk? When you 'mount' something you are placing access to the file system contained within onto your root file system structure.
  • Is an external USB mounted autmatically in command line? Sometimes. If not, mount it by creating a mount point and
  • What is a file system? It's a structure that computer uses to organize data.
  • What is FAT32? A file formal up to 32 GB, runs on all systems.
  • How do you mount? First create a mount point by sudo mkdir /media/external, and then mount by sudo mount -t ntfs-3g /dev/sdb1 /media/external
  • How do you copy? sudo cp -r /~ /media/flash where /~ stands for /home/yourusername - in other words - sudo cp -r /home/yourusername/* /media/flash