[Q] Mounting 2nd SD Card Partition

Jiraffe

Member
May 16, 2011
7
0
0
So I have a 32gb SD card and formatted it into a primary 5gb FAT partition that will be used for usb mass storage mode, and a second ext4 partition which I intend to store google music caches onto aswell as the camera DCIM folder (through mounts/symlinks), however I can't get the ext4 partition to mount in a writable state. Using the latest version of Neutrino ROM, so I don't think ext4 is the problem (haven't tested with ext3 yet).

tried:
mount -w /dev/block/mmcblk1p2 /sdcard/sd-ext4
and it mounts (can see the lost+found dir), but it is only readable.

however, when I do
mount -w /dev/block/mmcblk1p1 /sdcard/sd-ext4
it mounts the first partition on the SD card in read/write mode just fine.

Anyone know what I'm doing wrong?
 

ravilov

Senior Member
Jan 26, 2010
2,219
1,344
0
localhost
Don't use -w, try -orw instead. Also check the output of dmesg right after you mount or maybe right after you try a write operation, there might be something useful there.
 

Jiraffe

Member
May 16, 2011
7
0
0
Don't use -w, try -orw instead. Also check the output of dmesg right after you mount or maybe right after you try a write operation, there might be something useful there.
Tried that, still no luck. Nothing blatently obvious to point to a problem (that I can see), asides from a couple buffer overflows.

This is console output of dmesg before and after mounting
Code:
$ export PATH=/data/local/bin:$PATH
$ su
# busybox dmesg | tail -f
<6>[  136.137609] usb_ether_get_stats
<6>[  138.597649] usb_ether_get_stats
<6>[  138.598851] usb_ether_get_stats
<4>[  138.851818]
<4>[  138.851822] nvmap_open: pid=3998
<4>[  140.687584] nvmap_open: pid=1949
<3>[  144.027654] init: untracked pid 4246 exited
<3>[  145.635534] evdev: event6-1787: buffer overflow
<6>[  169.390446] kxtf9_irq_work_func: status=0x4
<3>[  176.685803] evdev: event6-1787: buffer overflow
# mount -orw /dev/block/mmcblk1p2 /sdcard/sd-ext4
# busybox dmesg | tail -f
<4>[  140.687584] nvmap_open: pid=1949
<3>[  144.027654] init: untracked pid 4246 exited
<3>[  145.635534] evdev: event6-1787: buffer overflow
<6>[  169.390446] kxtf9_irq_work_func: status=0x4
<3>[  176.685803] evdev: event6-1787: buffer overflow
<6>[  198.451536] usb_ether_get_stats
<3>[  214.295793] evdev: event6-1787: buffer overflow
<4>[  252.753904]
<4>[  252.753908] nvmap_open: pid=2750
<6>[  258.848399] usb_ether_get_stats
And this was after trying to create a file
Code:
# busybox dmesg | tail -20
<6>[  138.597649] usb_ether_get_stats
<6>[  138.598851] usb_ether_get_stats
<4>[  138.851818]
<4>[  138.851822] nvmap_open: pid=3998
<4>[  140.687584] nvmap_open: pid=1949
<3>[  144.027654] init: untracked pid 4246 exited
<3>[  145.635534] evdev: event6-1787: buffer overflow
<6>[  169.390446] kxtf9_irq_work_func: status=0x4
<3>[  176.685803] evdev: event6-1787: buffer overflow
<6>[  198.451536] usb_ether_get_stats
<3>[  214.295793] evdev: event6-1787: buffer overflow
<4>[  252.753904]
<4>[  252.753908] nvmap_open: pid=2750
<6>[  258.848399] usb_ether_get_stats
<3>[  264.185782] evdev: event6-1787: buffer overflow
<6>[  286.976907] lm3532_button_brightness_set: button-backlight, 0x3f (63)
<6>[  286.978071] lm3532_brightness_set: lcd-backlight, 0x3c(60), webtop=0
<6>[  286.995619] lm3532_brightness_set: lcd-backlight, 0x39(57), webtop=0
<6>[  287.015674] lm3532_brightness_set: lcd-backlight, 0x36(54), webtop=0
<6>[  287.035543] lm3532_brightness_set: lcd-backlight, 0x33(51), webtop=0
Edit: I had done a clean boot before I tried all that too, here is the dmesg output from boot up to just past that point (I don't have 10 posts yet so can't hotlink) pastebin com/5PbQ6UBf
 
Last edited: