Montage carte SD
Partition android_expand
Système et matériels / Autres matériels et périphériques

Papoteur Membre non connecté
-
- Voir le profil du membre Papoteur
- Inscrit le : 03/10/2011
- Groupes :
-
Modérateur
-
Équipe Mageia
-
Administrateur
-
Forgeron
Reprise du message précédent
Bonjour,Une fois le téléphone démarré avec la carte SD dessus, ne serait-elle pas simplement accessible depuis le cable USB, via mtp ?
Yves

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Voici un résumé de mes pérégrination sur le sujet.
Je remercie grandement jybz pour le super coup de main qu'il m'a donné et à tous d'ailleurs.
A priori la carte est chiffrée avec une clé contenue dans le téléphone, les logiciels photorec et testdisk étaient de bonnes idées mais pas la bonne solution
La carte SD et le téléphone sont accessible via adb en mode recovery avec TWRP
Après plusieurs essais avec la commande adb shell, j'arrive à explorer la carte SD.
J'ai essayé la commande adb pull pour copier des fichiers et reertoire sur le disque et il semblerait que le répertoire correspondant à la carte SD soit vide...

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Qu'as tu dans /storage/emulated/ ?
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
et dans /mnt/expand ?
dans /mnt/sdcard ?
/mnt/user
etc
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Je continu de chercher mais voici ce que j'ai sur le téléphone, vous verrez que beaucoup de répertoires ne contiennent rien ou à priori rien de lisible avec twrp:
Code BASH :
adb shell ls -l drwxr-xr-x 2 root root 0 Jan 1 1970 acct drwxr-xr-x 2 root root 0 Jan 5 1970 boot lrwxrwxrwx 1 root root 50 Jan 1 1970 bugreports -> /data/user_de/0/com.android.shell/files/bugreports drwxrwx--- 6 system cache 4096 Jan 5 1970 cache lrwxrwxrwx 1 root root 13 Jan 1 1970 charger -> /sbin/healthd dr-x------ 2 root root 0 Jan 1 1970 config lrwxrwxrwx 1 root root 17 Jan 1 1970 d -> /sys/kernel/debug drwxrwx--x 49 system system 4096 Jan 1 2000 data -rw-r--r-- 1 root root 2521 Jan 1 1970 default.prop drwxr-xr-x 10 root root 3720 Jan 5 1970 dev drwxr-xr-x 2 root root 0 Sep 28 2018 etc drwxrwxrwx 2 root root 0 Jan 5 1970 external_sd -rw-r--r-- 1 root root 19360 Jan 1 1970 file_contexts -rw-r--r-- 1 root root 76072 Jan 1 1970 file_contexts.bin drwxrwx--x 2 system system 0 Jan 5 1970 firmware drwxrwxrwx 2 root root 0 Sep 28 2018 idd -rwxr-x--- 1 root root 1303720 Jan 1 1970 init -rwxr-x--- 1 root root 3029 Jan 1 1970 init.rc -rwxr-x--- 1 root root 105 Jan 1 1970 init.recovery.hlthchrg.rc -rwxr-x--- 1 root root 1774 Jan 1 1970 init.recovery.qcom.rc -rwxr-x--- 1 root root 320 Jan 1 1970 init.recovery.service.rc -rwxr-x--- 1 root root 30 Jan 1 1970 init.recovery.suzuran.rc -rwxr-x--- 1 root root 1323 Jan 1 1970 init.recovery.usb.rc drwxr-xr-x 3 root root 0 Jan 1 1970 license drwxrwxrwx 2 root root 0 Sep 28 2018 lta-label drwxr-xr-x 2 root root 0 Jan 1 1970 mnt drwxr-xr-x 2 root root 0 Jan 1 1970 oem drwxrwx--x 2 system system 0 Jan 5 1970 persist dr-xr-xr-x 353 root root 0 Jan 1 1970 proc -rw-r--r-- 1 root root 4783 Jan 1 1970 property_contexts drwxrwxrwx 2 root root 0 Jan 5 1970 rca drwxr-xr-x 2 root root 0 Jan 5 1970 recovery drwxr-xr-x 3 root root 0 Jan 1 1970 res drwx------ 2 root root 0 Feb 21 2018 root drwxr-x--- 2 root root 0 Jul 1 00:08 sbin drwxrwx--- 3 media_rw media_rw 4096 Sep 9 2018 sdcard -rw-r--r-- 1 root root 869 Jan 1 1970 seapp_contexts -rw-r--r-- 1 root root 73 Jan 1 1970 selinux_version -rw-r--r-- 1 root root 181740 Jan 1 1970 sepolicy -rw-r--r-- 1 root root 11362 Jan 1 1970 service_contexts drwxr-xr-x 2 root root 0 Jan 5 1970 sideload drwxr-x--x 2 root root 0 Jan 1 1970 storage dr-xr-xr-x 13 root root 0 Jan 5 1970 sys drwxr-xr-x 4 root root 0 Jan 1 1970 system drwxrwxr-x 2 root shell 80 Jul 1 00:08 tmp drwxr-xr-x 5 root root 0 Jan 1 1970 twres -rw-r--r-- 1 root root 15516 Jan 1 1970 ueventd.qcom.rc -rw-r--r-- 1 root root 4853 Jan 1 1970 ueventd.rc -rw-r--r-- 1 root root 24 Jan 1 1970 ueventd.suzuran.rc drwxrwxrwx 2 root root 0 Jan 5 1970 usb-otg
Je vais essayer les repertoires conseillé par jybz

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Code BASH :
adb shell ls -lR /storage/ | tee -a ~/resultat-ls adb shell find . /storage/ | tee -a ~/resultat-find adb shell du /storage/ | tee -a ~/resultat-du
J'espère que le pipe sera pour mageia et non pour android ! Car j'espère que le résultat des commandes se trouve dans ton dossier personnel.
Édité par Jybz Le 28/08/2019 à 15h14
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
nic80 :
( en fait je n' en sais rien et je ne peux pas tester, mais...) ?
MERCI (pour tout autre chose, fan inconditionnel de shell, je suis intéressé !)
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
resultat-du.txt
resultat-ls.txt
resultat-find.tar.xz
Le dernier fichier est trop gros j'ai du le compresser.
nico80 si je comprends bien avec les "()" j'aurais pu grouper les 3 commandes?

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Pourrais-tu taper la commande que @fatuus à proposer ?
mount -l
?
ou juste
mount
?
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Code BASH :
db shell mount rootfs on / type rootfs (rw,seclabel) tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755) devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600) 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) debugfs on /sys/kernel/debug type debugfs (rw,seclabel,relatime) tmpfs on /tmp type tmpfs (rw,seclabel,relatime) pstore on /sys/fs/pstore type pstore (rw,seclabel,relatime) adb on /dev/usb-ffs/adb type functionfs (rw,relatime) /dev/block/bootdevice/by-name/cache on /cache type ext4 (rw,seclabel,nosuid,nodev,relatime,data=ordered) /dev/block/mmcblk0p42 on /data type ext4 (rw,seclabel,relatime,data=ordered) /dev/block/mmcblk0p42 on /sdcard type ext4 (rw,seclabel,relatime,data=ordered)
mount -l ne marche pas voilà la liste des options:
Code BASH :
adb shell mount -l mount: invalid option -- l BusyBox v1.22.1 bionic (2018-08-22 21:21 +0300) multi-call binary. Usage: mount [OPTIONS] [-o OPTS] DEVICE NODE Mount a filesystem. Filesystem autodetection requires /proc. -a Mount all filesystems in fstab -f Dry run -v Verbose -r Read-only mount -w Read-write mount (default) -t FSTYPE[,...] Filesystem type(s) -O OPT Mount only filesystems with option OPT (-a only) -o OPT: loop Ignored (loop devices are autodetected) [a]sync Writes are [a]synchronous [no]atime Disable/enable updates to inode access times [no]diratime Disable/enable atime updates to directories [no]relatime Disable/enable atime updates relative to modification time [no]dev (Dis)allow use of special device files [no]exec (Dis)allow use of executable files [no]suid (Dis)allow set-user-id-root programs [r]shared Convert [recursively] to a shared subtree [r]slave Convert [recursively] to a slave subtree [r]private Convert [recursively] to a private subtree [un]bindable Make mount point [un]able to be bind mounted [r]bind Bind a file or directory [recursively] to another location move Relocate an existing mount point remount Remount a mounted filesystem, changing flags ro/rw Same as -r/-w There are filesystem-specific -o flags.
Code BASH :
adb shell mount -a mount: mounting /dev/block/mmcblk1p1 on /external_sd failed: Invalid argument mount: mounting /usb-otg on auto failed: No such file or directory mount: mounting /dev/block/mmcblk0p3 on /firmware failed: Invalid argument
Édité par Guygoye Le 28/08/2019 à 21h50

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur
Pour le regroupement des commandes, je ne pense pas que cela puisse être le cas.
A priori, cela permet juste de lancer des commandes dans un sous shell et de rediriger la sortie de cet ensemble de commande vers une sortie unique (en tous cas, je le comprends comme ça)

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Citation :
mount: mounting /dev/block/mmcblk1p1 on /external_sd failed: Invalid argument
intéressant.
Peux tu :
adb shell "cat /etc/fstab" >~/android-fstab
puis nous donner le contenu du fichier android-fstab ?
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
/dev/block/mmcblk0p41 /cache ext4 rw 0 0
/dev/block/mmcblk0p43 /system ext4 rw 0 0
/dev/block/mmcblk0p42 /data ext4 rw 0 0
/dev/block/mmcblk1p1 /external_sd auto rw 0 0
/usb-otg auto rw 0 0
/dev/block/mmcblk0p40 /oem ext4 rw 0 0
/dev/block/mmcblk0p38 /rca ext4 rw 0 0
/dev/block/mmcblk0p31 /persist ext4 rw 0 0
/dev/block/mmcblk0p2 /lta-label ext4 rw 0 0
/dev/block/mmcblk0p39 /idd ext4 rw 0 0
/dev/block/mmcblk0p3 /firmware vfat rw 0 0

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
adb shell "mount -t ext4 /dev/block/mmcblk1p1 /external_sd" >~/android-0-mount.txt
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur
La carte sd est bien dans son lecteur ?

Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie