Spotify - ADB install no such file or directory found issue - Android Auto General

Hey guys, I'm having some issues trying to install spotify apk through adb. I've installed this before and it installed fine but now I keep getting no such file or directory found. I've run it in elevated PS and my phone is listed under abd devices as well. I'm sure it's probably something simple in the path that I'm overlooking but I can't figure it out. I've tried putting it in different directories in root/subfolders (/card/folder; /phone/downloads; etc.) but it can't find any path I give it.
edit: This is on a tmobile GS8+ , installing it via. local desktop works but of course it doesn't have the vendor flag
Code:
.\adb install C:/filepath/app.apk
is there a way to append the com.android.vending flag to this command?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Why not install it using "adb install" ?
Code:
adb install C:\Local_Path_to_APK\spotify.apk

I mentioned in my post that installing directly from my desktop via. adb install works fine (without vendor flag), what I can't get it to do is recognize the file path to my phone so I can also install it with the vendor flag. The thing is that I've been able to do this before so I'm not sure what happened.

corgin said:
I mentioned in my post that installing directly from my desktop via. adb install works fine (without vendor flag), what I can't get it to do is recognize the file path to my phone so I can also install it with the vendor flag. The thing is that I've been able to do this before so I'm not sure what happened.
Click to expand...
Click to collapse
The error "no such file or directory" means that you aren't using the correct path to your file on the sdcard. Do 'adb shell', and verify your sdcard's mount point with the "mount" or "df -k" command. It's probably mounted at "/sdcard", rather than "/card", regardless of what it shows up as in MTP in Windows.
Best of luck.

