[maemo-users] Re: Cannot mount an ext2 partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



YEEEEEEES, I got it.

Just forgot to add ext2 modules to the kernel:
/ # insmod /mnt/initfs/lib/modules/current/ext2.ko

Now it works fine:
/ # mount /media/mmc2

As can be shown in these results:
/ # cat /etc/mtab
...
/dev/mmcblk0p1 /media/mmc1 vfat utf8,uid=29999,shortname=mixed 0 0
/dev/mmcblk0p2 /media/mmc2 ext2 errors=remount-ro 0 0

/ # df -h
Filesystem Size Used Available Use% Mounted_on
...
/dev/mmcblk0p1 468.5M 64.0M 404.5M 14% /media/mmc1
/dev/mmcblk0p2 495.1M 13.0k 469.5M 0% /media/mmc2

This is GREAT. But now comes the big question:
How can I use this ext2 partition to extend my rootfs. That is, I want to
install apps in my MMC, not in my 770 internal memory. I think it can be
done by linking files and directories to the 770. But could somebody explain
me how?

BTW, I've also read something about "unions"... What's the best option?

Salut.
Sebas.

2007/1/31, sebastian maemo <sebastian.maemo at gmail.com>:
>
> ------------------------------
> Hi,
>
> I've created a new partition on my RSMMC with sfdisk (from the tablet).
> I've got two partitions, one formatted as vfat and the other one as ext2.
> I've successfully mounted the vfat one. But I haven't been able to mount
> the ext2 one.
>
> These results may help to understand:
>
> / # sfdisk -l /dev/mmcblk0
> Disk /dev/mmcblk0: 31360 cylinders, 4 heads, 16 sectors/track
> Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0
> Device Boot Start End #cyls #blocks Id System
> /dev/mmcblk0p1 1 15000 15000 480000 6 FAT16
> /dev/mmcblk0p2 15001 31359 16359 523488 83 Linux
> /dev/mmcblk0p3 0+ 0 1- 31+ 83 Linux
> /dev/mmcblk0p4 0 - 0 0 0 Empty
>
> / # fsck.ext2 /dev/mmcblk0p2
> e2fsck 1.37 (21-Mar-2005)
> /dev/mmcblk0p2: clean, 11/131072 files, 16553/523488 blocks
>
> / # cat /etc/fstab
> rootfs / rootfs defaults,errors=remount-ro,noatime 0 0
> /dev/mmcblk0p1 /media/mmc1 vfat
> rw,noauto,nodev,noexec,nosuid,utf8,uid=29999 0 0
> /dev/mmcblk0p2 /media/mmc2 ext2 defaults, errors=remount-ro, noatime 0 0
>
> / # cat /etc/mtab
> rootfs / rootfs rw 0 0
> /dev/root /mnt/initfs jffs2 rw 0 0
> none /mnt/initfs/proc proc rw 0 0
> none /mnt/initfs/sys sysfs rw 0 0
> none /mnt/initfs/tmp tmpfs rw 0 0
> /dev/mtdblock4 / jffs2 rw,rpsize=1024,rpuid=0,rpuid=30000 0 0
> none /tmp tmpfs rw 0 0
> /proc /proc proc rw 0 0
> sysfs /sys sysfs rw 0 0
> usbfs /proc/bus/usb usbfs rw 0 0
> none /dev tmpfs rw 0 0
> devpts /dev/pts devpts rw 0 0
> /dev/mmcblk0p1 /media/mmc1 vfat utf8,uid=29999,shortname=mixed 0 0
>
> /media/mmc2 # mount /media/mmc2
> mount: Mounting /dev/mmcblk0p2 on /media/mmc2 failed: No such device
>
> /media/mmc2 # mount /dev/mmcblk0p2
> mount: Mounting /dev/mmcblk0p2 on /media/mmc2 failed: No such device
>
> Could anybody help me? Please
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-users/attachments/20070131/656b66a8/attachment.htm 


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux