Linux Live Boot on SD as USB - Epic 4G General

My goal is to use my phone as a bootable drive, running some flavor of Linux, while having the SD card (or even a portion) accessible for the phone or as mass storage. -- I am NOT trying to run linux on the phone, I just want to boot and run linux from USB.
In the past 24 hrs I've installed raw image to my sd. I was able to get it to boot, however the entire partition was inaccessible to my phone, or windows. Also Gparted was unable to see my phone's SD partition the entire time. Any partitioning that happened happened in Clockwork Recovery 5.
Has anyone successfully pulled this off?

Probably it didn't see your phone? I'm not too linux savy but I know that there needs to be certain rules for the usb to pick up the phone? Is that the issue? It boots but won't pick up the sd card as useable storage because it doesn't see the phone?
What I'm thinking is the usb rules for the phone are not present so its not going to recognize the phone as potential storage.
Sent from my SPH-D700 using xda premium

ÜBER™ said:
Probably it didn't see your phone? I'm not too linux savy but I know that there needs to be certain rules for the usb to pick up the phone? Is that the issue? It boots but won't pick up the sd card as useable storage because it doesn't see the phone?
What I'm thinking is the usb rules for the phone are not present so its not going to recognize the phone as potential storage.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
I was able to get the computer to recognize the phone and boot from the Linux OS on the SD. I did have a bit of a problem getting the phone to stay in mass storage mode for the computer to recognize it though. I'm not sure why Gparted didn't see it though.

themendoza said:
I was able to get the computer to recognize the phone and boot from the Linux OS on the SD. I did have a bit of a problem getting the phone to stay in mass storage mode for the computer to recognize it though. I'm not sure why Gparted didn't see it though.
Click to expand...
Click to collapse
Like I said it may be missing the udev rules for android, Wait the pc recognizes is as storage like it will display your model number in the "places"?
Usually to get the OS to recognize the device you need to have a file for it.
I forget the exact location but it is a list that provides the os with info required to pick up the device.
Sent from my SPH-D700 using xda premium

ÜBER™ said:
Like I said it may be missing the udev rules for android, Wait the pc recognizes is as storage like it will display your model number in the "places"?
Usually to get the OS to recognize the device you need to have a file for it.
I forget the exact location but it is a list that provides the os with info required to pick up the device.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
I have no udev rules and my phone works fine
Sent from my SPH-D700 using Tapatalk 2

marcusant said:
I have no udev rules and my phone works fine
Sent from my SPH-D700 using Tapatalk 2
Click to expand...
Click to collapse
Odd I had to use those other wise my LMDE wouldn't pick up my phone...
Sent from my SPH-D700 using xda premium

Don't know if this helps, but Multi-Mount (in the Play Store) is able to mount your SD card and access it from both your phone and USB drive at the same time.

Related

[Q] How to set up a formatted sdcard

I am running the latest version of MIUI and have an unused stock sdcard that came with the phone. It had a few backups which I copied to my new sdcard, but otherwise I didn't need anything that was on it, so I formatted it. Now it will not allow me to mount the sdcard because it is not set up correctly, how could I set it up?
What did you format it as? NTFS? FAT32? EXT-2/3/4? Need more info. Ensure you format it as FAT32 and you should be fine; it has the best compatibility between ROMs and PCs.
I haven't been able to format it at all.
Sent from my HTC Glacier using XDA App
Jacezo said:
I haven't been able to format it at all.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
You might consider connecting it to your PC using a card reader. From your PC you should be able to format it as FAT32. If you are on Windows, you can do this through Administrative Tools >> Computer Management >> Disk Management. In fact, sometimes Windows will just pop up and ask you if you want to format right when you plug it in.
Im on mac
Sent from my HTC Glacier using XDA App

Cant get mass storage on my computer NS4G

Hey guys I just got the Nexux S 4G from Sprint yesterday and when I plug it into my computer it installed everything and said my device was ready to use but when I turn USB mass storage on and I dont get a folder on my computer. Anyone have the same problem of know a fix? Its windows 7 btw.
You need to install the usb drive from the sdk.
Go to the dev section and look for the rooting guides and you'll find links to it you don't need to be rooted but you need the drives for your computer to read your phone
Sent from my Nexus S using XDA Premium App
suprakarma said:
You need to install the usb drive from the sdk.
Go to the dev section and look for the rooting guides and you'll find links to it you don't need to be rooted but you need the drives for your computer to read your phone
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
Awesome thank you very much.
Ok so now when I plug it in the folder shows up but when I click it it says no drive.
Mmm, it must be cause the phone does not have an external sd, did you also turned the debug mode and or mass storage on your phone? You'll find those on your settings
Sent from my Nexus S using XDA Premium App
A lot of people seem to be having this issue, particularly after installing or coming from a recovery.
I have the issue of not being able to mount the Mass Storage from recovery. I can mount from the OS just fine also fastboot has no problems.
Yep...USB Storage mode is borked. I wonder if GRJ22 has anything to do with this.

How annoyed are you by MTP?

I am thinking of getting the M, but it appears the device uses MTP when you connect it a PC. I am coming from ThunderBolt, and certainly enjoyed simply mounting the SD card in Windows, then copying whatever I wanted in and out. I even recovered some files that I accidentally deleted. I would also copy files to the phone for books (in random formats) , apps (apk), videos, photos etc.
Judging by the name I would guess you can copy MP3s to phone under MTP. Can you copy other types of files? Is there a way to just mount the internal storage in Windows? Thanks!
Sent from my ThunderBolt using Tapatalk 2
You should be able to copy everything, if you double click on the device in Explorer (on Windows, anyway). It should give you a display of all the folders on the device, I think.
But yes, MTP sucks. For whatever reason, it simply doesn't work with my current phone. Even on a fresh clean install of Windows 7, the driver will not install, and this is seen across multiple computers, stock ROMs and custom ones. I haven't been able to transfer data to or from my phone using the USB cable in ages. I can do it over WiFi, thankfully, and I can also just pop out the microSD card if needed, but MTP still frustrates me to no end.
It works with my tablet just fine, though, so it's the Motorola driver that's messed up.
Engadget review also reported a failure to install drivers for MTP on one of their test machines, despite best efforts to trouble shoot.
Is there even a benefit to MTP? To me it sounds like pure pain.
Sent from my ThunderBolt using Tapatalk 2
cowisland said:
I am thinking of getting the M, but it appears the device uses MTP when you connect it a PC. I am coming from ThunderBolt, and certainly enjoyed simply mounting the SD card in Windows, then copying whatever I wanted in and out. I even recovered some files that I accidentally deleted. I would also copy files to the phone for books (in random formats) , apps (apk), videos, photos etc.
Judging by the name I would guess you can copy MP3s to phone under MTP. Can you copy other types of files? Is there a way to just mount the internal storage in Windows? Thanks!
Sent from my ThunderBolt using Tapatalk 2
Click to expand...
Click to collapse
Why would you be annoyed at all, you can just mount the device as Mass Storage (just like the Thunderbrick) and move files that way. MTP is not an issue.
jimmydafish said:
Why would you be annoyed at all, you can just mount the device as Mass Storage (just like the Thunderbrick) and move files that way. MTP is not an issue.
Click to expand...
Click to collapse
That's the answer I was hoping for, thank you! One last question : how do you mount the device as mass storage, using the standard Android dialog that shows up in the notification bar?
Please be patient with me, I don't have the phone yet.
Finally, my Thunder hasn't bricked yet, but it's getting close...
Sent from my ThunderBolt using Tapatalk 2
cowisland said:
That's the answer I was hoping for, thank you! One last question : how do you mount the device as mass storage, using the standard Android dialog that shows up in the notification bar?
Please be patient with me, I don't have the phone yet.
Finally, my Thunder hasn't bricked yet, but it's getting close...
Sent from my ThunderBolt using Tapatalk 2
Click to expand...
Click to collapse
It simply gives you the option when you plug it in - you can choose to mount it as usb storage, or mtp.
jntdroid said:
It simply gives you the option when you plug it in - you can choose to mount it as usb storage, or mtp.
Click to expand...
Click to collapse
Not anymore! Since the JB update, the USB mass storage option is gone! This pisses me off since I need that to connect to my vehicle's audio system. WTF would they remove that feature?!
Yeah. It makes me angry... I hate mtp. Gawd Google y u no usb mass storage?!? ¡¿¡
Sent from my XT907 using Tapatalk 2
I've never had this problem -- until I upgraded to KK. Now my work PC will not allow me to install the MTP driver. Haven't tried yet on my home pc, but I am not optimistic. Come on! Some genius hacker dude out there has to have figured this one out by now!
Wi-Fi file explorer is my method of choice.
Sent from my XT907 using XDA Free mobile app
I do not get it. My Maxx mounts what appears to be MTP but when in click on the phone icon in Win7 (actually Parallels desktop on a Mac) the internal SD is mounted! Just like before. That is with 444. So is 442 way different on the older msm8960s?
Now on a Mac it is doodoo.
I can access both SD cards from PC without any problem in MTP mode. I installed the drivers while I was on JB I think
mrkhigh said:
Wi-Fi file explorer is my method of choice.
Sent from my XT907 using XDA Free mobile app
Click to expand...
Click to collapse
I used to use that on my old phone but forgot about it. I'll have to give it another go. Thanks for the reminder.

Can we mount internal storage within a custom Recovery?

