Related
I recently flashed my stock B&N Nook HD+ with CM 10.2. I am ultimately trying to use the Nook HD+ to transfer photos from a CF flash card, in a usb reader to a 500gb USB HD. I have the usb devices plugged into a powered hub. I have tried numerous apps to get these two devices to mount at the same time. I have spent most of my time with Chainfire stickmount.
Some things that I have seen:
When the devices are plugged in, they are recognized as uba1 and ubc1. This differs from the many references to sda1, etc. I've seen in web searches. If they are unplugged and re-inserted, these value change. That makes manually mounting them rather inconvenient. I have successfully manually mounted these devices.
When inserted, stickmount, prompts me, and says "searching", but never lists any mounts. If I make directories in /sdcard/usbstorage, those paths are displayed as active mounts instead of the "searching" display. But nothing is really in them. From this, I'm assuming that Stickmount is supposed to create these directories.
I attempted to make entries in fstab.ovation, similar to usb0. But after re-boot, the file reverts to the original condition. I guess that I don't understand the boot sequence well.
Has anyone had any success mounting several USB mass storage devices to the Nook HD+ and CM 10.2? If so, how?
Well, your almost there... just jump over to here -> http://forum.xda-developers.com/showthread.php?t=2307585 and have fun with usb devices.
There's an app there in the first post.
Mounting multiple USB mass storage devices
sandsofmyst said:
Well, your almost there... just jump over to here -> http://forum.xda-developers.com/showthread.php?t=2307585 and have fun with usb devices.
There's an app there in the first post.
Click to expand...
Click to collapse
If you are referring to the USBSwitch app, I have tried that. It appears to only mount one USB mass storage device on /storage/usb0. But I already have to use it to turn on the OTG USB host function, anyway. I see the related entry in fstab.ovation that makes that work. As I mentioned before, I think adding a similar line in that file using, say usb1, would work. But as I mentioned, I can't get my edits of that file to stick.
marklieber1 said:
If you are referring to the USBSwitch app, I have tried that. It appears to only mount one USB mass storage device on /storage/usb0. But I already have to use it to turn on the OTG USB host function, anyway. I see the related entry in fstab.ovation that makes that work. As I mentioned before, I think adding a similar line in that file using, say usb1, would work. But as I mentioned, I can't get my edits of that file to stick.
Click to expand...
Click to collapse
You will never get an edit of that file to stick. That file is part of the boot initiation sequence that is permanently embedded in the boot files.
Sent from my SCH-i705 using Tapatalk
Alternative to editing the fstab file to mount devices
leapinlar said:
You will never get an edit of that file to stick. That file is part of the boot initiation sequence that is permanently embedded in the boot files.
Sent from my SCH-i705 using Tapatalk
Click to expand...
Click to collapse
That's what I suspected. Is it possible to add a file to the init.d folder to perform mounting tasks? Or will that file be wiped on re-boot too?
Thanks for confirming my suspicions about fstab and the boot sequence.
marklieber1 said:
That's what I suspected. Is it possible to add a file to the init.d folder to perform mounting tasks? Or will that file be wiped on re-boot too?
Thanks for confirming my suspicions about fstab and the boot sequence.
Click to expand...
Click to collapse
Yes, it is possible to add mounting commands to the init.d folder and they stick (at least until you flash a new ROM). But for how to write those commands you are on your own.
Sent from my BN NookHD+ using XDA Premium HD app
Mount commands in init.d files
leapinlar said:
Yes, it is possible to add mounting commands to the init.d folder and they stick (at least until you flash a new ROM). But for how to write those commands you are on your own.
Sent from my BN NookHD+ using XDA Premium HD app
Click to expand...
Click to collapse
Thanks for that confirmation. I think that I can handle the simple commands that I need.
marklieber1 said:
When the devices are plugged in, they are recognized as uba1 and ubc1. This differs from the many references to sda1, etc. I've seen in web searches. If they are unplugged and re-inserted, these value change. That makes manually mounting them rather inconvenient. I have successfully manually mounted these devices.
Click to expand...
Click to collapse
The ub driver is obsolete and not present in recent Linux kernels. You should blacklist it and use usb-storage instead. If you can't blacklist ub, you can get the same effect by writing "usb-storage" to /sys/module/libusual/parameters/bias.
Blacklisting the ub driver
Delta^1_1 said:
The ub driver is obsolete and not present in recent Linux kernels. You should blacklist it and use usb-storage instead. If you can't blacklist ub, you can get the same effect by writing "usb-storage" to /sys/module/libusual/parameters/bias.
Click to expand...
Click to collapse
I am not familiar with the procedure to blacklist a driver. Any searches that I've done on this procedure reference folders/files that I don't see on my device. I also don't see a libusual directory on my device within /sys/module. I DO see a few USB related directories such as usb_storage, usb_wwan, usbcore, usbhid, and usbserial. Or do you mean that I need to create this path, /sys/module/libusual/parameters, and a file, "bias", with line containing "usb-storage"?
I was wondering if it is possible to transfer files from my Z1 to a linux desktop without installing any softwares?
Currently I think I am unable to do so because the option of USB Connection Mode is greyed out, rendering me unable to do anything about it unless I install the software (as depicted here)
And thus, are there any 3rd party apps that I can install or tweak some settings in my phone so that I can transfer files?
Salik89 said:
I was wondering if it is possible to transfer files from my Z1 to a linux desktop without installing any softwares?
Currently I think I am unable to do so because the option of USB Connection Mode is greyed out, rendering me unable to do anything about it unless I install the software (as depicted here)
And thus, are there any 3rd party apps that I can install or tweak some settings in my phone so that I can transfer files?
Click to expand...
Click to collapse
Most devices nowadays (if not all of them) use MTP to transfer files from and to the device. MTP is not well supported under Linux as far as I'm aware, there are a couple of guides out there to get it working, you shouldn't have too many issues finding those by using Google.
Personally I prefer to use ADB to transfer files between my device and my desktop, you'll have to have some experience working with the terminal, it's not hard though.
As title says. Also when I connect to USB into my windows computer the N6
icon appears, when I click on it its blank, no files! I tried to copy my pics and it
says devise cannot accept!
Seems my storage partition is somehow lost. I tried to reflash 2x, same result.
Can anyone guide me on what to do.
CC
cc999 said:
As title says. Also when I connect to USB into my windows computer the N6
icon appears, when I click on it its blank, no files! I tried to copy my pics and it
says devise cannot accept!
Seems my storage partition is somehow lost. I tried to reflash 2x, same result.
Can anyone guide me on what to do.
CC
Click to expand...
Click to collapse
Try doing a factory reset from within Android, I hope this helps.
http://forum.xda-developers.com/nexus-6/help/64gb-stuck-23gb-t2970279
Read down a few posts. It worked for me on 5.1.1.
I also have the same problem but with the 32gb version.
I started with a locked unrooted 5.1.1 Nexus 6.
I followed the instructions from Google's file image site.
I unlocked the boot loader.
Then ran the flash all script that failed, so I manually flashed the phone.
Phone rebooted and started up fine.
I attempted to re-lock the boot loader but it failed.
When connected to a windows system the phone shows up on auto play but file explorer shows No files or folders.
Tried a factory wipe still nothing.
worked
knightsh said:
http://forum.xda-developers.com/nexus-6/help/64gb-stuck-23gb-t2970279
Read down a few posts. It worked for me on 5.1.1.
Click to expand...
Click to collapse
That worked! TY
Now my last problem, when I enable USB debugging, plug into computer accept the computer
on the N6 and then I goto transfer my music files etc like I have done a million times before,
The icon appears on the computer when I double click its empty and I cannot
write to it! Any suggestions?
CC
This happened to me. I performed the advice recommended above and this fixed it for me
Edit: Ha. You just beat me.
copy
danieljw said:
This happened to me. I performed the advice recommended above and this fixed it for me
Edit: Ha. You just beat me.
Click to expand...
Click to collapse
Can you copy files to device with usb?
CC
cc999 said:
Can you copy files to device with usb?
CC
Click to expand...
Click to collapse
Yes. The phone defaults to charge-only mode via USB, which prohibits file transfer; this is why the device folder was empty in Windows. Switch to MTP mode via the notification shade and it will appear as it normally does.
In addition, in Developer options, you can configure the default USB mode, so as to prevent this from happening in the future.
or, just move into the 21st century, and use a program like wifi explorer pro, and never have to connect with a usb cable to transfer anything ever again..
wase4711 said:
or, just move into the 21st century, and use a program like wifi explorer pro, and never have to connect with a usb cable to transfer anything ever again..
Click to expand...
Click to collapse
Agreed that apps like this are very convenient. Sometimes still prefer hardwiring for transferring 20-30 GB worth of stuff, even though MTP is a total drag.
danieljw said:
Yes. The phone defaults to charge-only mode via USB, which prohibits file transfer; this is why the device folder was empty in Windows. Switch to MTP mode via the notification shade and it will appear as it normally does.
In addition, in Developer options, you can configure the default USB mode, so as to prevent this from happening in the future.
Click to expand...
Click to collapse
This fixed my Issue. It was set to MTP but I switched it to Charge only then back to MTP and it works now.
Thank you.
with a fast wifi connection, its not really much slower to transfer big stuff as well; although, how often are you transferring 20-30 gigs of stuff???
I think I have used the cable to transfer maybe 3 or 4 times since I got this phone..wireless charging, no cables to transfer files, its time to embrace 2015!
TWRP Resize partition function
Addressing just the problem posed in the title of this thread, if you have TWRP installed, or if you choose to install it after you discover this problem, then you have an option that will preserve your data: use the new "resize partition" function within recovery.
Boot to TWRP (version 2.8.7.1 or higher)
Choose "Wipe" button (do not slide yet!!) then "Advanced Wipe" button.
Select the Data partition, then "Repair or Change File System" button.
Choose the Resize button.
Now you can slide to confirm, and it will expand the partition to it's full potential, without disturbing the data.
danieljw said:
Yes. The phone defaults to charge-only mode via USB, which prohibits file transfer; this is why the device folder was empty in Windows. Switch to MTP mode via the notification shade and it will appear as it normally does.
In addition, in Developer options, you can configure the default USB mode, so as to prevent this from happening in the future.
Click to expand...
Click to collapse
Sorry for OT:
Definitely doesn't work on a rooted Nexus 5. It always jumps back to charge only. Does this work 100% on Nexus 6 devices?
File transfer also doesn't work properly for me (and at least one other person in the NExus 5 Troubleshooting subforums), if you want to move a folder onto the SD card which has a system file and / or subfolders in it, it will most likely fail. There are also a lot of folders not showing in Windows Explorer, so if i.e. I want to move Titanium Backup files to the SD card I just can't place a folder and name it "Titanium Backup" because it won't get recognized. I have to create a dummy folder, place the backup files in there and then move them manually with ES File Explorer to the now visibile real TB folder.
That bothered me so much I did a rollback to Lollipop, hopefully those things get fixed by Google or with an Xposed module (if this is working somewhen).
Hi guys I reaaly need your help!!
1. so basically what happened is my screen is dead but phone is not! i managed to connect the phone to my work pc via usb cable and copied all the data i needed.
2. then somehow the pc hard drive died and i installed a new SSD one but unfortunately i accidentaly deleted a cruical partition on the faulty hdd so all the copied S6 contecnt is now gone.
3. dont ask me how but now, on my new freshly installed OS on my new ssd, i connect the phone again and try to access its folder but nothing is there!
** could i have somehow deleted a samsung partition as well through the windows 10 installation process? (seems unlikely i think).
** could the phone be displaying a question about how i would like to use the usb cable (charging only or data transfer)? if so why would this suddenly happen?
** I tried connecting to another pc but same issuer persists. the driver installs but cannot see files.
** could it possibly work on my home pc because it was previously connected there?
** the icon on the pc is that of a media transfer like an mp3 player. when i access it there are no files but when i right click i dont have an option to add folders so i'm guessing this maybe a permissions issue?
how can I access the files on the phone?! THANKS!!!
just to update i got it all sorted out trying to press randomly on the phone apparently i managed to access the files so what i can understand is that the phone keeps a list of all the pc's its ever been connected to and a setting of which connection type to allow this pc.
As soon as i formatted the pc, the phone recognized it as new and probably asked my if i want charging or data transfer. somehow i managed to chose data transfer!
Thanks a lot anyways and have a great day
Samsung Galaxy S10
Android 10
TWRP
Rooted with Magisk
I just put my phone in ultra power saving mode, but unfortunately i cant unlock the lockscreen because i disabled samsung keyboard and now there is no keyboard where i can type in my password, and since i am in power saving mode it also disabled my other keyboards
So i tried removing the screenlock by deleting the locksetting files in /data/sys/, but since my phone is encrypted i can only see nonsensical filenames, so i dont know which files to delete
Can i safely delete every file there ?
I dont want to factory reset my device because i have a lot of important data on it
I already tried to remove the lock using https://findmymobile.samsung.com/, but it says that that function is disabled on my phone
I have no physical keyboard that i can plugin in into my phone
Remove /Bypass Lockscreen With Recovery
Recently when i restored my data using TWRP i faced a problem at lock screen. I was not able to unlock my phone with the pin i set Earlier..So after so many attempts i was able to find a solution for that problem.(works with pattern,pin etc)...
forum.xda-developers.com
Can i safely delete the other files too ?
Because i dont know which encrypted filenames correlate to the files that i have to delete
EDIT: Thanks, i solved it by connecting a USB Keyboard to my phone using an USB-OTG connector included in the package of my Galaxy S10
If the device supports OTG, you can try connecting a full size PC USB keyboard via OTG.
I went through similar situation when I changed screen render resolution to less than half, then accidentally locked the phone, the keyboard and Screen-Guard were rendered at low resolution, and lock screen was not interactable.
The only way to restore that without prior arrangements was to flash stock Samsung ROM, via PC, with carefully choosing options to not format internal storage and data partitions.
If you have custom recovery, you could enable insecure USB debugging options in build.prop that always allows USB debugging via ADB, then re-install Samsung keyboard, or find some other solution with ADB.
If you have custom/twrp recovery, I'd say connect to PC in recovery mode and copy to PC all important files from /sdcard just in case.
Old Android versions like Android-5 had build.prop files where you could force USB debugging for development uses, that would Allow ADB even the device was locked.
I am not aware if newer Android versions allow that.
Once you get to TWRP, you need to use
Bash:
vi /system/build.prop
Or just
Bash:
echo "text-lines" >> /system/build.prop
To the build.prop file
in command line and enable debugging mode.
The build.prop lines :
Forced USB debugging
Harshiv989 said:
Old Android versions like Android-5 had build.prop files where you could force USB debugging for development uses, that would Allow ADB even the device was locked.
I am not aware if newer Android versions allow that.
Once you get to TWRP, you need to use
Bash:
vi /system/build.prop
Or just
Bash:
echo "text-lines" >> /system/build.prop
To the build.prop file
in command line and enable debugging mode.
Click to expand...
Click to collapse
I cant access /system/ from twrp, it just says that there is not such folder despite it being there, but i think that i have enabled debugging anyways and i already made a backup, which is somehow useless because of the encryption
Harshiv989 said:
If the device supports OTG, you can try connecting a full size PC USB keyboard via OTG.
Click to expand...
Click to collapse
I read in several other threads that in ultra-power-saving mode, android only allows USB devices to charge the phone, and i have no keyboard that i can plug in anyways, i cant buy one because everything is locked down (COVID)
The only way to restore that without prior arrangements was to flash stock Samsung ROM, via PC, with carefully choosing options to not format internal storage and data partitions.
Click to expand...
Click to collapse
As far as i know i cant just flash stock firmware without having to wipe my data
If you have custom recovery, you could enable insecure USB debugging options in build.prop that always allows USB debugging via ADB, then re-install Samsung keyboard, or find some other solution with ADB.
Click to expand...
Click to collapse
How could i reinstall samsung keyboard ? I have no access to the pm command in the twrp shell, and the files are encrypted anyways
Another related thing: https://forum.xda-developers.com/t/...-galaxy-s10-e-5g-exynos.4180287/post-84456927
I see that with combination of FBE, UPSM and disabled Samsung keyboard, you have put yourself in far more idiotically constrained situation than I had, as well as what Samsung devs imagined was possible.
With encrypted file system, you wouldn't even be able to flash an update.zip that includes a build.prop (from your stock ROM)with forced ADB enable-ment lines from recovery I guess. ( this is different than doing it from developer options, allows adb access without unlocking device )
I would still suggest you to charge your phone 100% and attempt a HW external keyboard method,
I am willing to bet Samsung was not stupid enough to block USB I/O devices at kernel level in UPSM.
You don't necessarily need to buy a new keyboard, just find one that connects to PCs via USB, wire or wireless dongle, either should work (no RGB/W backlights in keyboard if wired, we want a low powered keyboard, smaller if possible), from any other computer geek you know, and an OTG connector.
I have always been able to flash the stock ROM that only rewrites /system partition, and leave /data mostly untouched, have done it numerous times with odin, with new devices, you should be able to do that.
The device encryption is a hurdle which severely limits your options.
Also, my UPSM allows both wifi, and Bluetooth, if you had either of them ON, you could use a Bluetooth keyboard or debugging via wifi, if Bluetooth keyboard was previously paired(it auto connects), or wifi debug feature was set up already , ADB access might be possible, though wifi ADB is more secure, unlikely to work in locked screen guard state.
funny the most command and most upvoted answer for this issue on the internet for the average joe (not xda) is to reset the mobile.. disgusting reallly.. i also cannot imagine do the massive reconfiguration for this trivial issue. just had the gboard disappear and took a really short time to plug PC keyboard and an adapter i always have with me.
plug and play to the rescue...