fdisk /dev/block/sda and check what the partition type is for that partition.
mount -t vfat /dev/block/sda6 /mnt/sdcard
vdc volume mount /mnt/sdcard
After these steps do you have a functional sdcard? If not, please post the logcat output here. If the fs is damaged, newfs_msdos /dev/block/sda6, might help.
Also SDCARD= and vold.fstab are exclusive i.e. SDCARD= works only when vold.fstab doesn't exist.
> --
> You received this message because you are subscribed to the Google Groups "Android-x86" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-x86...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.
>
You might want to change MAX_PARTITIONS from 4 to 8 or something in DirectVolume.h and try.
You said
dev_mount sdcard /mnt/sdcard auto /dev/sda6
this is a wrong syntax. You can't say /dev/sda6 directly.
You should put the devpath of sda,
or say SDCARD=/dev/sda6
(this is an android-x86 extended and undocumented feature)
> sda6 to the kernel line in GRUB menu works - now I have my partition
> automatically mounted as SD card.
--
Chih-Wei
Android-x86 project
http://www.android-x86.org
I've said,
dev_mount sdcard /mnt/sdcard auto SDCARD=/dev/sda6
> The example in system/core/rootdir/etc/
> vold.fstab seems to be for the SD/MMC-cards. Does the devpath for the
> hard drive also need to start with "/devices/platform/"? Where can I
> find the correct path?
ls -l /sys/class/block/
Yes. Using SDCARD variable in cmdline
is more flexible. It's the recommended way
to use on android-x86.
> Currently there is no way to switch the "SD card" on the fly - between
> the hard drive, and USB device, right?
No.
But it's possible to create multiple lines
in vold.fstab. See tegav2's for an example.