When I'm in TeamWin or Clockwork I cannot find a way to mount the internal storage (the 8GB or 16GB) of the Nexus 4 so I can copy files onto it from my PC.
Have been able to do this with my past two phones, One X and the HTC Desire (usually an option called Mount USB storage).
Can anyone do this, or is there some sort of limitation right now on the Nexus 4? I'm using Windows 8 which has given me headaches installing drivers, but fastboot works fine at the moment.
Bump as I reworded my question to something completely different than it was before :good:
No you cannot. You can push or pull files with adb though.
Sent from my Nexus 7 using xda premium
El Daddy said:
No you cannot. You can push or pull files with adb though.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Thanks so much, I've been tearing my hair out for hours installing/reinstalling drivers on Windows 8.
Is this something to do with the Nexus 4 not supporting OTG? As the One X has internal storage (32GB) and I was able to mount it through USB okay.
Audioboxer said:
Thanks so much, I've been tearing my hair out for hours installing/reinstalling drivers on Windows 8.
Is this something to do with the Nexus 4 not supporting OTG? As the One X has internal storage (32GB) and I was able to mount it through USB okay.
Click to expand...
Click to collapse
Its because the nexus 4 and previously galaxy nexus don't use UMS. They use MTP.
Sent from my Nexus 7 using xda premium
El Daddy said:
Its because the nexus 4 and previously galaxy nexus don't use UMS. They use MTP.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Thanks again for the explanations.
If I ever somehow bork my OS installation and require to get a new zip file to the internal storage for flashing I'd just use adb to push? Not that familiar with adb, but now is the time to learn all the commands :good:
Audioboxer said:
Thanks again for the explanations.
If I ever somehow bork my OS installation and require to get a new zip file to the internal storage for flashing I'd just use adb to push? Not that familiar with adb, but now is the time to learn all the commands :good:
Click to expand...
Click to collapse
Yep. Look up efrants 101 guide in the general stickies. It has a ton of good info!
Sent from my Nexus 7 using xda premium
Well this blows.... So is there ANY way to use USB Mass Storage with the Nexus 4?
MTP SUCKS!!!!!!!!!!!!!!!!!!!!
Moborobo works for me with it's own "file manager".
DroidBois said:
Well this blows.... So is there ANY way to use USB Mass Storage with the Nexus 4?
MTP SUCKS!!!!!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
nwtspam said:
Moborobo works for me with it's own "file manager".
Click to expand...
Click to collapse
Thanks, looks good I'll check it out.
Is there any other way to enable USB Mass Storage though? Particularly from Recovery?
MTP has to be the worst mistake every made in the telco industry, it really is a steaming heap of technological junk. They don't even bother to market it as a 'feature' - it's clearly just a way to exact control over the device by the manufacturer in some way.
No it is not possible. Unlike older devices the /sdcard partition on the nexus 4 is formatted as ext4.
This brings numerous advantages when accessing it within the android environment.
In android it is mounted as a fuse which makes it even harder.
In recovery it is mounted as ext4 which means it technically is possible to Mount as a mass storage device. But you would only be able to access it from a Linux or Mac box as windows cannot access an ext filesystem.
Sent from my Nexus 4 using xda app-developers app
EXT4 is totally fine, it's possibly one of the best file systems out there so I have no issue with that. I run both Linux Mint and Windows 8 and there are even Windows tools to at least READ EXT4 file systems.
So it IS possible to circumvent this MTP garbage then? I've formatted USB sticks and drives with EXT4 before and they mount perfectly fine in Linux and can even read them in Windows fine with the right open source drivers / utilities.

[Q] MTP Sucks - Can we get USB MS Back?

MTP is just frigging awful. I've rooted my phone and installed Cyanogen.
Is there any way to get USB Mass Storage back, particularly in Recovery? In any way at all?
No, we don't have a mass storage compatible file system
Michealtbh said:
No, we don't have a mass storage compatible file system
Click to expand...
Click to collapse
I very much wish we did. MTP is absolute garbage.
admiralspeedy said:
I very much wish we did. MTP is absolute garbage.
Click to expand...
Click to collapse
It's BEYOND garbage, no matter what OS I run it on. For example it fails to see recent files in my podcast client DoggCatcher directory so I can export it, so I have to manually upload via DropBox and pull it down from there - WTF??????????? On both my Nexus devices... IT'S CRAP!!!
What on EARTH were Google thinking with this GARBAGE??
So is there NO way around this?? Even on bare metal native Windows 8 with hardly anything else running, it STILL lags and misses files and complains about MP3's every time I try to transfer them...
Did Google provide any explanation for this garbage? And we can't even mount USB from recovery?? So what do we do if we can't boot in to our device and need to copy files across??
Seriously, I'd really like Google to explain this crap.
Just because iCrap devices do stupid stuff doesn't mean we have to??
Could we mount external storage from recovery using this USB OTG thing? Which I've never used BTW so have no idea how it works.
What about if the file system is EXT4 - surely we could mount it in at least Linux?
It's BEYOND garbage, no matter what OS I run it on. For example it fails to see recent files in my podcast client DoggCatcher directory so I can export it, so I have to manually upload via DropBox and pull it down from there - WTF??????????? On both my Nexus devices... IT'S CRAP!!!
What on EARTH were Google thinking with this GARBAGE??
There is no need to mount/unmount with MTP
So is there NO way around this?? Even on bare metal native Windows 8 with hardly anything else running, it STILL lags and misses files and complains about MP3's every time I try to transfer them...
There is no way around this
Did Google provide any explanation for this garbage? And we can't even mount USB from recovery?? So what do we do if we can't boot in to our device and need to copy files across??
Yes they did. (see answer to first question) NO. Push files using ADB
Seriously, I'd really like Google to explain this crap.
They did
Just because iCrap devices do stupid stuff doesn't mean we have to??
Claiming MTP is stupid is subjective
Could we mount external storage from recovery using this USB OTG thing? Which I've never used BTW so have no idea how it works.
USB OTB is not supported on the N4
What about if the file system is EXT4 - surely we could mount it in at least Linux?
No
You could Mount it in Linux.
In android /sdcard is fused so you can't Mount it while booted.
However in recovery (at least twrp) it is mounted as ext4. However you would have to modify twrp sources and compile a version that will physically Mount the partition so you could then access it in only Linux and only in recovery
Sent from my Nexus 4 using xda app-developers app
I use several Linux distros and have no problem mounting my N4 while it's on. Just make sure Settings>Developer Options>USB Debbuging is unchecked and it should work like a charm. The same may work for Windows but I don't know.
Sent from my Nexus 4 using xda app-developers app
You are still mounting as mtp in Linux though.
The op is requesting a method to Mount as a storage device rather than the standard media device which is native to the nexus 4
Sent from my Nexus 4 using xda app-developers app
Alex240188 said:
You are still mounting as mtp in Linux though.
The op is requesting a method to Mount as a storage device rather than the standard media device which is native to the nexus 4
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
It's still crap no matter what. For example being unable to see latest files in the DoggCatcher directory is just retarded, when a file manager sees the OPML export fine but I have to export via DropBox, and how it complains about MP3 files and so on.
Big deal about mounting. If that's the only explanation I don't get it. Maybe many people struggled with that I guess, but we don't have MTP on USB drives (yet, I hope it never happens!)
Does MTP mount in Linux Mint ok? Maybe it's just Windows that's annoying and crappy with it and maybe with the right config it works fine in Linux? I'm fine using either, I run both simultaneously but generally prefer Linux because it's faster, simpler, more streamlined and just WORKS without all these annoying 'features' and polite corporate marketing driven notifications every five seconds like I'm some moron that needs to be carefully 'let down' that 'your application MAY have crashed and you MAY have lost SOME of your data' - argh...
ADB push may work in recovery then if I need it... and can you ADB push an entire directory? Say if I have recorded radio streams, can I just pull up ADB in Linux and 'sync' or push the entire directory and be done with it?
DroidBois said:
ADB push may work in recovery then if I need it... and can you ADB push an entire directory? Say if I have recorded radio streams, can I just pull up ADB in Linux and 'sync' or push the entire directory and be done with it?
Click to expand...
Click to collapse
Yes. You can push and pull any directory you'd like.
adb pull /sdcard/xxxx/
Sent from my Nexus 4 using Tapatalk 4 Beta
ADB is ridiculously slow though, only ever saw a peak of 4.5MB/sec on large files.
That is the same as you get through ftp, either USB or WiFi. I only ever get about 4.5mb/s
Sent from my Nexus 4 using xda app-developers app
USB Storage option available again!
I think somewhere in ICS OR JB (I'm on Carbon KitKat) they introduced a method to disconnect your SD card from the phone and mount it as USB storage. A bit convoluted, but it works perfect on my Ubuntu machine allowing for instant-updates and parallel file operations.
That would be wonderful.. I still loathe MTP... Directories and files often don't show.
DroidBois said:
That would be wonderful.. I still loathe MTP... Directories and files often don't show.
Click to expand...
Click to collapse
Ain't never going to happen with fuse
Sent from my SAMSUNG-SGH-I727 using XDA Free mobile app
How do you mount only the SD Card as USB Mass Storage?
YatharthROCK said:
I think somewhere in ICS OR JB (I'm on Carbon KitKat) they introduced a method to disconnect your SD card from the phone and mount it as USB storage. A bit convoluted, but it works perfect on my Ubuntu machine allowing for instant-updates and parallel file operations.
Click to expand...
Click to collapse
Can you share how you managed to mount the SD card as USB storage?
Wow...blast from the past....recovery perhaps? I still hate MTP to this day. It's still unreliable and horrible.

Categories

Resources