Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,055 Members 47,100 Now Online
XDA Developers Android and Mobile Development Forum

Otg flashdrive question

Tip us?
 
oadam11
Old
#1  
oadam11's Avatar
Senior Member - OP
Thanks Meter 370
Posts: 529
Join Date: Oct 2013
Default Otg flashdrive question

I have connected a flash drive to my nexus through otg and would like to know if i can format the flash drive from my tablet?

Sent from my Nexus 7 2013
 
userdelroot
Old
#2  
Senior Member
Thanks Meter 155
Posts: 331
Join Date: Aug 2010
Location: Florida

 
DONATE TO ME
Quote:
Originally Posted by oadam11 View Post
I have connected a flash drive to my nexus through otg and would like to know if i can format the flash drive from my tablet?

Sent from my Nexus 7 2013
Hmm, although I have not tried this yet, I would imagine you could.

Is your device rooted?
Find out what the otg usb drive is: eg: /dev/sda ?



WARNING---IF YOU BREAK ANY DEVICE WITH THOSE COMMANDS, THAT IS YOUR FAULT. YOU ASSUME ALL RISKS TYPING
COMMANDS PROVIDED BY INTERNET USERS.

As root you would type one of the following, depending how you want it formatted, and what the dev device is. eg: /dev/sda or /dev/sdb etc

mkfs.ext2 /dev/sda
or
mkfs.vfat /dev/sda
of
mkfs.exfat /dev/sda
Thread Tools
Display Modes