全部博文(40)
2011年(40)
分类: LINUX
2011-09-05 10:22:32
1-1 通过U盘
通常linux操作系统在插入U盘后,U盘会自动挂载在“/media”目录下生成一个新的目录。这个目录就相当于U盘分区,可以进行传输数据。
也可以手动挂载。如下:
#fdisk -l
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004444f
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2497 20051968 83 Linux
/dev/sda2 2497 2611 916481 5 Extended
/dev/sda5 2497 2611 916480 82 Linux swap / Solaris
Disk /dev/sdb: 4002 MB, 4002938880 bytes
68 heads, 3 sectors/track, 38324 cylinders
Units = cylinders of 204 * 512 = 104448 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x04030201
Device Boot Start End Blocks Id System
/dev/sdb1 1 38325 3909116 b W95 FAT32
#mount /dev/sdb1 /mnt
卸载:
#umount /mnt 或者 #umount /dev/sdb1