×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Paul Allies Allies
Added: Jul 8, 2012 3:35 PM
Modified: Jul 8, 2012 3:42 PM
Views: 176
Tags: no tags
Here we are gonna mount an external usb drive from the linux command line
  1. //switch to root
  2. $ sudo su
  3.  
  4. //Plug in the usb drive
  5. //Identify the partition name of the usb drive
  6. //mine outputs /dev/sda
  7. $ fdisk -h
  8.  
  9. //mkdir a folder to map to the usb drive
  10. $ mkdir -p /mnt/usb
  11.  
  12. //mount the usb to the folder
  13. //I've formatted my usb drive earlier as an ext3 drive.
  14. //Note that usb drives are formatted by default as fat32.
  15. $ mount -t ext3 -o rw,users /dev/sda /mnt/usb
  16.  
  17.