Related
I'm getting this error when trying to check if a2sd is working or not. SD partitioned properly 32 swap, 512 ext 2 moved to 3, remaining on fat32. im using aloysius 2.1 w/oc and used dconfig to move apps to sd and rebooted. just checked internal memory and still goes down after loading apps. thanks.
/system/bin/a2sd check
Starting Apps2SD script for DConfig at 06-11-2010 10:53:39
setting variables using values stored from DConfig tool
[ ] checking variables
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[!] Setting Dalvik VM Heapsize to 16mb.
[ ] Checking for ext partition
[!] Ext partition found.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/system/bin/e2fsck: Device or resource busy while trying to open /dev/block/mmcb
lk0p2
Filesystem mounted or opened exclusively by another program?
8
[ ] Mounting ext partitions as ext3.
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource bu
sy
[X] Mounting ext partition as ext3 failed.
[ ] Mounting ext partition as ext2.
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource bu
sy
[X] Mounting ext partition as ext2 failed.
[X] Can't continue script...aborting.
Getting the same issue,
same rom, I just formatted my sd card. 1024 swap 1024 ext. (8gb card). Had issues with the reboot. i removed the card and booted up with it, installed it, noticed the fat32 is 5.**. tried dling some apps and i notice the internal storage is dropping.
Any advice would be great appreciated.
Hey,
I like to mount my external SD Card as ext3 to support large files. The SD Card is formatted with ext3 but now Android shows only an empty folder.
So i tried to remount the SD:
Code:
mount -o rw,remount -t ext3 /dev/block/vold/197:33 /mnt/sdcard/externald_sd
But it doesnt use something... Does anybody has an idea? Some Example or sthing else?
Greetz
FaxXer said:
Hey,
I like to mount my external SD Card as ext3 to support large files. The SD Card is formatted with ext3 but now Android shows only an empty folder.
So i tried to remount the SD:
Code:
mount -o rw,remount -t ext3 /dev/block/vold/197:33 /mnt/sdcard/externald_sd
But it doesnt use something... Does anybody has an idea? Some Example or sthing else?
Greetz
Click to expand...
Click to collapse
u need a kernel that supports ext3. u can ask one of the guys compiling at the moment if they have time to add an ext3 module for u.
May be a stupid question:
would ext4 work instead? I thought the system partition would use this FS.
filesystem is already ext4
wintel_mac said:
May be a stupid question:
would ext4 work instead? I thought the system partition would use this FS.
Click to expand...
Click to collapse
well the system uses ext4 so it should work, but i'm not sure what u're trying to achieve. i use a 16 gb class 10 formatted fat32
Blumdum said:
filesystem is already ext4
Click to expand...
Click to collapse
He's talking about formatting external sd-card
When I get him right, he has a file that exceeds the 4GB FAT32 limit.
So he looks for an alternative to FAT32, which might be some kind of ext*-FS.
wintel your right!
In the Android-Hilfe Forum someone said the system expect first an vfat partition and then the ext. I think thats wrong cause its not working but somehow it has to go.
Hmm should I write these mount command I postet in the init.rc? Or something else. Would be very nice if you post your ideas!
Thanks
init.rc+ ext3 module/object included in kernel
Hmm okay thats good but how do I use them? So I can read and write to my external sd card with an ext3 or ext2 partition.
Thanks
Come on guys where are the great developers?!
Ok I did a test with busybox inbuilt mount, but I tried only with an image.
Not with a real SD card! This worked for me:
On a linux box:
# dd if=/dev/zero of=/tmp/image bs=1M count=1k
# mkfs.ext4 /tmp/image
Copy file to your phone. Then:
On the phone with terminal:
# mkdir /sdcard/mmnt
# busybox mount -o loop /sdcard/image /sdcard/mmnt
To unmount:
# busybox umount -l /sdcard/mmnt
Anybody tried that?
If I understand u right u puting an image file (ext3/4) on the sd and mount that as a virtual disk. Wouldn't the image file be bound to the same restrictoins as other content on a fat32 file system? Like the 4 gig limit!
YOU WILL LOSE ALL DATA ON YOUR SDCARD IF YOUR FDISK
BACKUP WHATEVER IS ON THERE FIRST!!!
YOU'VE BEEN WARNED
using a photon 4g but....
what i did was get an external sdcard reader writer...
(used ubuntu) and let it mount
fdisk device and DELETE ALL PARTITIONS
write
fdisk again
create a linux primary type 83
type mount and grab the /dev/sdcX value (it was /dev/sdc1 for me)
umount that
then
mkfs.ext3 /dev/sdcX ... ( heres the thing though with cyanogen mod 7 kernel 2.6.32.9 SMP PREEMPT)
had to reboot twice for it to be seen in file manager...
its buggy but it does work for the most part
Reviving an old thread, but I just found that I can format a MicroSD under NTFS and it will work with Paragon's NTFS module. At the very least, my phone will mount the drive. I partitioned and formatted it with ext4 on my Linux machine and it didn't recognize it, but I did have it use the GUID partition table. Hoping to be able to load up some videos to take with me.
ext4 sdcard mount works
FaxXer said:
Hey,
I like to mount my external SD Card as ext3 to support large files. The SD Card is formatted with ext3 but now Android shows only an empty folder.
So i tried to remount the SD:
Code:
mount -o rw,remount -t ext3 /dev/block/vold/197:33 /mnt/sdcard/externald_sd
But it doesnt use something... Does anybody has an idea? Some Example or sthing else?
Greetz
Click to expand...
Click to collapse
The problem is with the shell interpreting the special character ":"
To make it work, first create a symlink to the device node:
Code:
ln -s /dev/block/vold/197\:17 /dev/sd2
Then mount it:
Code:
busybox mount /dev/sd2 /mnt/tmp
Code:
sh-4.1# ls -l /dev/sd2
lrwxrwxrwx root root 2013-11-16 14:45 sd2 -> /dev/block/vold/179:17
sh-4.1# mount|grep sd2
/dev/sd2 /mnt/tmp ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
success mounting ext formatted SD Card on Android
An improvement in technique to mount ext formatted SDcard:
1) be root and open terminal
2) insert the card
3) see the block device and partition names from dmesg
4) mount device to location of choice (create the directory if needed)
Below is an example of an SD card with one ext4 partition on it
Code:
bash-4.1# dmesg | tail | grep mmc
<6>[20230.719541] mmc1: new high speed SDHC card at address 0007
<6>[20230.722803] mmcblk1: mmc1:0007 SD32G 29.3 GiB (ro)
<6>[20230.728352] mmcblk1: p1
bash-4.1# busybox mount /dev/block/mmcblk1p1 /data/mnt/sdcard2
tribh said:
An improvement in technique to mount ext formatted SDcard:
1) be root and open terminal
2) insert the card
3) see the block device and partition names from dmesg
4) mount device to location of choice (create the directory if needed)
Below is an example of an SD card with one ext4 partition on it
Code:
bash-4.1# dmesg | tail | grep mmc
<6>[20230.719541] mmc1: new high speed SDHC card at address 0007
<6>[20230.722803] mmcblk1: mmc1:0007 SD32G 29.3 GiB (ro)
<6>[20230.728352] mmcblk1: p1
bash-4.1# busybox mount /dev/block/mmcblk1p1 /data/mnt/sdcard2
Click to expand...
Click to collapse
Would this work just the same way with i9000?
After this, no more access to the extSD by the Windows PC but only with Ubuntu, right?
tetakpatak said:
Would this work just the same way with i9000?
After this, no more access to the extSD by the Windows PC but only with Ubuntu, right?
Click to expand...
Click to collapse
Since it's generic Linux kernel and busybox functionality it should work on any 'droid. The SDcard device name might be different than in the above example - you will see the correct device and partition names after you insert SDcard and run `dmesg | tail` on the tablet or phone.
(of course your device must be rooted and have busybox...)
Typically Windows is engineered not to recognise anything that does not come from Microsoft, so you will not be able to mount the Linux partition via Windows.
ROM archives contain img files; how to mount them in Linux?
I have tried mount filename.img /media/mymountpoint -o loop -t fstype
with fstype = vfat, ext2, ext3, ext4, iso9660 but couldn't mount.
What evident bit am I overlooking?
Thanks
EDIT maybe this is the way: http://forum.xda-developers.com/archive/index.php/t-1081239.html
EDIT2 yep it's right you've got to compile simg2img to uncompress the img file, then you can mount it. Thanks all
Carefully crafted on my Galaxy Note, for your eyes only
Hello Guys i have an Samba Server installed on my Raspberry pi and i wonder if you can mount an USBHDD on it i can Mount an USB pen drive whit no problem att all butt when i Try to mount the HDD it says that it Don't find ntfs-3 as a File System "sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/usbhdd/" is the code to Mount and i have made a Dir only for that HDD to please Help what shall i write insteed for ntfs-3g
sioxz said:
Hello Guys i have an Samba Server installed on my Raspberry pi and i wonder if you can mount an USBHDD on it i can Mount an USB pen drive whit no problem att all butt when i Try to mount the HDD it says that it Don't find ntfs-3 as a File System "sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/usbhdd/" is the code to Mount and i have made a Dir only for that HDD to please Help what shall i write insteed for ntfs-3g
Click to expand...
Click to collapse
Samba and other linux aspects related to linux servers can sometimes handle the NTFS file system in a weird way, I would suggest taking a look at these two guides for a couple of potential ways to fix your problem:
http://forums.whirlpool.net.au/archive/971582
http://ubuntuforums.org/showpost.php?p=9562968&postcount=3
Make sure you have the package for ntfs installed. I think it should be something like
Code:
sudo apt-get install ntfs-3g
Then try mounting it again using the command "mount" command. If you want it to mount automatically you will have to add it to /etc/fstab
Why are you using ntfs to being with? You should really use ext if possible, stick with Linux file systems and save yourself a headache if you aren't using this HDD with a computer that does support Linux file systems (i.e. Windows).
m2xtreme said:
Make sure you have the package for ntfs installed. I think it should be something like
Code:
sudo apt-get install ntfs-3g
Then try mounting it again using the command "mount" command. If you want it to mount automatically you will have to add it to /etc/fstab
Why are you using ntfs to being with? You should really use ext if possible, stick with Linux file systems and save yourself a headache if you aren't using this HDD with a computer that does support Linux file systems (i.e. Windows).
Click to expand...
Click to collapse
First of all Thanks both of you and the Reason i Use ntfs is becouse i have a 1TB Usb HDD full whit Data and i dont wanna Delete all that and make it into another Filesystem and i have another Problem you know the linux USB henarki whit sda1/sda2 Etc When i plug in my ntfs drive and my keybord only it says that i have Sda1/sda2/sda3 Bootet but when i drive the same tail command whit a Fat32 Usb stick i only get sda1 any tips on this ? whill try you thing First Thanks a lot :laugh: (edit: i also updated my USBmount i have no idea if this makes any diffrence but i got Dir in /media/ usb/usb1/usb2 Etc... to usb7)
I just ran a similar command to "sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/usbhdd/" on my linux desktop without issue. Can you provide the error message you are getting when running this command? Also are you able to run this command without issue?
Code:
sudo mount -t ntfs-3g /dev/sda1 /media/usbhdd/
Perhaps you should verify that /dev/sda1 is in fact the correct hard drive by running:
Code:
sudo fdisk -l | grep NTFS
m2xtreme said:
I just ran a similar command to "sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/usbhdd/" on my linux desktop without issue. Can you provide the error message you are getting when running this command? Also are you able to run this command without issue?
Code:
sudo mount -t ntfs-3g /dev/sda1 /media/usbhdd/
Perhaps you should verify that /dev/sda1 is in fact the correct hard drive by running:
Code:
sudo fdisk -l | grep NTFS
Click to expand...
Click to collapse
The ting is that i run a Tail command to se which sda number that Usb Hdd has and i says that is Has 3 sda number (sda1,sda2,sda3) and this makes me Really confused because when i run the same Tail command whit an flash usb stick (fat32) it only says one number (sda1)
gonna try running Arch linux insteed as soon as my new SD card Arrives :good: btw i have mounted an fat32 usb memory stick
and i have downloaded ntfs-3g package and utdated usbmount package
i have fixed it now my Raspberry pi are running Samba Whit my 1TB NTFS Drive
You need to Run Rasbian newest version
now how to
First
Code:
sudo apt-get install usbmount
to get the newest usb mount package
Code:
sudo apt-get install ntfs-3g
to get the ntfs-3g package to mount the disk
to mount
Code:
sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/path /media/path1/
were path is you fill in were the Disk is often sda1 but can also be sda2.sda3 my Drive was on sda3 becuse of some wierd ****
path1 do you fill in were you wanna mount your drive because of the usbmount package you now got usb,usb1,usb2 up to usb7
so choose any of them than if all works out you have mounted you NTFS drive
to test if it is munted or not
Write
Code:
cd /media/path1
and then type
Code:
dir
and you shoud se some maps if you got any on you Drive before
sorry for my English (i am from sweden and my spelling is genneraly bad in every language)
Happy to hear you figured it out. It is a bit surprising that it is mounting to sda3. In my experience Linux will give each hard drive it's own sdX number (i.e. sda, sdb, sdc, etc) and each partition on a hard drive will have a number associated with it (i.e. sda1, sda2, sda3, etc). Oh well
m2xtreme said:
Happy to hear you figured it out. It is a bit surprising that it is mounting to sda3. In my experience Linux will give each hard drive it's own sdX number (i.e. sda, sdb, sdc, etc) and each partition on a hard drive will have a number associated with it (i.e. sda1, sda2, sda3, etc). Oh well
Click to expand...
Click to collapse
Yea i was Kind of Confused to about that but now have i made guide how to fix this problem if anybody other than me experience this :laugh:
Also was First Time in Linux
Thanks to My Friends,Teachers And the people of XDA did i fix This Problem
If you've got various sdaX, that means one of two things:
1 - You've got multiple partitions; or
2 - Your partition table is broken.
If your partition table is broken but you can access your data, leave it as it is, and wait for a chance when you can back up that data to another disk to re-write MBR (or GPT, whatever floats your disk).
I was in the process of installing another OS as a dual boot option on my touchpad along with webOS.
When I remounted the boot partition rw using the command...
mount -o remount,rw /boot
a special character was accidentally inserted into the mount point name.
Now I had two boot mounts showing with the ls command, one with a special character showing as "boot?".
To fix this, I unmounted the boot partition, which left a file named "boot" in the root directory and a directory named "boot?". I was able to rename the" boot?" directory to "abcd" since the root name was taken by the file.
At this point, I'm not sure what the command should be used to remount the boot directory correctly. Please help quickly as I am unable to reboot at this time...
duh1 said:
I was in the process of installing another OS as a dual boot option on my touchpad along with webOS.
When I remounted the boot partition rw using the command...
mount -o remount,rw /boot
a special character was accidentally inserted into the mount point name.
Now I had two boot mounts showing with the ls command, one with a special character showing as "boot?".
To fix this, I unmounted the boot partition, which left a file named "boot" in the root directory and a directory named "boot?". I was able to rename the" boot?" directory to "abcd" since the root name was taken by the file.
At this point, I'm not sure what the command should be used to remount the boot directory correctly. Please help quickly as I am unable to reboot at this time...
Click to expand...
Click to collapse
What OS are you trying to install? What other commands did you run that's preventing you from booting? (based on what you've said you've run above, you should still be able to reboot since you haven't actually changed anything in /boot yet?) .
You could try: "rm /boot ; mkdir /boot ; mount -o remount,rw /boot" I guess.
If you told me more about what you are trying to do and what you have already done, I could help more.
And don't worry even if you have modified /boot such that it won't boot normally. I can help you correct that, but I'd like yo know more about what you are trying to do and what you have done so far.
jcsullins said:
What OS are you trying to install? What other commands did you run that's preventing you from booting? (based on what you've said you've run above, you should still be able to reboot since you haven't actually changed anything in /boot yet?) .
You could try: "rm /boot ; mkdir /boot ; mount -o remount,rw /boot" I guess.
If you told me more about what you are trying to do and what you have already done, I could help more.
And don't worry even if you have modified /boot such that it won't boot normally. I can help you correct that, but I'd like yo know more about what you are trying to do and what you have done so far.
Click to expand...
Click to collapse
I was reinstalling LuneOS and was in the process of making the /boot partition writable using the command....
mount -o remount,rw /boot
I had accidentally inserted a special character after /boot in the above command. This created two /boot entries as seen using the ls command.
One entry was /boot same as before, and a new entry shown as /boot? (the ? replaces the special character that cannot be displayed).
It seems I had created a second mount point with an undisplayable name.
I then issued an unmount command. to try to fix the issue...
umount /boot
This turned the /boot partition into a 6MB file named boot, and an empty directory named /boot? which I was able to rename to /abcd.
I cannot create or rename the directory to /boot since the file that now contains the boot filesystem currently has that name.
Deleting that 6MB boot file would delete the entire boot filesystem.
The command mount -o remount,rw /boot says can't find /boot in /proc/mounts
There is currently no /boot partition, just the file containing the filesystem, so I shouldn't reboot the system since there is no accessible bootloader.
I need to know the command to correctly mount the file as the /boot partition to the mount point /abcd, and then perhaps rename the mount point to /boot, or maybe rename the boot file to something else and then mount it to the /boot directory.
The mount command by itself would show how your /boot partition is currently mounted. and with what options -- maybe that would help recreate what mount command I should use to mount the boot file.
Thanks so much jc for your help in getting this fixed!
duh1 said:
I was reinstalling LuneOS and was in the process of making the /boot partition writable using the command....
mount -o remount,rw /boot
I had accidentally inserted a special character after /boot in the above command. This created two /boot entries as seen using the ls command.
One entry was /boot same as before, and a new entry shown as /boot? (the ? replaces the special character that cannot be displayed).
It seems I had created a second mount point with an undisplayable name.
I then issued an unmount command. to try to fix the issue...
umount /boot
This turned the /boot partition into a 6MB file named boot, and an empty directory named /boot? which I was able to rename to /abcd.
I cannot create or rename the directory to /boot since the file that now contains the boot filesystem currently has that name.
Deleting that 6MB boot file would delete the entire boot filesystem.
The command mount -o remount,rw /boot says can't find /boot in /proc/mounts
There is currently no /boot partition, just the file containing the filesystem, so I shouldn't reboot the system since there is no accessible bootloader.
I need to know the command to correctly mount the file as the /boot partition to the mount point /abcd, and then perhaps rename the mount point to /boot, or maybe rename the boot file to something else and then mount it to the /boot directory.
The mount command by itself would show how your /boot partition is currently mounted. and with what options -- maybe that would help recreate what mount command I should use to mount the boot file.
Thanks so much jc for your help in getting this fixed!
Click to expand...
Click to collapse
None of the commands you mention above would have created a FILE in / named boot.
If there is a FILE in / called boot, it is NOT your boot partition.
Also, the bootloader does not live in /boot.
Just reboot - nothing you mention above would prevent it from booting.
jcsullins said:
None of the commands you mention above would have created a FILE in / named boot.
If there is a FILE in / called boot, it is NOT your boot partition.
Also, the bootloader does not live in /boot.
Just reboot - nothing you mention above would prevent it from booting.
Click to expand...
Click to collapse
I no longer have access to moboot or the boot partition. If I reboot how can the system find the boot files?
Shouldn't I be able to see the boot partition it in fstab and remount the partition -- right now, it's not in there.
Can you test this on your own system, umount /boot then either see if you can regain access to it or reboot and see if there are no issues? Do you now have a file named boot in /?
duh1 said:
I no longer have access to moboot or the boot partition. If I reboot how can the system find the boot files?
Shouldn't I be able to see the boot partition it in fstab and remount the partition -- right now, it's not in there.
Can you test this on your own system, umount /boot then either see if you can regain access to it or reboot and see if there are no issues? Do you now have a file named boot in /?
Click to expand...
Click to collapse
I have absolutely no need at all to test it to know that it works.
If it's unable to boot, it's because of something other than what you mentioned above.
* Assuming you removed the /boot file and recreated the /boot dir. (i.e. "rm /boot ; mkdir /boot")
jcsullins said:
I have absolutely no need at all to test it to know that it works.
If it's unable to boot, it's because of something other than what you mentioned above.
* Assuming you removed the /boot file and recreated the /boot dir. (i.e. "rm /boot ; mkdir /boot")
Click to expand...
Click to collapse
Thanks jc and kudos -- you were right! The file named boot was an aberration, created by the badly formed mount command and a file I then copied to that location. I deleted the file and recreated the dir /boot.
I found the correct mount point /dev/root from another device, was able to mount /boot and device rebooted fine. Perhaps I didn't need to remount /boot before rebooting, but without some indication that it would be recreated, I didn't want to chance it.
Linux at times can be a painful learning experience, thanks for being here with the first aid, it's appreciated...