maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Problems with mounting a second partition on internal card (https://talk.maemo.org/showthread.php?t=24652)

stefanmajewsky 2008-10-30 09:53

Problems with mounting a second partition on internal card
 
Hi. I'm attempting to clone my N810 OS by following the howto on http://wiki.maemo.org/Booting_from_a_flash_card , but the phase 2 of nupgrade.sh fails. I have tracked it down to the following issue:

Code:

# mount /dev/mmcblk0p2 /opt
mount: mounting of /dev/mmcblk0p2 on /opt failed

I've created the partition through USB connection to my notebook. The notebook is able to mount this partition (formatted as ext2). What could cause the above issue (the message itself is not very descriptive)?

fanoush 2008-10-30 11:34

Re: Problems with mounting a second partition on internal card
 
Quote:

Originally Posted by stefanmajewsky (Post 237834)
What could cause the above issue (the message itself is not very descriptive)?

You either forgot to insert ext2.ko kernel module or insmod command failed.

run something like
Code:

for m in mbcache ext2 ; do insmod /mnt/initfs/lib/modules/2.6.21-omap1/${m}.ko ; done
mount -t ext2 -o noatime /dev/mmcblk0p2 /opt

also check if /dev/mmcblk0p2 exists, if not, reboot first to let the system refresh partition table

stefanmajewsky 2008-10-30 13:17

Re: Problems with mounting a second partition on internal card
 
lsmod mentions both ext2 and mbcache, so the modules are loaded. Reboot did not help. The only thing I did not try yet is to mount with noatime option as you mentioned, but that does not help either.

Update: I have reformatted the partition with mke2fs on the tablet's terminal, but the result is still the same.

fanoush 2008-10-30 13:32

Re: Problems with mounting a second partition on internal card
 
So does /dev/mmcblk0p2 exist?
Code:

ls -l /dev/mmcblk0p2
Can you post full log of your terminal session (mke2fs, mount)? It is easy to do if you do it over ssh. Also output of
Code:

cat /proc/partitions
and possible errors in kernel log
Code:

dmesg
after trying the mount could help in diagnosing the issue

stefanmajewsky 2008-10-30 13:34

Re: Problems with mounting a second partition on internal card
 
Strange... it had ext2 and mbcache loaded in previous sessions (without me inserting it manually), but now it hadn't. That was causing the issue, still thanks for your help.


All times are GMT. The time now is 04:15.

vBulletin® Version 3.8.8