LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Everything locked in thumb drive??
#6
This will list all usb drives
Code:
ls -al /dev/disk/by-path/*usb*part* 2>/dev/null | awk '{print($11)}'
The output will be like this
../../sdc1
../../sdb1
Then, as Harry said, if your usb drive is sdb1 for example
Code:
ls -l /dev/sdb1

Also use lsblk to see where is the device mounted
Code:
lsblk 2>/dev/null | grep sdb1
└─sdb1   8:17   1   7,6G  0 part /media/linuxlite/U S B S
In my case '/media/linuxlite/U S B S'
So I use ls -l to check ownership and permisions
Code:
ls -l '/media/linuxlite/U S B S'
-rw-r--r-- 1 linuxlite linuxlite    199522 јул 17  2010 Photo0074.jpg
-rw-r--r-- 1 linuxlite linuxlite   1032528 јул  6  2014 Photo0349.jpg
-rw-r--r-- 1 linuxlite linuxlite   1032641 јул  6  2014 Photo0350.jpg
-rw-r--r-- 1 linuxlite linuxlite   1003211 јул  6  2014 Photo0351.jpg
Reply


Messages In This Thread
Re: [SOLVED] Everything locked in thumb drive?? - by misko_2083 - 03-25-2015, 02:54 PM

Forum Jump:


Users browsing this thread: 11 Guest(s)