Creating a ZIP Disk for Use in the Lab
[root@SSU37805 root]# fdisk /dev/hdb Command (m for help): p Disk /dev/hdb: 64 heads, 32 sectors, 96 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 31 31728 6 FAT16 /dev/hdb2 32 96 66560 83 Linux Command (m for help): d Partition number (1-4): 2 Command (m for help): d Partition number (1-4): 1 Command (m for help): p Disk /dev/hdb: 64 heads, 32 sectors, 96 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-96, default 1): <-- accept the default Last cylinder or +size or +sizeM or +sizeK (1-96, default 96): +30M Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (32-96, default 32): <-- accept the default Using default value 32 Last cylinder or +size or +sizeM or +sizeK (32-96, default 96): <-- accept the default Using default value 96 Command (m for help): p Disk /dev/hdb: 64 heads, 32 sectors, 96 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 31 31728 83 Linux /dev/hdb2 32 96 66560 83 Linux Command (m for help): t Partition number (1-4): 1 Hex code (type L to list codes): 6 Changed system type of partition 1 to 6 (FAT16) Command (m for help): p Disk /dev/hdb: 64 heads, 32 sectors, 96 cy Disk /dev/hdb: 64 heads, 32 sectors, 96 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 31 31728 6 FAT16 /dev/hdb2 32 96 66560 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks. [root@SSU37805 root]#
[root@SSU37805 root]# mke2fs /dev/hdb2 mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 16704 inodes, 66560 blocks 3328 blocks (5.00%) reserved for the super user First data block=1 9 block groups 8192 blocks per group, 8192 fragments per group 1856 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345 Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 23 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@SSU37805 root]#
root@SSU37805 root]# mount /dev/hdb2 /mnt/zip [root@SSU37805 root]#
[root@SSU37805 /]# cp -aR /home/* /mnt/zip [root@SSU37805 /]#
[root@SSU37805 /]# eject /dev/hdb [root@SSU37805 /]#