|
|
发表于 2008-10-29 09:23:03
|
显示全部楼层
This should give you enough clue.
[PHP]d00m3d@BlackMesa:~$ su -
Password:
root@BlackMesa:~# ls /mnt/test
root@BlackMesa:~# mount /dev/sdb7 /mnt/test
root@BlackMesa:~# ls /mnt/test
BkUP-hda1 dvd fstab.sda6 menu.lst.sda2 root var
bin eagletec.img home mnt sbin
boot etc initrd none sys
cdrom floppy lib opt tmp
dev fstab.sda2 lost+found proc usr
root@BlackMesa:~# umount /mnt/test
root@BlackMesa:~# ls /mnt/test
root@BlackMesa:~# cp /boot/config-2.6.27.3 /mnt/test
root@BlackMesa:~# mkdir /mnt/test/TEST
root@BlackMesa:~# ls /mnt/test -l
total 68
drwxr-xr-x 2 root root 4096 Oct 29 10:58 TEST
-rw-r--r-- 1 root root 57463 Oct 29 10:58 config-2.6.27.3
root@BlackMesa:~#
root@BlackMesa:~# mount /dev/sdb7 /mnt/test
root@BlackMesa:~# ls /mnt/test
BkUP-hda1 dvd fstab.sda6 menu.lst.sda2 root var
bin eagletec.img home mnt sbin
boot etc initrd none sys
cdrom floppy lib opt tmp
dev fstab.sda2 lost+found proc usr
root@BlackMesa:~# mount
/dev/sda6 on / type ext3 (rw,errors=remount-ro)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0666)
/dev/sda5 on /media/sda5 type ext3 (rw,nosuid)
devpts on /dev/pts type devpts (rw,gid=4,mode=620)
shm on /dev/shm type tmpfs (rw)
/dev/sdb7 on /mnt/test type ext3 (rw)
root@BlackMesa:~# umount /mnt/test
root@BlackMesa:~# ls /mnt/test -l
total 68
drwxr-xr-x 2 root root 4096 Oct 29 10:58 TEST
-rw-r--r-- 1 root root 57463 Oct 29 10:58 config-2.6.27.3
root@BlackMesa:~#[/PHP] |
|