Rottgrub said:
The error "no such file or directory" means that you aren't using the correct path to your file on the sdcard. Do 'adb shell', and verify your sdcard's mount point with the "mount" or "df -k" command. It's probably mounted at "/sdcard", rather than "/card", regardless of what it shows up as in MTP in Windows.
Best of luck.
Click to expand...
Click to collapse
Oh, yeah I tried different phrases beforehand (sdcard, storage, card, etc.), Sdcard was the original path that worked before haha. So I tried the commands and I see /data/knox/sdcard (or tmp_sdcard) below. I'm assuming that some sort of recent security patch with knox might be preventing me from actually loading the sdcard? My sdcard is 128GB but the /media_rw path doesn't seem right either. Hmm...
mount:
Code:
rootfs on / type rootfs (ro,seclabel,size=1629824k,nr_inodes=407456)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1700888k,nr_inodes=425222,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,nosuid,relatime,mode=600)
proc on /proc type proc (rw,nosuid,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,nosuid,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,nosuid,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,seclabel,nosuid,relatime)
none on /acct type cgroup (rw,nosuid,relatime,cpuacct)
none on /dev/stune type cgroup (rw,nosuid,relatime,schedtune)
tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,relatime,size=1700888k,nr_inodes=425222,mode=755,gid=1000)
none on /config type configfs (rw,nosuid,relatime)
tmpfs on /mnt/secure type tmpfs (rw,seclabel,nosuid,relatime,size=1700888k,nr_inodes=425222,mode=700)
tmpfs on /mnt/secure/asec type tmpfs (rw,seclabel,nosuid,relatime,size=1700888k,nr_inodes=425222,mode=700)
none on /dev/cpuctl type cgroup (rw,nosuid,relatime,cpu)
none on /dev/cpuset type cgroup (rw,nosuid,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent)
pstore on /sys/fs/pstore type pstore (rw,seclabel,nosuid,relatime)
/dev/block/dm-0 on /system type ext4 (ro,seclabel,relatime)
/dev/block/sda20 on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc)
/dev/block/sda5 on /persist type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc)
/dev/block/sdd7 on /dsp type ext4 (ro,seclabel,nosuid,nodev,relatime,data=ordered)
/dev/block/sda6 on /efs type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc)
/dev/block/sda15 on /firmware type vfat (ro,context=u:object_r:firmware_file:s0,nosuid,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro)
/dev/block/sda16 on /firmware-modem type vfat (ro,context=u:object_r:firmware_file:s0,nosuid,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro)
/dev/block/sda21 on /carrier type ext4 (rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc)
/dev/block/sda22 on /omr type ext4 (rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc)
tmpfs on /storage type tmpfs (rw,seclabel,nosuid,relatime,size=1700888k,nr_inodes=425222,mode=755,gid=1000)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,seclabel,nosuid,relatime)
adb on /dev/usb-ffs/adb type functionfs (rw,nosuid,relatime)
/dev/block/dm-0 on /system/carrier type ext4 (ro,seclabel,nosuid,relatime)
/dev/block/dm-1 on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc)
/data/knox/tmp_sdcard on /mnt/knox type sdcardfs (rw,nosuid,nodev,relatime,mask=0077)
/data/knox/sdcard on /mnt/knox/default/knox-emulated type sdcardfs (rw,nosuid,nodev,relatime,low_uid=1000,low_gid=1000,gid=1015,multi_user,mask=0006)
/data/knox/sdcard on /mnt/knox/read/knox-emulated type sdcardfs (rw,nosuid,nodev,relatime,low_uid=1000,low_gid=1000,gid=9997,multi_user,mask=0027)
/data/knox/sdcard on /mnt/knox/write/knox-emulated type sdcardfs (rw,nosuid,nodev,relatime,low_uid=1000,low_gid=1000,gid=9997,multi_user,mask=0007)
/data/knox/secure_fs/enc_media on /mnt/shell/enc_media type sdcardfs (rw,nosuid,nodev,relatime,low_uid=1000,low_gid=1000,gid=9997,multi_user,reserved=20MB)
/data/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,low_uid=1023,low_gid=1023,gid=1015,multi_user,mask=0006,reserved=20MB)
/data/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,low_uid=1023,low_gid=1023,gid=1015,multi_user,mask=0006,reserved=20MB)
/data/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,low_uid=1023,low_gid=1023,gid=9997,multi_user,mask=0027,reserved=20MB)
/data/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,low_uid=1023,low_gid=1023,gid=9997,multi_user,mask=0007,reserved=20MB)
/data/knox/secure_fs/enc_user on /data/enc_user type ecryptfs (rw,seclabel,nosuid,nodev,relatime,ecryptfs_fnek_sig=b96b381490a68879,ecryptfs_sig=b96b381490a68879,userid=0,sdp_enabled,partition_id=0,ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_enable_cc,ecryptfs_passthrough,base=,label=)
/mnt/shell/enc_media on /mnt/shell/enc_emulated type ecryptfs (rw,seclabel,nosuid,nodev,relatime,ecryptfs_fnek_sig=b96b381490a68879,ecryptfs_sig=b96b381490a68879,userid=0,sdp_enabled,partition_id=1,ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_enable_cc,ecryptfs_passthrough,base=,label=)
/dev/block/vold/public:179,1 on /mnt/media_rw/0000-0000 type sdfat (rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,fs=exfat,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,utf8,namecase=0,adj_req,symlink=0,bps=512,errors=remount-ro)
/dev/block/vold/public:179,1 on /mnt/secure/asec type sdfat (rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,fs=exfat,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,utf8,namecase=0,adj_req,symlink=0,bps=512,errors=remount-ro)
/mnt/media_rw/0000-0000 on /mnt/runtime/default/0000-0000 type sdcardfs (rw,nosuid,nodev,noexec,noatime,low_uid=1023,low_gid=1023,gid=1015,mask=0006)
/mnt/media_rw/0000-0000 on /storage/0000-0000 type sdcardfs (rw,nosuid,nodev,noexec,noatime,low_uid=1023,low_gid=1023,gid=1015,mask=0006)
/mnt/media_rw/0000-0000 on /mnt/runtime/read/0000-0000 type sdcardfs (rw,nosuid,nodev,noexec,noatime,low_uid=1023,low_gid=1023,gid=9997,mask=0022)
/mnt/media_rw/0000-0000 on /mnt/runtime/write/0000-0000 type sdcardfs (rw,nosuid,nodev,noexec,noatime,low_uid=1023,low_gid=1023,gid=9997,mask=0022)
df -k:
Code:
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 1629824 12760 1617064 1% /
tmpfs 1700888 1096 1699792 1% /dev
tmpfs 1700888 0 1700888 0% /mnt
tmpfs 1700888 0 1700888 0% /mnt/secure
/dev/block/dm-0 4578356 4376036 202320 96% /system
/dev/block/sda20 595136 10636 584500 2% /cache
/dev/block/sda5 28144 172 27972 1% /persist
/dev/block/sdd7 12016 4552 7464 38% /dsp
/dev/block/sda6 16048 936 15112 6% /efs
/dev/block/sda15 97232 45328 51904 47% /firmware
/dev/block/sda16 112576 74672 37904 67% /firmware-modem
/dev/block/sda21 41248 8 41240 1% /carrier
/dev/block/sda22 5968 8 5960 1% /omr
tmpfs 1700888 0 1700888 0% /storage
/dev/block/dm-0 4578356 4376036 202320 96% /system/carrier
/dev/block/dm-1 55885696 14479704 41378596 26% /data
/data/knox/tmp_sdcard 55885696 14479704 41378596 26% /mnt/knox
/data/knox/secure_fs/enc_media 55865216 14507100 41358116 26% /mnt/shell/enc_media
/data/media 55865216 14507100 41358116 26% /storage/emulated
/data/knox/secure_fs/enc_user 55885696 14479704 41378596 26% /data/enc_user
/mnt/shell/enc_media 55865216 14507100 41358116 26% /mnt/shell/enc_emulated
/mnt/media_rw/0000-0000 125009920 3599104 121410816 3% /storage/0000-0000

Yeah, looks like your storage is mounted at "/mnt/media_rw/0000-0000", which is interesting. An easy way to check is to just "adb shell" and then "pwd" to show your working directory. You should be in your "sdcard" by default. Otherwise, "cd /mnt/media_rw/0000-0000", and then "ls" to see the files there. If your spotify.apk is there, you know.
Best of luck.

Related

Getting root

Hi!
First post, but I've got a few things nailed down right through searching the forums and various guides and wiki's.
I've managed to install Google ION with firmware v1.5
I've SIM-unlocked the phone, using another carrier works splendid.
The Kernel version i'm using is 2.6.25.00894-g83efb08-dirty
[email protected]
My build number is CRB43
What I'm trying to accomplish here is getting root on the filesystem. I've tried various methods, guides and forum conversation tips but I can't make /system anything else than ro (Read-only).
I have installed Better Terminal from Market.
su and telnetd works perfect, I can connect to the phone using telnet. I'm using telnet to connect to the device, by forwarding ports through ADB.
I have tried using ADB shell to get root as well as telnet.
What I am trying to do is replace my current keymapping from an English one to an edited, åäö-capable one, because it's damn tricky trying to type these characters on the hardware keyboard. I haven't even found a way of typing åäö without replacing the keymap because of very little information about how the keyboard _is_ mapped using Android on the Kaiser.
Please advice wither on how to be able to type åäö characters without having to modify the keymap or give me a heads-up on how I'm supposed to get root on this filesystem, using commands such as;
# mount -o rw,remount /dev/block/mtdblock3 /system
does not give me an error but nothing else is returned either so I can't verify that the command actually executed or did anything to the system. I can however verify that the /system is still ro and still as a cramfs type no matter how I attack this.
Here's my situation on my mounts;
Code:
rootfs on / type rootfs (rw)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-
1,flush)
/dev/block/loop2 on / type ext2 (ro,sync,noatime,nodiratime,errors=continue)
tmpfs on /dev type tmpfs (rw,size=100k)
proc on /proc type proc (rw)
sys on /sys type sysfs (rw)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-
1,flush)
/dev/block/mmcblk0p1 on /cache type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1
,flush)
/dev/block/loop0 on /data type ext2 (rw,sync,noatime,nodiratime,errors=continue)
/dev/block/loop1 on /system type cramfs (ro)
/dev/block/loop0 on /etc type ext2 (rw,sync,noatime,nodiratime,errors=continue)
/dev/block/loop0 on /shared_prefs type ext2 (rw,sync,noatime,nodiratime,errors=continue)
/dev/block/mmcblk0p1 on /tmp type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,f
lush)
/dev/block/loop0 on /system/lib/modules type ext2 (rw,sync,noatime,nodiratime,errors=continue)
/dev/block/mmcblk0p1 on /system/build.prop (deleted) type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp4
37,iocharset=iso8859-1,flush)
/dev/block/loop2 on /system/bin/su type ext2 (ro,sync,noatime,nodiratime,errors=continue)
/dev/block/loop2 on /system/xbin/su type ext2 (ro,sync,noatime,nodiratime,errors=continue)
/dev/block/loop0 on /smodem type ext2 (rw,sync,noatime,nodiratime,errors=continue)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
These are my blocks;
Code:
loop0 loop2 loop4 loop6 mmcblk0 mtdblock0 vold
loop1 loop3 loop5 loop7 mmcblk0p1 ramzswap0

