Chapter 4. Integration
recognized as /dev/sdb1, /dev/sdc1, /dev/sdd1…. Each device must be mounted for proper use.
Following displays an example of two USB memory stick connection with a hub.
# mount -t vfat /dev/sda1 usb1
# mount -t vfat /dev/sdb1 usb2
# df /tmp/usb*
Filesystem Size Used Available Use% Mounted on
/dev/sda1 3.8G 3.2G 547.3M 86% /tmp/usb1
/dev/sdb1 973.1M 217.6M 755.5M 22% /tmp/usb2
#
# pwd
/tmp
# mkdir usb1
# mkdir usb2
# ls -al /dev/sd*
brw-rw---- 1 root root 8, 0 Jan 1 00:04 /dev/sda
brw-rw---- 1 root root 8, 1 Jan 1 00:04 /dev/sda1
brw-rw---- 1 root root 8, 2 Jan 1 00:04 /dev/sdb
brw-rw---- 1 root root 8, 3 Jan 1 00:04 /dev/sdb1
# ls -al
drwxrwxrwt 3 root root 200 Jan 1 00:00 .
phys=(987, 31, 63) logical=(988, 30, 30)
Disk /dev/sdb: 1020 MB, 1020788736 bytes
32 heads, 63 sectors/track, 988 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 989 6 FAT16
Partition 1 has different physical/logical endings:
/dev/sda1 1 3117 3973116 b Win95 FAT32
Device Boot Start End Blocks Id System
Eddy login: eddy
Password:
# fdisk -l
Disk /dev/sda: 4068 MB, 4068474880 bytes
51 heads, 50 sectors/track, 3116 cylinders
Units = cylinders of 2550 * 512 = 1305600 bytes
4-7