root@Cyber-Goth:/home/syman# fdisk /dev/hdb Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): v 62 unallocated sectors Command (m for help): x Expert command (m for help): m Command action b move beginning of data in a partition c change number of cylinders d print the raw data in the partition table e list extended partitions f fix partition order g create an IRIX (SGI) partition table h change number of heads m print this menu p print the partition table q quit without saving changes r return to main menu s change number of sectors/track v verify the partition table w write table to disk and exit Expert command (m for help): p Disk /dev/hdb: 64 heads, 63 sectors, 1023 cylinders Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID 1 00 1 1 0 63 63 1022 63 4124673 83 2 00 0 0 0 0 0 0 0 0 00 3 00 0 0 0 0 0 0 0 0 00 4 00 0 0 0 0 0 0 0 0 00 Expert command (m for help): q root@Cyber-Goth:/home/syman# dd if=/dev/zero of=/dev/hdb1 dd: writing to `/dev/hdb1': No space left on device 4124674+0 records in 4124673+0 records out 2111832576 bytes (2.1 GB) copied, 471.908 seconds, 4.5 MB/s root@Cyber-Goth:/home/syman# fdisk /dev/hdb Command (m for help): d Selected partition 1 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1023, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1023, default 1023): Using default value 1023 Command (m for help): p Disk /dev/hdb: 2111 MB, 2111864832 bytes 64 heads, 63 sectors/track, 1023 cylinders Units = cylinders of 4032 * 512 = 2064384 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 1023 2062336+ 83 Linux Command (m for help): a Partition number (1-4): 1 Command (m for help): t Selected partition 1 Hex code (type L to list codes): 1 Changed system type of partition 1 to 1 (FAT12) Command (m for help): t Selected partition 1 Hex code (type L to list codes): 1 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@Cyber-Goth:/home/syman# mke2fs /dev/hdb1 mke2fs 1.38 (30-Jun-2005) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 258048 inodes, 515584 blocks 25779 blocks (5.00%) reserved for the super user First data block=0 16 block groups 32768 blocks per group, 32768 fragments per group 16128 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 33 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. root@Cyber-Goth:/home/syman# fsck -vv -c /dev/hdb1 fsck 1.38 (30-Jun-2005) e2fsck 1.38 (30-Jun-2005) Checking for bad blocks (read-only test): done 584 Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/hdb1: ***** FILE SYSTEM WAS MODIFIED ***** 11 inodes used (0%) 0 non-contiguous inodes (0.0%) # of inodes with ind/dind/tind blocks: 0/0/0 8113 blocks used (1%) 0 bad blocks 0 large files 0 regular files 2 directories 0 character device files 0 block device files 0 fifos 0 links 0 symbolic links (0 fast symbolic links) 0 sockets -------- 2 files root@Cyber-Goth:/home/syman#