Rooting problem

ok guys ive installed the adb drivers using the fastboot, when I go to superoneclick and root, its gets all the way to the end and say
GG weve got root, restarting ADB for root and then this is the error I get any help would be greatly appreciated,
[+] Rush did it ! It's a GG, man !
[+] Killing ADB and restarting as root... enjoy!
$
export TEMPRANDOM=74614;export PS1=END:$TEMPRANDOM;/data/local/tmp/busybox mount -o rw,remount /system
export PS1=""
$ mount: permission denied (are you root?)
END:74614
export TEMPRANDOM=89789;export PS1=END:$TEMPRANDOM;/data/local/tmp/busybox mount
export PS1=""
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mmcblk3p3 on /system type ext2 (ro,relatime)
/dev/block/mmcblk3p7 on /data type ext3 (rw,relatime,data=writeback)
/dev/block/mmcblk3p4 on /cache type ext3 (rw,nosuid,nodev,relatime,data=writeback)
/dev/block/mmcblk3p5 on /misc type ext3 (rw,nosuid,nodev,relatime,data=writeback)
/dev/block/vold/179:206 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:206 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
END:89789
export TEMPRANDOM=14740;export PS1=END:$TEMPRANDOM;/data/local/tmp/busybox mount -o rw,remount /dev/block/mmcblk3p3 /system
export PS1=""
mount: permission denied (are you root?)
END:14740
export TEMPRANDOM=56526;export PS1=END:$TEMPRANDOM;/data/local/tmp/busybox mount
export PS1=""
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mmcblk3p3 on /system type ext2 (ro,relatime)
/dev/block/mmcblk3p7 on /data type ext3 (rw,relatime,data=writeback)
/dev/block/mmcblk3p4 on /cache type ext3 (rw,nosuid,nodev,relatime,data=writeback)
/dev/block/mmcblk3p5 on /misc type ext3 (rw,nosuid,nodev,relatime,data=writeback)
/dev/block/vold/179:206 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:206 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
END:56526
export TEMPRANDOM=24459;export PS1=END:$TEMPRANDOM;mount -o rw,remount /dev/block/mmcblk3p3 /system
export PS1=""
mount: Operation not permitted
END:24459

[Q] Internal SD card doesn't mount on boot.

