日期:2014-05-16 浏览次数:20707 次
#mdev.conf sd[a-z] 0:0 0660 @/etc/mdev/udisk_insert sd[a-z] 0:0 0660 $/etc/mdev/udisk_remove sdb[0-9] 0:6 660 hda[0-9] 0:6 660
# /etc/fstab: static file system information. # # <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ext2 rw,noauto 0 1 proc /proc proc defaults 0 0 none /tmp ramfs defaults 0 0 mdev /dev ramfs defaults 0 0 sysfs /sys sysfs defaults 0 0 tmpfs /var tmpfs defaults 0 0 tmpfs /tmp tmpfs defaults 0 0 tmpfs /dev tmpfs defaults 0 0
mount -t proc proc /proc mount -t tmpfs mdev /dev mount -t sysfs sysfs /sys mkdir /dev/pts mount -t devpts devpts /dev/pts mount -a /bin/echo /sbin/mdev >/proc/sys/kernel/hotplug mdev -s
#!/bin/sh echo remove udisk #umount -t /mnt/udisk umount /mnt/udisk #rm -rf /mnt/udisk echo "remove your udisk safely!"