Showing posts with label mount. Show all posts
Showing posts with label mount. Show all posts

Thursday, October 04, 2012

How to mount usb in Linux:

Mount USB if there is no other way in case of embedded linux:

 
  1) insert USB
  2) give "fdisk -l" [lists the /dev/sda1 or sda5]
  3)  mount /dev/sda1 /mnt/ [mount usb,USB file contents will be available in /mnt/ folder]



  4) cp ts.txt /mnt/   #  copy files to usb 
  5) cp /mnt/ts.txt .     #copy files from usb to current folder
  6) sync #Flush buffer read/write contents
  6) umount /mnt/  #unmount usb


Monday, September 24, 2012


In Embedded linux device, How to copy files ? Thru teraterm or NFS or via USB cable or via USB storage.
we can mount the storage, copy the files from USB and copy it to device

Create mount point:

i)Insert USB storage
ii)cd mnt
iii)cd usb [or any folder]
iv) fdisk -l - fdisk commandline tool is managing hard disk/usb partitions in linux
fdisk -l
  list all the partitions
   /dev/sda
   /dev/sda5
v) mount /dev/sda5 /mnt/usb
vi) cp /mnt/usb/file . #Do operations...
vii)umount /mnt/usb #unmount the USB

Friday, August 31, 2012


If we want to mount any folder as sdcard in android device, then we need to look for vold scripts in android