hello,
I'd ask the question in the dev UBUNTU testing thread, but I don't have enough posts yet.
I am following the lifeinarootshell.blogspot.com/ instructions and have been following the Ubuntu thread since its beginning. I'm a bit of a newbie with linux, so it's taking some time.
I can't mount the micro sd card... I'm trying with the command "mount /dev/block/mmcblk1p1 /data/mmc"
When I type "mount" from a terminal on the TF201, I don't see "/dev/block/mmcblk1p1" listed.
This micro sd has my roofs on it that I need to chroot into. I've tried reformatting like 10 times now using various methods. I've used an HP format tool at fat32, then used the Minitool partition wizzard and formatted as ext4. I've also tried the gparted tool in a ubuntu vm. It's set as a primary partition.
Can anybody point me in the right direction?
Okay, got it figured out....
nookusr said:
hello,
I'd ask the question in the dev UBUNTU testing thread, but I don't have enough posts yet.
I am following the lifeinarootshell.blogspot.com/ instructions and have been following the Ubuntu thread since its beginning. I'm a bit of a newbie with linux, so it's taking some time.
I can't mount the micro sd card... I'm trying with the command "mount /dev/block/mmcblk1p1 /data/mmc"
When I type "mount" from a terminal on the TF201, I don't see "/dev/block/mmcblk1p1" listed.
This micro sd has my roofs on it that I need to chroot into. I've tried reformatting like 10 times now using various methods. I've used an HP format tool at fat32, then used the Minitool partition wizzard and formatted as ext4. I've also tried the gparted tool in a ubuntu vm. It's set as a primary partition.
Can anybody point me in the right direction?
Click to expand...
Click to collapse
I needed to use the busybox, so the command to mount is "busybox mount /dev/block/mmcblk1p1 /data/mmc"
Hope it might help someone else if they have the same issue.
hope it's not a big deal to be in the question thread
nookusr said:
I needed to use the busybox, so the command to mount is "busybox mount /dev/block/mmcblk1p1 /data/mmc"
Hope it might help someone else if they have the same issue.
Click to expand...
Click to collapse
Being a noob, I hadn't realized what busybox was really. Now I see it adds more functionally to the terminal.
What was funny was that I could mount and browse the files in TWRP, but not within android....
Yes well, I can now proceed....
Figured it out....
nookusr said:
hello,
I'd ask the question in the dev UBUNTU testing thread, but I don't have enough posts yet.
I am following the lifeinarootshell.blogspot.com/ instructions and have been following the Ubuntu thread since its beginning. I'm a bit of a newbie with linux, so it's taking some time.
I can't mount the micro sd card... I'm trying with the command "mount /dev/block/mmcblk1p1 /data/mmc"
When I type "mount" from a terminal on the TF201, I don't see "/dev/block/mmcblk1p1" listed.
This micro sd has my roofs on it that I need to chroot into. I've tried reformatting like 10 times now using various methods. I've used an HP format tool at fat32, then used the Minitool partition wizzard and formatted as ext4. I've also tried the gparted tool in a ubuntu vm. It's set as a primary partition.
Can anybody point me in the right direction?
Click to expand...
Click to collapse
I thought I'd post my solution here just in case if anyone else had the smae problem.
I had busybox installed and did not know what it did. It looks like busybox allows a selection of terminal commands. Therefore, I needed to type "busybox mount /dev/block/mmcblk1p1 /data/mmc"
this mounted without errors.
Related
There are a few pages on how do do this on Android phones, but I'm having a hard time finding a solution tailored for the gtab. One page suggests using Cyanogen Recovery Image and ADB, however Cyanogen Recovery Image is not maintained anymore, and Clockwork is suggested. So I installed that, and I can boot into recovery mode on my gtab. But after connecting to the PC via usb, trying to use 'adb shell' returns a "device not found" error.
So what's the best way to create an ext2 partition on my Gtab's internal sd card?
Found out through #tegratab that this is not an option for the gtab. I hope to have better luck formatting a new micro sd card to ext2 with the goal of installing Debian on it. Will post my results later.
I hope to have better luck formatting a new micro sd card to ext2 with the goal of installing Debian on it. Will post my results later.
Click to expand...
Click to collapse
great idea -- keep us posted
My new micro SD card came with an mini SD card adapter, so it was no problem to insert it into my netbook running partedmagic and create an ext2 partition. Unfortunately the gtab says it's an unsupported file system. Something is crippled somewhere...
When I was attempting the same thing android wouldn't automount an ext2/3/4 sdcard for me but I could manually mount it through a terminal emulator.
So I downloaded Android Terminal Emulator from the market and typed
fdisk -l
to show the partition tables. Nothing happened. I then tried "su" to give the terminal superuser privileges, but that didn't help.
*sigh*
What am I doing wrong?
I'm using TnT-Enhanced v3.1.4b and have Clockworkmod installed. Perhaps my gtab is not "rooted" as it needs to be? I'm afraid I know little about how these things work...
IIRC all I had to do to mount the ext2 partition was type in mount /dev/block/platform/tegra-sdhci.2/mmcblk2p1 /mnt/sdcard
farmer bobathan said:
IIRC all I had to do to mount the ext2 partition was type in mount /dev/block/platform/tegra-sdhci.2/mmcblk2p1 /mnt/sdcard
Click to expand...
Click to collapse
That did nothing for me. Perhaps you could help me by explaining how you came up with that command - maybe I need to tailor it for my particulars.
I'm still troubled that fdisk -l does not show the partition table. If I type fdisk alone, terminal gives me a list of options I can use (including the -l).
(Sure hope another non-android based OS is developed soon that will run on the gtab.)
Which ROM are you using?
farmer bobathan said:
Which ROM are you using?
Click to expand...
Click to collapse
TnT-Enhanced v3.1.4b. I guess that's the stock ROM then... enhanced.
So do I need to install a different ROM for root access? I have superuser access, but not root?
Root and superuser are the same thing, I think you need a custom kernel such as pershoot's with ext support.
Hey all I'm running CMD 7.1 (RC) on a Nexus One and I've followed the instructions to partition my sd card from here as ext3, installed link2sd, and get this error:
Mount script error
Mount script cannot be created.
mount: mounting/dev/block/
vold/179:2 on /data/sdext2
failed: Device or resource busy
Anyone have a solution for this? I have searched XDA and Google for a solution, a few posts showed up with the same problem, but the person that starts the thread with the same problem ends up not following their own thread, or finds a solution without explaining how.
I am having the exact same problem, Nexus One with CM7 nightly 214. Tried S2E but it kept screwing up and trashing my EXT partition so I wanted to try Link2SD.
Finally got it to work but I can only get EXT3 partition, tried updating using Amon-Ra and MiniTool Partition but neither updated to EXT4.
In Terminal you can check the type of EXT partition by typing: mount | grep sd-ext
Everything I tried kept giving me only an EXT2 partition, I tried converting to EXT4 using MiniTool Partition Manager which reported a successful conversion but when I checked in terminal it reported EXT2. I then used Amon-Ra recovery to convert from EXT2 to EXT3 and now Link2SD works. Lexar 32GB Class 10 SD. Hope this helps.
Possible solution
I might have just found a solution.
Do you guys use any kind of bk2sdext? (automated backup of app/data to sdext partition, which comes with some ROMs built in)
To find out, go to your build.prop file in /system and check, it's one of the last lines, if it says something like bkup2sdext.enable=1, then disable it (switch 1 to 0), save and restart.
After that either go to ClockworkMod Recovery or just unmount your SD card, in order to FORMAT the sd-ext partition again so that it doesn't contain any data (and doesn't get automatically filled back, because bkup2sdext is off now).
This way I was able to mount it finally.
I think it has something to do with the build.prop AND the sd-ext partition having some other data on it before first mounting with link2sd.
Cheers.
download titanium backup press menu select batch operation scroll down till u see move all user apps to sd(if supported) and also make sure that you have checked allow application moving(settings->applications)
I have segmentation fault all the time,donnu why
Hello, fellow gTablet users!
I'm kinda newbie here, so first of all my apologies to everyone if that was already asked, 'cause I did some research on the matter and couldn't find all the necessary info for solving my particular issue.
Ok, so here's the deal. I was using my gTab for about half-year now. When I received it, I installed VeganTab-7 Ginger Edition on it (thanks for the devs - very nice ROM!) and it worked flawlessly until yesterday. But then something not good happened and the tablet stopped booting. Now it starts from birds screen, goes on to G-Tabdevs screen, after which VeganTab GingerEd boot screen appears, it has flashing letters for a couple of seconds and then tablet goes black and tries to boot again. I guess it's a boot loop so it's kinda soft brick and I'll have to do wipe data/factory reset through CWM to solve the issue. So this isn't the biggest problem - I've already found all the instructions.
The real problem is that I didn't make backup of my data (guilty!), but I don't want to lose some of it, especially the browser data. I was using Opera Mobile, so I guess that its data should be on /data partition. So I'll need an advice on how I can dump the necessary data before doing factory reset!
I've already tried connecting to desktop, using guide from this (http://forum.xda-developers.com/showthread.php?t=1010943) thread (third method from it), but it didn't work, at least on my Win7 Pro x64 SP1: the tablet shows as removable disk, but I can't access it. I tried to mount /data or /sdcard partitions through CWM recovery menu, but it tells me that it can't find /dev/block/... - I guess that's block device, associated with those partitions. So what are my best options of backuping data?
And the last question: I'll probably install some other ROM just to try something different, but unfortunately I don't remember what loader I have. I'm nearly sure that I installed VeganTab for 1.1, 'cause I did it back in May 2011 and there wasn't one available for 1.2 yet. But just to make sure: how can I find my loader version before I do reset? Or maybe I just have to do the reset and look for it when back on stock ROM?
Seriously, guys, doesn't anybody know how to solve these problems?
Boot into CWM first, then try mounting both /data and /sdcard using the CWM menu. Note down the exact error message displayed in each case. Then connect the USB cable and run these ADB commands on your PC:
Code:
C:\> [B]adb shell dmesg >dmesg.txt[/B]
C:\> [B]adb shell fdisk -l /dev/block/mmcblk3 > fdisk.txt[/B]
C:\> [B]adb shell fdisk -l /dev/block/mmcblk2 >> fdisk.txt[/B]
Post the error messages and those 2 .txt files here.
Thank you for reply, rajeevvp.
When I'm trying to mount /data and /sdcard it says respectively:
Code:
E:Can't mount /dev/block/mmcblk3p2
(No such file or directory)
Error mounting DATA:!
E:Can't mount /dev/block/mmcblk3p1 (or /dev/block/mmcblk2p1)
(No such file or directory)
Error mounting SDCARD:!
Unfortunately I didn't have ADB installed. Now I'm trying to use the guide from here: http://forum.xda-developers.com/showthread.php?t=902860, but fail on step 4, cause there is nothing like "Nvidia harmony" appearing under other devices in my dev manager, just "Nvidia Tegra 2 USB Device" under Disk Drives and "USB Mass Storage Device" under Universal Serial Bus Controllers. I guess these devices are gTablet's internal memory presented as disk drive...
I'll try to install ADB and then write back how it worked.
Interesting error messages. Now I really have to see those text files.
If you're having problems installing ADB on Windows, try using Linux.
Ok, thanks you very much! I'll try that, but unfortunately tomorrow, as it's already too late here.
Btw, I read your post about linux - you're suggesting Knoppix Live CD there. Is it mandatory to use it? I mean I already have PartedMagic live CD burned, maybe I could use it instead...
anary said:
I mean I already have PartedMagic live CD burned, maybe I could use it instead...
Click to expand...
Click to collapse
If sudo and adb work, then no problem.
rajeevvp said:
Boot into CWM first, then try mounting both /data and /sdcard using the CWM menu. Note down the exact error message displayed in each case. Then connect the USB cable and run these ADB commands on your PC:
Code:
C:\> [B]adb shell dmesg >dmesg.txt[/B]
C:\> [B]adb shell fdisk -l /dev/block/mmcblk3 > fdisk.txt[/B]
C:\> [B]adb shell fdisk -l /dev/block/mmcblk2 >> fdisk.txt[/B]
Post the error messages and those 2 .txt files here.
Click to expand...
Click to collapse
Ok, I finally managed to do it. Sorry for the delay.
The files are attached. Did everything how you told me.
Actually I don't think that I understand too much in Android inner mechanics But having looked through these files, I thought that inner sdcard device (mmcblk3) doesn't seem to produce any strange behavior...
Btw, thanks a lot for your advice about using Knoppix - it's really very easy and handy!
anary said:
But having looked through these files, I thought that inner sdcard device (mmcblk3) doesn't seem to produce any strange behavior...
Click to expand...
Click to collapse
You have lost your /data partition altogether. You are supposed to have 2 partitions on that internal SD card: a 14GB FAT32 partition and a 2GB ext3 partition. You only have a single FAT32 partition spanning the entire SD card now.
I may be able to help you get both partitions back if you give me these details:
1. How and when did this happen?
2. Current ROM.
3. Current version of CWM.
4. Did you try to repartition the (internal) SD card recently?
5. Have you ever repartitioned the internal SD card? If yes, then using which version of CWM?
6. After you noticed the problem what steps did you take to fix the problem?
Yeah, I remember I was curious where it stores OS's kernel if all it has is FAT32 partition - now I get it...
Ok, here are the details:
1. I don't really know what has happened, but I guess that it happened when I tried to use tablet like cardreader for microsd card. During that I sort of formatted external sd - maybe that actually was internal memory? I checked through file manager though, and all the files seemed intact...
2. VeganTab GingerEd from this thread: http://forum.xda-developers.com/showthread.php?t=1031250. I'm pretty sure that I didn't install anything except for it.
3. Don't know. But it says ClockworkMod Recovery v2.5.1.1-bekit-0.8 in recovery menu, so I guess its version is maybe 0.8.
4. No I didn't, at least intentionally.
5. I think I did it just once, when installing the ROM. I'm pretty much sure that I used this instructions for repartitioning: http://viewsonic-gtablet-for-dummies.webs.com/repartition.htm (not exactly this, but I did the same as it's written there). To install the ROM I used the instructions from the ROM thread, mentioned above. I didn't whant to do a lot of modding, just wanted the device to work at least better than with stock ROM, so didn't try to change any other low-level things.
6. I just tried to mount partitions through CWM recovery and I tried wiping out cache partition and Dalvik cache. Nothing else.
anary said:
Yeah, I remember I was curious where it stores OS's kernel if all it has is FAT32 partition - now I get it...
Click to expand...
Click to collapse
The OS kernel is not stored on the SD cards. They're stored on a "boot" partition on the NAND flash. And, if the OS was messed up you would get hung up on the initial splash screen (the one with the 3 birds)--you wouldn't go into a boot loop.
1. I don't really know what has happened, but I guess that it happened when I tried to use tablet like cardreader for microsd card. During that I sort of formatted external sd - maybe that actually was internal memory?
Click to expand...
Click to collapse
That's what caused this problem. CWM-2.5.1.1-bekit-0.8 does not work on the external SD card (but, CWM-2.5.1.3 and CWM-4.0.1.5 do).
Did you format the internal SD card using CWM?
I checked through file manager though, and all the files seemed intact...
Click to expand...
Click to collapse
Files where? The internal SD card or the external one? And, how did you check this? After formatting the internal SD card, the very next boot into the ROM would've put you into a boot-loop because the /data partition is missing.
I think I may be able to get stuff from /data, but, everything on /sdcard is most likely gone. (Actually, the files are most likely all there, but, without direct access to the tablet, it's very difficult to get the retrieve any of them.) Just don't touch the tablet until I've figured out the commands you will have to use.
That's what caused this problem. CWM-2.5.1.1-bekit-0.8 does not work on the external SD card (but, CWM-2.5.1.3 and CWM-4.0.1.5 do).
Did you format the internal SD card using CWM?
Click to expand...
Click to collapse
No, I was going to format external SD card and I tried to do it through Android (or maybe VeganTab) menu. I think that doing this, I could accidentally format internal SD, but I'm not sure this could be done from within the OS. During the same logon session I checked files on internal SD with file manager and all of them were where they should have been. So I thought that all was ok. But when I rebooted next time, it wasn't booting... That's why I told you that maybe it was because of formatting.
And just to be clear: I didn't do anything using CWM after it stopped booting, apart from wiping system and Dalvik caches.
Do you have a large capacity micro SD card (anything larger than the maximum amount of data that's currently on the internal SD card) that you can use to save retrieved data into?
rajeevvp said:
Do you have a large capacity micro SD card (anything larger than the maximum amount of data that's currently on the internal SD card) that you can use to save retrieved data into?
Click to expand...
Click to collapse
Yep. Won't be any problem.
anary said:
Yep. Won't be any problem.
Click to expand...
Click to collapse
OK. Format that micro SD to contain a single DOS partition; then we'll proceed.
rajeevvp said:
OK. Format that micro SD to contain a single DOS partition; then we'll proceed.
Click to expand...
Click to collapse
Ok. That's done.
Boot into CWM, go into the "mounts and storage" menu, unmount all mounted partitions, connect the USB cable, and run these commands using ADB--do not back out of that "mounts and storage" menu while we're fixing this. We're trying to see if the data on the current /sdcard partition can be retrieved.
Code:
$ [B]adb shell[/B]
~ # [B]mount -r /dev/block/mmcblk3p1 /sdcard[/B]
~ # [B]ls -l /sdcard[/B]
If the ls listing looks OK, then we force a filesystem check before copying the data to the external micro SD card:
Code:
~ # [B]mount -r /system[/B]
~ # [B]umount /sdcard[/B]
~ # [B]/system/bin/fsck_msdos -f -y /dev/block/mmcblk3p1[/B]
If the listing doesn't look OK, then the data on /sdcard is lost.
Post the exact output of each command.
Ok, mount says this:
Code:
mount: mounting /dev/block/mmcblk3p1 on /sdcard failed: Invalid argument
and ls after that gives no output - I think it shouldn't give any, 'cause I didn't mount anything...
Does this mean I'm screwed?
Try this mount command:
Code:
~ # [B]mount -r -t vfat /dev/block/mmcblk3p1 /sdcard[/B]
The same result.
Hi all.
I recently went about updating my tablet, and in the back of my mind I was under the impression that TWRP would backup the internal sdcard's files during the normal backup, so I thought nothing of wiping the internal sdcard. Whoops. It, of course, didn't, and now I find myself with a whole slew of stuff gone. Not much else was written to the internal sdcard (which is on an ext4 filesystem), so I suspect that a good bit of my stuff can still be sitting there in the data graveyard. Hopefully.
Since I'm on Linux and can't mount the sdcard directly (since for some odd reason Linux has issues with MTP), all I've been able to do was this:
I booted the tablet into recovery mode and opened up adb, and ran the following command through the adb shell:
Code:
~ # dd if=/dev/block/mmcblk0p8 of=/dev/block/mmcblk1p1
Where mmcblk0p8 is the internal sdcard with the lost data, and mmcblk1p1 is an external sdcard. I thought that by running that command, I could create a carbon copy of each and every little thing on the old sdcard, write it onto something my computer could read, and then go through the normal recovery process. In this case I planned to use a Linux tool called "extundelete."
Here's where I get stuck. The sdcard appeared to have cloned correctly, given that the entire thing is now filled up and reads as an ext4 filesystem on gparted (when it was previously fat32), but now I can't mount it. And if I can't mount it, I can't restore anything. Here's what I get when I try to mount it:
Code:
Error mounting /dev/sdb at /media/user/57f8f4bc-abf4-655f-bf67-946fc0f9f25b: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb" "/media/user/57f8f4bc-abf4-655f-bf67-946fc0f9f25b"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
So to sum it up, I accidentally wiped my tablet's internal sdcard using TWRP 2.3.3.0, and now I want to recover what was lost during the wipe. Not that it matters, my tablet is a Transformer Infinity in case anyone asks. Though I don't think that's really relevant here.
If anyone knows how to help me, or knows of a better way I should go about getting my data back, that would be, for a lack of better words, super awesome.
Thanks!
BJSerpas said:
Error mounting /dev/sdb
Click to expand...
Click to collapse
Seems you tried to mount /dev/sdb, not /dev/sdb1.
Also, did you make the SDcard partition the same size as the source partition? And what did dmesg say?
Also, http://forum.xda-developers.com/showthread.php?t=1994705 might be of some help..
kuisma said:
Seems you tried to mount /dev/sdb, not /dev/sdb1.
Also, did you make the SDcard partition the same size as the source partition? And what did dmesg say?
Click to expand...
Click to collapse
When I plugged it in, Linux automatically mounted it to sdb and not sdb1. And the external SD card was the same size as the internal one, 32gb. Currently not home so I can't run dmesg at the moment.
And thank you bodh, that looks very useful and is more or less what I was trying to do. I'll have to get on a windows PC it seems, but no issue there. In the meantime, is there a way to write protect the internal SD from the android terminal emulator until I get home? I don't want my old files accidentally overwritten. Or I could just not use the tablet if that's the better option here.
Thanks guys!
I'm not sure you could write protect the internal sd. I've tried changing permissions on it and get errors. You're best bet is probably to go without the tablet use for now.
BJSerpas said:
When I plugged it in, Linux automatically mounted it to sdb and not sdb1. And the external SD card was the same size as the internal one, 32gb. Currently not home so I can't run dmesg at the moment.
Click to expand...
Click to collapse
I'm talking about the number of blocks exactly, not "32gb" or so. And mount /dev/sdb1 manually, don't rely on Gnome failing to mount /dev/sdb.
Hello everyone
I am having trouble mounting second partition of my external sdcard. I’ve already done as much research as i could but i couldn’t find the answer.
I am using busybox to try to mount /dev/block/mmcbl1p2 to any folder (tried in /mnt; /storage; /mnt/media_rw; and many more) but my mount command says invalid argument.
To explain what i did, in short i have a raspberry pi, i used piped unzip to dd command to write the raspbian image on my sdcard. dd command was successful and raspberry pi can boot from it. What i am trying to is setup my raspberry headless by editing /etc/network/interfaces which is located in second (ext4) partition of my extSdCard.
I know android understands linux file systems but i also know it only mounts first vfat od sdcard. Is there any way to access the files from second partition of my extSdCard ?
I am not sure how to find the answer since everything on google is related to moving apps to sdcard
Thanks
Device: Huawei Y5II - CUN-L01
Stock rom
I managed to set it up headless by using UsbTethering and connect to ssh through that connection since dhcp is auto enabled on this image for raspberry, but i would still like to know how to mount this partition. Thank you