What does this notification really mean? I'm running CM7 off an 8G SanDisk. The /sdcard filesystem appears intact, it mounts properly on CM7 and Linux, but this notification won't go away.
fsck on Linux reports no problems.
Might something be confused about partitions? I can't mount /emmc for some reason, CWM can't mount it when I tell it to format it, and USB mode doesn't export it, although it looks like it's trying to; Linux reports a /dev/sde (along with /sdcard at /dev/sdd), but it can't be used:
Code:
# fsck /dev/sde
e2fsck: No medium found while trying to open /dev/sde
Any ideas?
Thanks!
Dennis
Fixed it!
To recap, I'm running CM7 from SD. I was getting a "Damaged SD Card" notification, and my /emmc vanished, and it wouldn't export via USB ("No media present" was the error reported by Linux, although /dev/sde was created), and CWM couldn't format it for me (why not?).
Both were apparently from the same cause. I repaired mmcblk0p8, and now my /emmc is back and the Damaged notification is gone.
So, if you're getting that notification, it may not be about your SD card!
Details: I couldn't use dd from Linux, but I could dd if=...blk0p8 within Terminal Emulator. My busybox doesn't have mkfs.vfat, so I used dd to copy /boot onto the partition; this gives it a (small but sane) filesystem. I rebooted to get /emmc mounted properly (check fstab.vold for the gory details), connected the cable to my Linux PC, checked that the expected contents were on /dev/sde, unmounted it (command line, not via GUI) and ran sudo mkfs.vfat -I -n MyNookColor /dev/sde from the Linux command line. All is now well.
i hv the same issue but since i'm a noob at nook color and i dont knw anything abt linux... i hv no clue what your are talking about...
it would be a gr8 help to me and others who are not well versed with linux, if you could tell me exactly what did u do to fix this problem.
please help me with this issue.
ty
sd
stavan_d said:
i hv the same issue but since i'm a noob at nook color and i dont knw anything abt linux... i hv no clue what your are talking about...
it would be a gr8 help to me and others who are not well versed with linux, if you could tell me exactly what did u do to fix this problem.
Click to expand...
Click to collapse
Android is just as much a Linux system as Ubuntu or Fedora.
This applies if and only if Settings/Storage claims that you have no /emmc or /mnt/emmc, and if you've installed CM7 to emmc. Read the headers carefully.
Start Terminal Emulator.
In this window, type su. The prompt changes to #.
Type df.
If there's a listing for /mnt/emmc or just /emmc, try something else; this isn't for you.
We're going to reconstruct /emmc by copying /boot onto it. THIS WILL ERASE /emmc!!!
Type VERY CAREFULLY:
dd if=/dev/block/mmcblk0p1 of=/dev/block/mmcblk0p8
That's blk zero pee one and blk zero pee eight.
This will grind away for quite some time.
When it's done, reboot.
If you still get the notification, you have some other problem.
You now have a tiny /emmc instead of the 5G partition that should be there. Plug the cable into your PC, enable USB mounting, and verify that one of the volumes looks like a boot partition. If you run a Linux PC, check the device name (mine was /dev/sde, yours is probably different), unmount it, and do the mkfs I showed before.
If you run Windoze, tell it you're done with the /boot drive (like you would do with a thumb drive), and format that device (E:, F:, whichever it was) by (IIRC) right-clicking on it in an Explorer window and selecting Format. Again, SELECTING THE WRONG DEVICE WILL SCREW YOU UP. I am not responsible.
If you're not sure about ANY of these steps, please get expert local help.
Good luck!
Sent from my NookColor using XDA Premium App
i m booting cm7 from the sd card... and settings/storage/additional storage/mnt/emmc Unavailable...
so how do i fix this...
also when i plug NC in boot OS it shows 2 partitions, 1.undefined and 2. 4.98gb... instead of 5gb single partition originally present...
I was wondering if there is an app that allows you to put an update (nighty) on an sd card without having to remove the card and attaching it to your computer.
I have wifi pro and that doesn't look like it allows me to do that and just hooking the nook to my pc doesn't look like it gives me the option either. Am I missing something?
I've haven't done myself yet but heard people mentioned about the app called "Root Explorer"??? or "Root Folder" or something with "root".
Download nightly build directly on the NC then use the app to drag the zip file over the "boot" partition.
I think it should be able to do, not done that myself.
The best I can offer is, if you eject the card long enough to start booting to stock, then re-insert it before stock fully loads (on one of the splash screens), the boot partition will be mounted as storage and you can connect to your PC by USB to drop an update file in there.
It might help you out if the issue is not having access to a card reader, but you still have to pop the card out and back in.
ETA: I never had any luck getting an update on the root of any SD, even one formatted for storage, using a file manager.
NookColorUMS allows you to mount any partition. Turn off compatibility mode in spare parts and then reboot to see app in full screen.
http://forum.xda-developers.com/showthread.php?t=952456
If you're running off of SD and adb is working then:
adb shell busybox mkdir /sdcard/boot
adb shell busybox mount /dev/block/mmcblk1p1 /sdcard/boot
adb push ***UPDATEFILE*** /sdcard/boot
adb reboot recovery
If running from EMMC then:
adb shell busybox mkdir /sdcard/boot
adb shell busybox mount /dev/block/mmcblk0p1 /sdcard/boot
adb push ***UPDATEFILE*** /sdcard/boot
adb reboot recovery
Hello all! New user here. I looked in the forums for this and can't find this question answered, but I am sure I missed it. My apologies before hand if that's the case.
I have a Nook with a 16GB SanDisk card with CM7 running off the card itself, which allows me to dualboot back to the original Nook software if I want to.
My question is this. Is there a way to automatically update CM7 and/or Google Apps without copying them to my Sd card on my PC, booting into recovery, etc?
I know there's the paid version of Rom Manager, but if I read that correctly, that only works when the Nook has CM7 running on the Nook directly and not on the SD card?
Thanks in advance for your time!
You can use adb and mount the boot partition to an empty folder on the partition CM7 sees as the SD card and push the nightly to that location... then just use adb's reboot recovery command...
(FIRST TIME ONLY) adb shell mkdir /sdcard/boot
adb shell mount /dev/block/mmcblk1p1 /sdcard/boot
adb push (UPDATE FILE) /sdcard/boot
adb reboot recovery
Thanks!
I will give this a try! Let's see if I can not break my root.
DizzyDen said:
You can use adb and mount the boot partition to an empty folder on the partition CM7 sees as the SD card and push the nightly to that location... then just use adb's reboot recovery command...
(FIRST TIME ONLY) adb shell mkdir /sdcard/boot
adb shell mount /dev/block/mmcblk1p1 /sdcard/boot
adb push (UPDATE FILE) /sdcard/boot
adb reboot recovery
Click to expand...
Click to collapse
Hello guys.
I was looking for a similar guide to link to my friend but didn't find anything, so I decided to write my own.
Personally I didn't find any good guide regarding partitioning from android itself, so I think it's also more unique guide because you can easily make your own partition layout without using PC at all.
Why I should use EXT4 instead of FAT/exFAT?
1. We're running Android, Android is based on Linux. EXT4 is native linux-proposed filesystem, while FAT/exFAT is not.
2. All our internal partitions (/efs /data /system /cache /preload) use ext4, natively.
3. CM has poor exfat support, while fat32 is not recommended for big file systems (over 2 GB) because it doesn't work well with them, thus microsoft implemented exfat.
4. EXT4 has better stability and performance, especially on Android devices, compared to exfat and fat.
When you should not use ext4 over fat/exfat?
- When you for whatever reason use your external sd card in windows environment physically. Android works in MTP mode, you'll use your ext4 external sd card the same way as you use internal one under windows. But if you for whatever reason puts your external sd card f.e. in usb adapter connected with windows then it won't work. So yeah, if you keep your external sd card in your phone then you're fine.
Expert Way (Requires fdisk/mke2fs utilities (busybox), works always):
1. Launch any terminal from Android environment (f.e. Android Terminal Emulator or adb shell through PC)
2. Make sure you have root (su command)
3. Make sure you have all required utilities. Type fdisk --help and mke2fs --help, both commands should print usage. If you get "command not found" then you don't have required utilities. Either install Busybox or CM-Based ROM with native busybox support (tested on ArchiDroid 2.X)
4. Unmount your external sd card (umount /storage/sdcard1)
5. Launch fdisk partitioning program on your external sd card (fdisk /dev/block/mmcblk1)
6. Destroy partition table (o), create new partition , make sure it's primary (p) and first one (1).
7. You can check if you're satisfied with your partition layout (p). When you're done exit and save changes (w)
8. Create ext4 filesystem on your partition (mke2fs -t ext4 /dev/block/mmcblk1p1)
9. Reboot
Android should automatically detect and mount external sd card in ext4 after reboot.
Here you can find a short movie which shows going through expert way recorded by me
Intermediate Way (Requires USB Adapter and some patience, should work like a charm):
1. You'd need USB Adapter or any device which can read micro sd cards on PC
2. Open any linux-supported partitioning program (f.e. partition magic, gparted, parted), it needs to support ext4.
3. Delete all partitions from your external SD Card (typically, one fat/exfat) and create one ext4 partition.
4. In case you'd also want hardswap create 2 partitions, one primary ext4 one and second primary swap one.
Newbie Way (Requires PhilZ Touch Recovery, may not work):
1. Launch PhilZ Touch Recovery
2. Select "Mounts & Storage" => "format /external_sd"
3. Select "ext4" as a filesystem
4. Please note that it can take some time. This way you should get running ext4 filesystem, but personally I didn't test this method, as I prefer more advanced ones .
This guide is more or less universal but I'm using sgs3 external sd card paths so I want to make sure nobody bricks other phones . Personally I suggest using expert way, as it's probably the easiest one.
Hit thanks if it helped, I hope it did .
@JustArchi thanks for the tutorial. Now for the sake of sdcard wearing. I would like to disable Journaling. How do you do that?
EDIT: also i noticed after formatting the externalsd card there is 3 GB occupied by nothing (?) This is normal?
cba1986 said:
@JustArchi thanks for the tutorial. Now for the sake of sdcard wearing. I would like to disable Journaling. How do you do that?
EDIT: also i noticed after formatting the externalsd card there is 3 GB occupied by nothing (?) This is normal?
Click to expand...
Click to collapse
tune2fs -O ^has_journal /dev/block/mmcblk1p1 should do the trick. You can put it in init.d if needed.
Also no, you should get full size of your sdcard. Are you sure that you've firstly destroyed partition table (o) and then created new full-size partition , as showed in the video?
You can use fdisk also to get information about your external sd card and find why is it smaller than it should be.
HI, My 64gb is two partitioned one hardswap and other primary.
Will I lose data on both partitions if I delete partition and format to EXT4?
golti said:
HI, My 64gb is two partitioned one hardswap and other primary.
Will I lose data on both partitions if I delete partition and format to EXT4?
Click to expand...
Click to collapse
You will lose data contained in the partition you are formatting. If you leave the other partitions untouched, you won't lose their data.
golti said:
HI, My 64gb is two partitioned one hardswap and other primary.
Will I lose data on both partitions if I delete partition and format to EXT4?
Click to expand...
Click to collapse
Just don't use (o), as it will destroy everything. Use an option to delete selected partitions (d, if I remember correctly) and create them through n.
System Data
Hi, thanks for te help, but now a have a 1 gb lost by system data or 0.8gb if i disable the journaling, that is right??? Thanks
vazio said:
Hi, thanks for te help, but now a have a 1 gb lost by system data or 0.8gb if i disable the journaling, that is right??? Thanks
Click to expand...
Click to collapse
It depends on your rom and also if you created ext4 properly. I've formatted my 2 GB SD Card to EXT4 and I got 1,80 GB free (yes with journaling). This is because 5%-10% is reserved for "super blocks". Read more -> http://en.wikipedia.org/wiki/Ext4
problem using expert method
Hi Guys,
I am new fairly new to rooting and using terminal emulators.
I have a rooted samsung galaxy note 2 with superSU, busybox and shell terminal emulator. I verified fdisk and mke2fs
(fdisk --help and mke2fs --help) but then when I tried the command
"umount /storage/extSdCard"
I get the error message "Operation not permitted"
Can anyone tell me why this might be?
Thanks
/storage/extSdCard is the path to the external sdcard on my device.
Hottot2 said:
Hi Guys,
I am new fairly new to rooting and using terminal emulators.
I have a rooted samsung galaxy note 2 with superSU, busybox and shell terminal emulator. I verified fdisk and mke2fs
(fdisk --help and mke2fs --help) but then when I tried the command
"umount /storage/extSdCard"
I get the error message "Operation not permitted"
Can anyone tell me why this might be?
Thanks
/storage/extSdCard is the path to the external sdcard on my device.
Click to expand...
Click to collapse
Did you login as root before? (su)
JustArchi said:
Did you login as root before? (su)
Click to expand...
Click to collapse
I did not.
However, I did try again and got the sane result. I used these commands in shell terminal emulator:
su -
mount
umount /storage/extSdCard
result: "Failed: Operation not permitted"
I have verified root with root checker...and after typing the command "su -" I was prompted by supersu to "allow"
I believe this issue will likely be something simple that I am not aware of.
I have tried this on my galaxy note 2 and my tab3 8.0 with the same results.
I really appreciate any help offered.
Hottot2 said:
I did not.
However, I did try again and got the sane result. I used these commands in shell terminal emulator:
su -
mount
umount /storage/extSdCard
result: "Failed: Operation not permitted"
I have verified root with root checker...and after typing the command "su -" I was prompted by supersu to "allow"
I believe this issue will likely be something simple that I am not aware of.
I have tried this on my galaxy note 2 and my tab3 8.0 with the same results.
I really appreciate any help offered.
Click to expand...
Click to collapse
Try to execute su -c "umount /storage/extSdCard"
It worked flawlessly in my case.
Thanks Archi. I was wandering around looking for a solution to the problem with my sd(I'm nooo0b if it goes about Linux/Android ). My Archidroid 2.3.3 did not recognized/mount my external card, so after following your instructions (using the terminal in android) now I can enjoy my 64gb sd card.. Great job!
JustArchi said:
Try to execute su -c "umount /storage/extSdCard"
It worked flawlessly in my case.
Click to expand...
Click to collapse
Ok. That worked. Thanks.
I then tried (su -c "fdisk /dev/block/mmcblk1")
Then...press m for help...or pressing "o" gets me a syntax error.
I have attached a screenshot.
Thanks again
Ryan
Hottot2 said:
Ok. That worked. Thanks.
I then tried (su -c "fdisk /dev/block/mmcblk1")
Then...press m for help...or pressing "o" gets me a syntax error.
I have attached a screenshot.
Thanks again
Ryan
Click to expand...
Click to collapse
Okay, you're user, not root. This is a weird android shell, that's why.
Try to use "su -i" to get root shell, then use fdisk (without su).
JustArchi said:
Okay, you're user, not root. This is a weird android shell, that's why.
Try to use "su -i" to get root shell, then use fdisk (without su).
Click to expand...
Click to collapse
Still didnt work. After typing "su -I" the next line still says "[email protected]:/$"
I was thinking I could try a reinstall of shell terminal emulator...or perhaps you could recommend a different one to use.
I will try again later tonight.
Thanks
Ryan
Hottot2 said:
Still didnt work. After typing "su -I" the next line still says "[email protected]:/$"
I was thinking I could try a reinstall of shell terminal emulator...or perhaps you could recommend a different one to use.
I will try again later tonight.
Thanks
Ryan
Click to expand...
Click to collapse
Try android terminal emulator, you must gain root shell. Typically "su" command does that, "su -l" should as well.
JustArchi said:
Try android terminal emulator, you must gain root shell. Typically "su" command does that, "su -l" should as well.
Click to expand...
Click to collapse
Alright...typed su and gained root....got through ttothe last step.
I typed "mke2fs -t ext4 /dev/block/mmcblk1p1"
and the result was: "mke2fs: invalid option -- t"
I have trying to read about mke2fs and the -t option but no luck so far.
Thanks
Ryan
Hello Archi and thanx for the tutorial
I followed all the steps, done it to the end, but after reboot I couldn't make any folder on SD card.
Card is recognized, formated as EXT4, but for some reason there is no way to put anything to it
Tried again with gparted, ended with same result.
Tried to change ownership, but that also didn't work out...
Now i reverted card to fat32...
Any idea what could be wrong?
btw, using NeatROM 4.4.2 with boeffla kernel and Philz 6.00.8
thanx in advance
Tom-Tom07 said:
Hello Archi and thanx for the tutorial
I followed all the steps, done it to the end, but after reboot I couldn't make any folder on SD card.
Card is recognized, formated as EXT4, but for some reason there is no way to put anything to it
Tried again with gparted, ended with same result.
Tried to change ownership, but that also didn't work out...
Now i reverted card to fat32...
Any idea what could be wrong?
btw, using NeatROM 4.4.2 with boeffla kernel and Philz 6.00.8
thanx in advance
Click to expand...
Click to collapse
Ext4 support is broken in your rom.
Hottot2 said:
Alright...typed su and gained root....got through ttothe last step.
I typed "mke2fs -t ext4 /dev/block/mmcblk1p1"
and the result was: "mke2fs: invalid option -- t"
I have trying to read about mke2fs and the -t option but no luck so far.
Thanks
Ryan
Click to expand...
Click to collapse
Your rom doesn't support mke2fs properly.