Hello everyone,
I am using CM10.1 on my Samsung Galaxy S i9000. I have a strange problem since I swithed to CM10 about a month ago. If I boot to revocery I can reach, read and write to all partitions including sdcard and internalsd (and data, system etc.) However, If I boot to normal system, the boot screen SGS/Cyanogen mod image lasts on the screen for too long and then system stats.
When system starts, I end up with external sd mounted but not internal sd. If I connect my phone to a computer at this time, computer only sees external sd card, and says "insert disk" when I click internal sd from Explorer. However, when I removed by sdcard from computer, my phone says "preparing sd card" and than mounts internal sd. Now, external sd is unmounted magically. This time I can use internal sd (read, write everything) but external sd card is not mounted. If I go to System -> Storage to mount external sd card, "Insert sdcard to mount" appears, and it can't be mountable.
I also ran mount command before connecting to PC (when external sd was mounted) and after disconnected from PC (this time internal sd was mounted) These are the outputs:
before connecting to pc
Code:
[email protected]:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock3 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock5 /radio yaffs2 rw,relatime 0 0
/dev/block/mtdblock2 /datadata yaffs2 rw,relatime 0 0
/dev/lvpool/system /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/lvpool/userdata /data ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/block/mtdblock4 /efs yaffs2 rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/dm-2 /mnt/asec/com.keramidas.TitaniumBackupPro-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-3 /mnt/asec/com.chartcross.gpstestplus-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-4 /mnt/asec/kr.aboy.tools-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-5 /mnt/asec/dk.logisoft.aircontrolfull-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-6 /mnt/asec/radiotime.player-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-7 /mnt/asec/com.qo.android.am3-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/vold/179:25 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
last lines differ
after connecting to pc
Code:
[email protected]:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock3 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock5 /radio yaffs2 rw,relatime 0 0
/dev/block/mtdblock2 /datadata yaffs2 rw,relatime 0 0
/dev/lvpool/system /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/lvpool/userdata /data ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/block/mtdblock4 /efs yaffs2 rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/dm-2 /mnt/asec/com.keramidas.TitaniumBackupPro-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-3 /mnt/asec/com.chartcross.gpstestplus-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-4 /mnt/asec/kr.aboy.tools-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-5 /mnt/asec/dk.logisoft.aircontrolfull-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-6 /mnt/asec/radiotime.player-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/dm-7 /mnt/asec/com.qo.android.am3-2 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
/dev/block/vold/179:1 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /storage/sdcard0/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
How can I fix this? Btw, I can't report this to CM10.1 page because my post count is too low.
If I could'nt write and read to internalsdcard properly on recovery or after disconnecting to pc I'd thought that it was broken on hardware level but this seems like a software issue to me? What do you think?
By using which shell command, I can try to manually mount my internal sdcard, after the phone booted?
If I run these commands manually after turning on my phone, I can mount my internal sd card to /storage/sdcard successfully. However, I can't mount sdcard to multiple locations (such as mnt/sdcard and /sdcard) so programs don't run properly.
Code:
mount -t vfat /dev/block/mmcblk0p1 /storage/sdcard0;
setprop EXTERNAL_STORAGE_STATE mounted;
am broadcast -a android.intent.action.MEDIA_MOUNTED --ez read-only false -d file:///storage/sdcard0;
However if I try to mount vold/179:0 i get the following error:
Code:
[email protected]:/ # mount -t vfat /dev/block/vold/179\:0 /storage/sdcard0;
mount: Device or resource busy
Any thoughts?
What is vold and what is the difference between mounting
/dev/block/vold/179:0 and /dev/block/mmcblk0p1 ?
If both points to internal storage, why can't I mount one, but do mount another?
Well, I found out the real reason after tremendeous testing.I have a 32GB sdcard inserted. If I have lots of music and files on that card, phone doesn't mount internal sd on boot. (don't know the reason) But if I delete the musics and empty the external sd card, then internal sd mounts properly.
Really no iade how they effect each other but this is the case.
gergefil said:
Well, I found out the real reason after tremendeous testing.I have a 32GB sdcard inserted. If I have lots of music and files on that card, phone doesn't mount internal sd on boot. (don't know the reason) But if I delete the musics and empty the external sd card, then internal sd mounts properly.
Really no iade how they effect each other but this is the case.
Click to expand...
Click to collapse
Probably, problem is "clockworkmod" folder into external SD card!
When you make backup, you must choise "tar format" instead "dup format"!!
almost there
Man!
That´s exactly my case!! SGS Vibrant T959, with CyanogenMod v10.1.2. I noticed that I was not accessing the internal sdcard. I tried to plug in the computer and enable the usb mass storage but it wouldn´t mount the internal sdcard. Then I rebooted in recovery mode (CWM recovery) and went to mount & storage -> mount sdcard. Rebooted and nothing. Went back to CWM recovery, mounted sdcard, and to browser it I went to 'install zip' just to see. I was able to see my old files.
Then I googled it and found this!
Thank you very much for your hint!
Funny thing is, this happened just after I installed this version (10.1.2). I was using v10.0 and it was just all fine (with 32 Gb external sdcard).
1) I removed it, and boot and there was my internal sdcard with all my files and backups!! ooohoooo
2) plugged my 32 gb sdcard back and it mounted .
3) reboot
4) and my internal SDcard was not mounted again .
So for now, everytime I boot I have to remove my 32gb external sdcard first, and plug it again after boot is finished.
Does anyone know how to def fix it ?!
Thanks!
gergefil said:
Well, I found out the real reason after tremendeous testing.I have a 32GB sdcard inserted. If I have lots of music and files on that card, phone doesn't mount internal sd on boot. (don't know the reason) But if I delete the musics and empty the external sd card, then internal sd mounts properly.
Really no iade how they effect each other but this is the case.
Click to expand...
Click to collapse
portisheadbr said:
Does anyone know how to def fix it ?! Thanks!
Click to expand...
Click to collapse
just a thought, Android might have issues when the SD card is not formatted using Android. Its advisable to format Sd cards in a PC and after that again in your Android Phone.
Not sure , if this would solve your problem, but worth a try, if its not too difficult to do.
Check this out!You , YES! you are an " Android ". Not your phone but U.
You Must watch this documentary concerning your privacy Terms & Conditions we had agreed to, by using a PC or Smartphone
How to say Thank you? If you find any post helpful on XDA, please click on the Thanks button
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you are using XDA App or Tapatalk, long press on the post and select :good: Thanks Its easier to give "Feedback" in this manner than make an additional post.​

Q:Sdcard didn't mounted to read write

Hello all,this is my serious problem i think my sdcard have big problem i can only copies file and not allowed delete,format,download etc...
And then when i opened folder in root system not sdcard dev/block/vold/179:1 force close <<< i'm using root explorer then command on terminal and this is description i get:
$ export PATH=/data/local/bin:$PATH
$su
# dev/block/vold/179:1
dev/block/vold/179:1: permission denied
# dev/block/vold/179:1 rw
dev/block/vold/179:1: permission denied
# mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /mnt/asec type tmpfs (rw,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,mode=755,gid=1000)
/dev/block/mtdblock0 on /system type yaffs2 (rw)
/dev/block/mtdblock2 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock1 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock2 on /cache/download type yaffs2 (rw,nosuid,nodev)
>>> (Read only) /dev/block/vold/179:1 on /mnt/sdcard type vfat (ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
>>> (Read only) /dev/block/vold/179:1 on /mnt/secure/asec type vfat (ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,size=0k,mode=000)
#
You can see it's always (permission denied) and you can see down there it's ro type not rw...
Okay master can you fix this sdcard? thank you.
I'm really confusing with this sdcard
....:banghead::banghead:
Sent from my E15i using Tapatalk 2
Please someone help this is confusing
Also why i inserting into tablet can confirm change write disk to read write and ok i changed but nothing works:banghead::banghead::banghead::banghead:
Sent from my E15i using Tapatalk 2
This is very strict read only sigh....
And i'm using another sdcard on my E15i
Sent from my E15i using Tapatalk 2

Here's a probably dummy device tree!

Hey guys, since there is nothing for this phone yet, I decided to try to make a device tree, in order to build a recovery. The result is here .
As it's written in the repository, I started from scratch using this tutorial, and taking what I could from this stock ROM .
Unfortunately, after that I unexpectedly lock the bootloader using the MiFlash tool, the official MiUnlock asks me to wait 160 hours before unlocking the bootloader again(I don't know why, but this thing happened three times!), so at the moment, if I tried to build a TWRP recovery, I wouldn't be able to flash it and try it on the phone. I'll simply wait for this.
In the meanwhile, I thought about sharing it to let you suggest me any recommendation or similar, since I have a lot of doubts about what I've done. Here's why:
- In the 5th step, the tutorial says to move "factory_init.*.rc files, meta_init.*.rc files, ueventd.mt****.rc, init.recovery.mt****.rc" files into the root folder. Unfortunately, inside the unpacked recovery.img that I used I couldn't find these files. Therefore, I put the files that are still there, hoping that they're the correct ones.
- Still in the 5th step, I completely skipped the writing of the permissive.sh file, because I didn't know what to write. The file is there, but it's empty.
- From the 6th step, the tutorial starts to mention the values BRAND and MANUFACTURER. They should respectively be Redmi and Xiaomi. Hopefully, I didn't get any of these wrong.
- In the 8th step, the tutorial shows how to write the BoardConfig.mk file. I have got several doubts about that file, you can search for these comments inside the file itself: "I have no idea about this" and "I believe the zImage file is wrong". In particular, my doubt about the zImage stems from the fact that, in the 5th step, the tutorial says to put the "recovery.img-kernel" file inside the prebuilt folder. Unfortunately, I was not able to find this file inside the recovery.img, but I found the "recovery.img-kernel_offset" file, and I put that one, hoping that it's the correct one. Nonetheless, I've read here on the forum that the kernel has not been released yet by Xiaomi.
- In the 9th step, the tutorial shows how to write the omni_merlin.mk(in this case) file. I got some doubt about the last values, you can search for this comment inside the file itself: "I'm not totally sure about these last values".
These are all my doubts about this device tree, hopefully you'll be able to help me! Please let me know, and thank you!
P.S. It's my first time doing something like this, and, more important, using Git. I hope I didn't do anything wrong!
Ok, now I'm completely stuck. I managed to extract from the boot.img what I think is the kernel image, it's now in prebuilt/zImage. But I got a problem with the recovery.fstab I should write. The problem is that I cannot find /system mounted. Could it be that the problem is that Magisk is installed and it messes up something? Please help me. Could it be that the mount address is /dev/block/dm-1/system?
Code:
[email protected]:~$ adb shell
merlinnfc:/ $ su
merlinnfc:/ # mount -o ro,remount /
merlinnfc:/ # mount -o ro,remount /system
mount: '/system' not in /proc/mounts
1|merlinnfc:/ # mount -o ro,mount /system
mount: bad /etc/fstab: No such file or directory
1|merlinnfc:/ # mount
/dev/block/dm-1 on / type ext4 (ro,seclabel,relatime)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1921708k,nr_inodes=480427,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600,ptmxmode=000)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /mnt type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=1921708k,nr_inodes=480427,mode=755,gid=1000)
tmpfs on /apex type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=1921708k,nr_inodes=480427,mode=755)
/dev/block/mmcblk0p9 on /metadata type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,data=ordered)
/dev/block/dm-2 on /vendor type ext4 (ro,seclabel,relatime)
/dev/block/dm-0 on /product type ext4 (ro,seclabel,relatime)
tmpfs on /sbin type tmpfs (rw,seclabel,relatime,size=1921708k,nr_inodes=480427,mode=755)
/sbin/.magisk/block/persist on /sbin/.magisk/mirror/persist type ext4 (rw,seclabel,relatime,data=ordered)
/sbin/.magisk/block/system_root on /sbin/.magisk/mirror/system_root type ext4 (ro,seclabel,relatime)
/sbin/.magisk/block/system_root on /sbin/setlockstate type ext4 (ro,seclabel,relatime)
none on /dev/cg2_bpf type cgroup2 (rw,nosuid,nodev,noexec,relatime)
none on /dev/cpuctl type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
none on /acct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
none on /dev/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent)
none on /dev/memcg type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
none on /dev/stune type cgroup (rw,nosuid,nodev,noexec,relatime,schedtune)
debugfs on /sys/kernel/debug type debugfs (rw,seclabel,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,seclabel,relatime)
none on /config type configfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)
pstore on /sys/fs/pstore type pstore (rw,seclabel,nosuid,nodev,noexec,relatime)
none on /sys/fs/cgroup type tmpfs (rw,seclabel,relatime,size=1921708k,nr_inodes=480427,mode=750,gid=1000)
none on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
none on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
/dev/block/mmcblk0p46 on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,resuid=10010,resgid=1065,errors=panic,data=ordered)
/dev/block/mmcblk0p45 on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
/dev/block/mmcblk0p15 on /mnt/vendor/protect_f type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p16 on /mnt/vendor/protect_s type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p12 on /mnt/vendor/nvdata type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
/dev/block/mmcblk0p11 on /mnt/vendor/nvcfg type ext4 (rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered)
/dev/block/mmcblk0p13 on /mnt/vendor/persist type ext4 (rw,seclabel,nosuid,nodev,noatime,data=ordered)
/dev/block/mmcblk0p41 on /cust type ext4 (ro,seclabel,nosuid,nodev,noatime,data=ordered)
tmpfs on /storage type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=1921708k,nr_inodes=480427,mode=755,gid=1000)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/block/loop2 on /apex/[email protected] type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop2 on /apex/com.android.tzdata type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop3 on /apex/[email protected] type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop3 on /apex/com.android.media type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop4 on /apex/[email protected] type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop4 on /apex/com.android.resolv type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop5 on /apex/[email protected] type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop5 on /apex/com.android.conscrypt type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop6 on /apex/[email protected] type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop6 on /apex/com.android.runtime type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop7 on /apex/[email protected] type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop7 on /apex/com.android.apex.cts.shim type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop8 on /apex/[email protected] type ext4 (ro,dirsync,seclabel,nodev,noatime)
/dev/block/loop8 on /apex/com.android.media.swcodec type ext4 (ro,dirsync,seclabel,nodev,noatime)
/sbin/.magisk/block/vendor on /sbin/.magisk/mirror/vendor type ext4 (ro,seclabel,relatime)
/sbin/.magisk/block/product on /sbin/.magisk/mirror/product type ext4 (ro,seclabel,relatime)
/sbin/.magisk/block/data on /sbin/.magisk/mirror/data type ext4 (rw,seclabel,relatime,noauto_da_alloc,resuid=10010,resgid=1065,errors=panic,data=ordered)
/sbin/.magisk/block/data on /sbin/.magisk/modules type ext4 (rw,seclabel,relatime,noauto_da_alloc,resuid=10010,resgid=1065,errors=panic,data=ordered)
/data/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/data/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)
/data/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid,default_normal)
/data/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal)
/data/media on /mnt/runtime/full/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal)
/dev/block/vold/public:179,129 on /mnt/media_rw/A246-600F type exfat (rw,dirsync,nosuid,nodev,noexec,noatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,iocharset=utf8,namecase=0,errors=remount-ro)
/mnt/media_rw/A246-600F on /mnt/runtime/default/A246-600F type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,mask=6)
/mnt/media_rw/A246-600F on /storage/A246-600F type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,mask=6)
/mnt/media_rw/A246-600F on /mnt/runtime/read/A246-600F type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18)
/mnt/media_rw/A246-600F on /mnt/runtime/write/A246-600F type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18)
/mnt/media_rw/A246-600F on /mnt/runtime/full/A246-600F type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=7)

Categories

Resources