你是要找/system/etc/vold.fstab吗? ## Vold 2.0 fstab####################### ## Regular device mount ## ## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> ## label - Label for the volume ## mount_point - Where the volume will be mounted ## part - Partition # (1 based), or 'auto' for first usable partition. ## <sysfs_path> - List of sysfs paths to source devices ####################### Mounts the first usable partition of the specified device dev_mount sdcard /mnt/sdcard auto /devices/platform/AMLOGIC_CARD/card_host/memorycard0 dev_mount flash /mnt/flash auto /devices/virtual/mtd/mtd8/avnftl8 dev_mount sata /mnt/sata auto /devices/lm2/host0/target0:0:0/0:0:0:0/block
谢谢哈, 我先试试! dev_mount sata /mnt/sata auto /devices/lm2/host0/target0:0:0/0:0:0:0/block那如果我只想挂载第八个分区呢?是不是直接改auto就可以了 ?
dev_mount sata /mnt/sata auto /devices/lm2/host0/target0:0:0/0:0:0:0/block 要改这两个 但要先找到对应的分区才行 装个busybox 用fdisk命令查下
肯定要先有目录才可以mount,在init.rc里创建最好不要在这个目录mnt/sdcard/ssd。# create mountpoints mkdir /mnt 0775 root system mkdir /mnt/flash 0000 system system mkdir /mnt/sdcard 0000 system system mkdir /mnt/ssd 0000 system system
据我了解,是在vold里面,而挂在硬盘也没“dev_mount sata /mnt/sata auto /devices/lm2/host0/target0:0:0/0:0:0:0/block”这么复杂的命令貌似...
就是android 的sata 硬盘挂载的相关代码是在哪块呢 ?
## Vold 2.0 fstab#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
####################### Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard auto /devices/platform/AMLOGIC_CARD/card_host/memorycard0
dev_mount flash /mnt/flash auto /devices/virtual/mtd/mtd8/avnftl8
dev_mount sata /mnt/sata auto /devices/lm2/host0/target0:0:0/0:0:0:0/block
我先试试!
dev_mount sata /mnt/sata auto /devices/lm2/host0/target0:0:0/0:0:0:0/block那如果我只想挂载第八个分区呢?是不是直接改auto就可以了 ?
要改这两个 但要先找到对应的分区才行 装个busybox 用fdisk命令查下
mkdir /mnt 0775 root system
mkdir /mnt/flash 0000 system system
mkdir /mnt/sdcard 0000 system system
mkdir /mnt/ssd 0000 system system
谢谢
fdisk看到你ssd第8个分区的实际设备节点,添加上去就好
/devices/lm2/host0/target0:0:0/0:0:0:0/block 这一项因人而异,大致要表明的意思是,这个分区是在那条总线接口上,由那个控制器管理,具体的分区位置
/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda
sda就是内核为你分配的分区
我的/sys/block/sda 指向的就是 ../devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda