Script started on Wed 17 Sep 2003 10:39:24 AM HKT ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ ls sudo fdisk -l Password: Disk /dev/hdc: 40.0 GB, 40020664320 bytes 240 heads, 63 sectors/track, 5169 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hdc1 * 1 4336 32780128+ c Win95 FAT32 (LBA) /dev/hdc2 4337 5169 6297480 f Win95 Ext'd (LBA) /dev/hdc5 4337 5014 5125648+ 83 Linux /dev/hdc6 5015 5169 1171768+ 82 Linux swap Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 7 HPFS/NTFS /dev/hda6 520 908 2940808+ 7 HPFS/NTFS /dev/hda7 909 1297 2940808+ 7 HPFS/NTFS /dev/hda8 1298 1363 498928+ 82 Linux swap /dev/hda9 1364 2656 9775048+ 83 Linux ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sudo fidk disk /dev/hda Password: The number of cylinders for this disk is set to 5318. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 7 HPFS/NTFS /dev/hda6 520 908 2940808+ 7 HPFS/NTFS /dev/hda7 909 1297 2940808+ 7 HPFS/NTFS /dev/hda8 1298 1363 498928+ 82 Linux swap /dev/hda9 1364 2656 9775048+ 83 Linux 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): d Partition number (1-9): 9 Command (m for help): d Partition number (1-8): 8 Command (m for help): d Partition number (1-7): 7 Command (m for help): d Partition number (1-6): 6 Command (m for help): d Partition number (1-5): 5 Command (m for help): d Partition number (1-5): 4 Warning: partition 4 has empty type Command (m for help): d Partition number (1-5): 2 Command (m for help): d Selected partition 1 Command (m for help): 1 1: unknown command 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): d No partition is defined yet! Command (m for help): 1 1: unknown command 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): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 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-5318, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-5318, default 5318): +1g Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ 83 Linux Command (m for help): t Selected partition 1 Hex code (type L to list codes): l 0 Empty 1c Hidden Win95 FA 70 DiskSecure Mult bb Boot Wizard hid 1 FAT12 1e Hidden Win95 FA 75 PC/IX be Solaris boot 2 XENIX root 24 NEC DOS 80 Old Minix c1 DRDOS/sec (FAT- 3 XENIX usr 39 Plan 9 81 Minix / old Lin c4 DRDOS/sec (FAT- 4 FAT16 <32M 3c PartitionMagic 82 Linux swap c6 DRDOS/sec (FAT- 5 Extended 40 Venix 80286 83 Linux c7 Syrinx 6 FAT16 41 PPC PReP Boot 84 OS/2 hidden C: da Non-FS data 7 HPFS/NTFS 42 SFS 85 Linux extended db CP/M / CTOS / . 8 AIX 4d QNX4.x 86 NTFS volume set de Dell Utility 9 AIX bootable 4e QNX4.x 2nd part 87 NTFS volume set df BootIt a OS/2 Boot Manag 4f QNX4.x 3rd part 8e Linux LVM e1 DOS access b Win95 FAT32 50 OnTrack DM 93 Amoeba e3 DOS R/O c Win95 FAT32 (LB 51 OnTrack DM6 Aux 94 Amoeba BBT e4 SpeedStor e Win95 FAT16 (LB 52 CP/M 9f BSD/OS eb BeOS fs f Win95 Ext'd (LB 53 OnTrack DM6 Aux a0 IBM Thinkpad hi ee EFI GPT 10 OPUS 54 OnTrackDM6 a5 FreeBSD ef EFI (FAT-12/16/ 11 Hidden FAT12 55 EZ-Drive a6 OpenBSD f0 Linux/PA-RISC b 12 Compaq diagnost 56 Golden Bow a7 NeXTSTEP f1 SpeedStor 14 Hidden FAT16 <3 5c Priam Edisk a8 Darwin UFS f4 SpeedStor 16 Hidden FAT16 61 SpeedStor a9 NetBSD f2 DOS secondary 17 Hidden HPFS/NTF 63 GNU HURD or Sys ab Darwin boot fd Linux raid auto 18 AST SmartSleep 64 Novell Netware b7 BSDI fs fe LANstep 1b Hidden Win95 FA 65 Novell Netware b8 BSDI swap ff BBT Hex code (type L to list codes): c Changed system type of partition 1 to c (Win95 FAT32 (LBA)) Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) Command (m for help): n Command action e extended p primary partition (1-4) e Partition number (1-4): 2 First cylinder (131-5318, default 131): Using default value 131 Last cylinder or +size or +sizeM or +sizeK (131-5318, default 5318): Using default value 5318 Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 5 Extended Command (m for help): t Partition number (1-5): l 2 Hex code (type L to list codes): l 0 Empty 1c Hidden Win95 FA 70 DiskSecure Mult bb Boot Wizard hid 1 FAT12 1e Hidden Win95 FA 75 PC/IX be Solaris boot 2 XENIX root 24 NEC DOS 80 Old Minix c1 DRDOS/sec (FAT- 3 XENIX usr 39 Plan 9 81 Minix / old Lin c4 DRDOS/sec (FAT- 4 FAT16 <32M 3c PartitionMagic 82 Linux swap c6 DRDOS/sec (FAT- 5 Extended 40 Venix 80286 83 Linux c7 Syrinx 6 FAT16 41 PPC PReP Boot 84 OS/2 hidden C: da Non-FS data 7 HPFS/NTFS 42 SFS 85 Linux extended db CP/M / CTOS / . 8 AIX 4d QNX4.x 86 NTFS volume set de Dell Utility 9 AIX bootable 4e QNX4.x 2nd part 87 NTFS volume set df BootIt a OS/2 Boot Manag 4f QNX4.x 3rd part 8e Linux LVM e1 DOS access b Win95 FAT32 50 OnTrack DM 93 Amoeba e3 DOS R/O c Win95 FAT32 (LB 51 OnTrack DM6 Aux 94 Amoeba BBT e4 SpeedStor e Win95 FAT16 (LB 52 CP/M 9f BSD/OS eb BeOS fs f Win95 Ext'd (LB 53 OnTrack DM6 Aux a0 IBM Thinkpad hi ee EFI GPT 10 OPUS 54 OnTrackDM6 a5 FreeBSD ef EFI (FAT-12/16/ 11 Hidden FAT12 55 EZ-Drive a6 OpenBSD f0 Linux/PA-RISC b 12 Compaq diagnost 56 Golden Bow a7 NeXTSTEP f1 SpeedStor 14 Hidden FAT16 <3 5c Priam Edisk a8 Darwin UFS f4 SpeedStor 16 Hidden FAT16 61 SpeedStor a9 NetBSD f2 DOS secondary 17 Hidden HPFS/NTF 63 GNU HURD or Sys ab Darwin boot fd Linux raid auto 18 AST SmartSleep 64 Novell Netware b7 BSDI fs fe LANstep 1b Hidden Win95 FA 65 Novell Netware b8 BSDI swap ff BBT Hex code (type L to list codes): f Changed system type of partition 2 to f (Win95 Ext'd (LBA)) Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (131-5318, default 131): Using default value 131 Last cylinder or +size or +sizeM or +sizeK (131-5318, default 5318): +3g Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 83 Linux Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (520-5318, default 520): Using default value 520 Last cylinder or +size or +sizeM or +sizeK (520-5318, default 5318): +3g Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 83 Linux /dev/hda6 520 908 2940808+ 83 Linux Command (m for help): t Partition number (1-6): 5 Hex code (type L to list codes): l 0 Empty 1c Hidden Win95 FA 70 DiskSecure Mult bb Boot Wizard hid 1 FAT12 1e Hidden Win95 FA 75 PC/IX be Solaris boot 2 XENIX root 24 NEC DOS 80 Old Minix c1 DRDOS/sec (FAT- 3 XENIX usr 39 Plan 9 81 Minix / old Lin c4 DRDOS/sec (FAT- 4 FAT16 <32M 3c PartitionMagic 82 Linux swap c6 DRDOS/sec (FAT- 5 Extended 40 Venix 80286 83 Linux c7 Syrinx 6 FAT16 41 PPC PReP Boot 84 OS/2 hidden C: da Non-FS data 7 HPFS/NTFS 42 SFS 85 Linux extended db CP/M / CTOS / . 8 AIX 4d QNX4.x 86 NTFS volume set de Dell Utility 9 AIX bootable 4e QNX4.x 2nd part 87 NTFS volume set df BootIt a OS/2 Boot Manag 4f QNX4.x 3rd part 8e Linux LVM e1 DOS access b Win95 FAT32 50 OnTrack DM 93 Amoeba e3 DOS R/O c Win95 FAT32 (LB 51 OnTrack DM6 Aux 94 Amoeba BBT e4 SpeedStor e Win95 FAT16 (LB 52 CP/M 9f BSD/OS eb BeOS fs f Win95 Ext'd (LB 53 OnTrack DM6 Aux a0 IBM Thinkpad hi ee EFI GPT 10 OPUS 54 OnTrackDM6 a5 FreeBSD ef EFI (FAT-12/16/ 11 Hidden FAT12 55 EZ-Drive a6 OpenBSD f0 Linux/PA-RISC b 12 Compaq diagnost 56 Golden Bow a7 NeXTSTEP f1 SpeedStor 14 Hidden FAT16 <3 5c Priam Edisk a8 Darwin UFS f4 SpeedStor 16 Hidden FAT16 61 SpeedStor a9 NetBSD f2 DOS secondary 17 Hidden HPFS/NTF 63 GNU HURD or Sys ab Darwin boot fd Linux raid auto 18 AST SmartSleep 64 Novell Netware b7 BSDI fs fe LANstep 1b Hidden Win95 FA 65 Novell Netware b8 BSDI swap ff BBT Hex code (type L to list codes): 7 Changed system type of partition 5 to 7 (HPFS/NTFS) Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 7 HPFS/NTFS /dev/hda6 520 908 2940808+ 83 Linux Command (m for help): t Partition number (1-6): 6 Hex code (type L to list codes): 7 Changed system type of partition 6 to 7 (HPFS/NTFS) Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (909-5318, default 909): Using default value 909 Last cylinder or +size or +sizeM or +sizeK (909-5318, default 5318): +3g Command (m for help): t Partition number (1-7): 7 Hex code (type L to list codes): 7 Changed system type of partition 7 to 7 (HPFS/NTFS) Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 7 HPFS/NTFS /dev/hda6 520 908 2940808+ 7 HPFS/NTFS /dev/hda7 909 1297 2940808+ 7 HPFS/NTFS Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (1298-5318, default 1298): Using default value 1298 Last cylinder or +size or +sizeM or +sizeK (1298-5318, default 5318): +500m Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (1364-5318, default 1364): Using default value 1364 Last cylinder or +size or +sizeM or +sizeK (1364-5318, default 5318): +10g Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 7 HPFS/NTFS /dev/hda6 520 908 2940808+ 7 HPFS/NTFS /dev/hda7 909 1297 2940808+ 7 HPFS/NTFS /dev/hda8 1298 1363 498928+ 83 Linux /dev/hda9 1364 2656 9775048+ 83 Linux Command (m for help): ^[[6~^[[6~^[[6~               t Partition number (1-9): 8 Hex code (type L to list codes): 82 Changed system type of partition 8 to 82 (Linux swap) Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 7 HPFS/NTFS /dev/hda6 520 908 2940808+ 7 HPFS/NTFS /dev/hda7 909 1297 2940808+ 7 HPFS/NTFS /dev/hda8 1298 1363 498928+ 82 Linux swap /dev/hda9 1364 2656 9775048+ 83 Linux Command (m for help): a Partition number (1-9): 1 Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 130 982768+ c Win95 FAT32 (LBA) /dev/hda2 131 5318 39221280 f Win95 Ext'd (LBA) /dev/hda5 131 519 2940808+ 7 HPFS/NTFS /dev/hda6 520 908 2940808+ 7 HPFS/NTFS /dev/hda7 909 1297 2940808+ 7 HPFS/NTFS /dev/hda8 1298 1363 498928+ 82 Linux swap /dev/hda9 1364 2656 9775048+ 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. ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ man pasrtedrted [?1048h[?1047h[?1h=PARTED(8) GNU Parted Manual PARTED(8) NAME GNU Parted - a partition manipulation program SYNOPSIS parted [options] [device [command [options...]...]] DESCRIPTION This manual page documents briefly the parted command. Complete docu- mentation is distributed with the package in GNU Info format; see below. parted is a disk partitioning and partition resizing program. It allows you to create, destroy, resize, move and copy ext2, ext3, linux- swap, FAT and FAT32 partitions. This is useful for creating space for new operating systems, reorganising disk usage, and copying data to new hard disks. OPTIONS -h, --help displays a help message. -i, --interactive where necessary, prompts for user intervention. : ESCESC[[66~~ -s, --script never prompts for user intervention. -v, --version displays the version. COMMANDS [device] The block device to partition. [command [options]] Specifies a command to parted. If no command is given, parted will give you a command prompt. Commands are: check partition does a simple check on partition. cp [source-device] source dest copies the source partition’s filesystem on source-device (or the current device if no other device was specified) to the dest partition on the current device. help [command] prints general help, or help on command if specified. : ESCESCOOBB : ESCESCOOBB mkfs partition fs-type : ESCESCOOBB make a filesystem fs-type on partition. fs-type can be : ESCESCOOBB one of "FAT", "ext2" or "linux-swap". : ESCESCOOBB : ESCESCOOBB mklabel label-type : ESCESCOOBB Creates a new disklabel (partition table) of label-type. : ESCESCOOBB label-type should be one of "bsd", "gpt", "loop", "mac", : ESCESCOOBB "mips", "msdos", "pc98" or "sun". : ESCESCOOBB : ESCESCOOBB mkpart part-type [fs-type] start end : ESCESCOOBB make a part-type partition with filesystem fs-type (if : ESCESCOOBB specified), beginning at start and ending at end (in : ESCESCOOBB megabytes). part-type should be one of "primary", "logi- : ESCESCOOBB cal" or "extended" : ESCESCOOBB : ESCESCOOBB mkpartfs part-type fs-type start end : ESCESCOOBB make a part-type partition with filesystem fs-type begin- : ESCESCOOBB ning at start and ending at end (in megabytes) : ESCESCOOBB : ESCESCOOBB move partition start end : ESCESCOOBB move partition to start at start and end at end. Note: : ESCESCOOBB move never changes the minor number : ESCESCOOBB : ESCESCOOBB name partition name : ESCESCOOBB set the name of partition to name. This option works only : ESCESCOOBB on Mac and PC98 disklabels. The name can be placed in : ESCESCOOBB quotes, if necessary : ESCESCOOBB : ESCESCOOBB print displays the partition table : ESCESCOOBB : ESCESCOOBB quit exits parted : ESCESCOOBB : ESCESCOOBB resize partition start end : ESCESCOOBB resize the filesystem on partition to start at start and : ESCESCOOBB end at end megabytes : ESCESCOOBB : ESCESCOOBB rm partition : ESCESCOOBB deletes partition : ESCESCOOBB : ESCESCOOBB select device : ESCESCOOBB choose device as the current device to edit. device : ESCESCOOBB should usually be a Linux hard disk device, but it can be : ESCESCOOBB a partition, software raid device or a LVM logical volume : ESCESCOOBB if that is necessary : ESCESCOOBB : ESCESCOOBB set partition flag state : ESCESCOOBB change the state of the flag on partition to state. Flags : ESCESCOOBB supported are: "boot", "root", "swap", "hidden", "raid", : ESCESCOOBB "lvm" and "lba". state should be either "on" or "off" : ESCESCOOBB : ESCESCOOBBREPORTING BUGS : ESCESCOOBB Report bugs to : ESCESCOOBB : ESCESCOOBBSEE ALSO : ESCESCOOBB fdisk(8), mkfs(8), The parted program is documented fully in the GNU : ESCESCOOBB partitioning software manual available via the Info system. : ESCESCOOBB : ESCESCOOBBAUTHOR : ESCESCOOBB This manual page was written by Timshel Knoll , for : ESCESCOOBB the Debian GNU/Linux system (but may be used by others). : ESCESCOOBB : ESCESCOOBBparted 18 Mar, 2002 PARTED(8) : ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOBB(END)  ESCESCOOAAM rm partition : ESCESCOOAAM : ESCESCOOAAM end at end megabytes : ESCESCOOAAM resize the filesystem on partition to start at start and : ESCESCOOAAM resize partition start end : ESCESCOOAAM : ESCESCOOAAM quit exits parted : ESCESCOOAAM : ESCESCOOAAM print displays the partition table : ESCESCOOAAM : ESCESCOOAAM quotes, if necessary : ESCESCOOAAM on Mac and PC98 disklabels. The name can be placed in : ESCESCOOAAM set the name of partition to name. This option works only : ESCESCOOAAM name partition name : ESCESCOOAAM : ESCESCOOAAM move never changes the minor number : ESCESCOOAAM move partition to start at start and end at end. Note: : ESCESCOOAAM move partition start end : ESCESCOOAAM : ESCESCOOAAM ning at start and ending at end (in megabytes) : ESCESCOOAAM make a part-type partition with filesystem fs-type begin- : ESCESCOOAAM mkpartfs part-type fs-type start end : ESCESCOOAAM : ESCESCOOAAM cal" or "extended" : ESCESCOOAAM megabytes). part-type should be one of "primary", "logi- : ESCESCOOAAM specified), beginning at start and ending at end (in : ESCESCOOAAM make a part-type partition with filesystem fs-type (if : ESCESCOOAAM mkpart part-type [fs-type] start end : ESCESCOOAAM : ESCESCOOAAM "mips", "msdos", "pc98" or "sun". : ESCESCOOAAM label-type should be one of "bsd", "gpt", "loop", "mac", : ESCESCOOAAM Creates a new disklabel (partition table) of label-type. : ESCESCOOAAM mklabel label-type : ESCESCOOAAM : ESCESCOOAAM one of "FAT", "ext2" or "linux-swap". : ESCESCOOAAM make a filesystem fs-type on partition. fs-type can be : ESCESCOOAAM mkfs partition fs-type : ESCESCOOAAM : ESCESCOOAAM prints general help, or help on command if specified. : ESCESCOOAAM help [command] : ESCESCOOAAM : ESCESCOOAAM to the dest partition on the current device. : ESCESCOOAAM (or the current device if no other device was specified) : ESCESCOOAAM copies the source partition’s filesystem on source-device : ESCESCOOAAM cp [source-device] source dest : ESCESCOOAAM : ESCESCOOAAM does a simple check on partition. : ESCESCOOAAM check partition : ESCESCOOAAM : ESCESCOOAAM will give you a command prompt. Commands are: : ESCESCOOAAM Specifies a command to parted. If no command is given, parted : ESCESCOOAAM [command [options]] : ESCESCOOAAM : ESCESCOOAAM The block device to partition. : ESCESCOOAAM [device] : ESCESCOOAAMCOMMANDS : ESCESCOOAAM : ESCESCOOAAM displays the version. : ESCESCOOBB mklabel label-type : ESCESCOOBB Creates a new disklabel (partition table) of label-type. : ESCESCOOBB label-type should be one of "bsd", "gpt", "loop", "mac", : ESCESCOOBB "mips", "msdos", "pc98" or "sun". : ESCESCOOBB : ESCESCOOBB mkpart part-type [fs-type] start end : ESCESCOOBB make a part-type partition with filesystem fs-type (if : ESCESCOOBB specified), beginning at start and ending at end (in : ESCESCOOBB megabytes). part-type should be one of "primary", "logi- : ESCESCOOBB cal" or "extended" : ESCESCOOBB : ESCESCOOBB mkpartfs part-type fs-type start end : ESCESCOOBB make a part-type partition with filesystem fs-type begin- : ESCESCOOBB ning at start and ending at end (in megabytes) : ESCESCOOBB : ESCESCOOBB move partition start end : ESCESCOOBB move partition to start at start and end at end. Note: : ESCESCOOBB move never changes the minor number : ESCESCOOBB : ESCESCOOBB name partition name : ESCESCOOBB set the name of partition to name. This option works only : ESCESCOOBB on Mac and PC98 disklabels. The name can be placed in : ESCESCOOBB quotes, if necessary : ESCESCOOBB : ESCESCOOBB print displays the partition table : ESCESCOOBB : ESCESCOOBB quit exits parted : ESCESCOOBB : ESCESCOOBB resize partition start end : ESCESCOOBB resize the filesystem on partition to start at start and : ESCESCOOBB end at end megabytes : ESCESCOOBB : specified), beginning at start and ending at end (in  megabytes). part-type should be one of "primary", "logi-  cal" or "extended"   mkpartfs part-type fs-type start end  make a part-type partition with filesystem fs-type begin-  ning at start and ending at end (in megabytes)   move partition start end  move partition to start at start and end at end. Note:  move never changes the minor number   name partition name  set the name of partition to name. This option works only  on Mac and PC98 disklabels. The name can be placed in  quotes, if necessary   print displays the partition table   quit exits parted   resize partition start end  resize the filesystem on partition to start at start and  end at end megabytes :[?1l>[?1047l[?1048l]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ parted --help Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...] Apply COMMANDs with PARAMETERS to DEVICE. If no COMMAND(s) are given, runs in interactive mode. OPTIONs: -h, --help displays this help message -i, --interactive where necessary, prompts for user intervention -s, --script never prompts for user intervention -v, --version displays the version COMMANDs: check MINOR do a simple check on the filesystem cp [FROM-DEVICE] FROM-MINOR TO-MINOR copy filesystem to another partition help [COMMAND] prints general help, or help on COMMAND mklabel LABEL-TYPE create a new disklabel (partition table) mkfs MINOR FS-TYPE make a filesystem FS-TYPE on partititon MINOR mkpart PART-TYPE [FS-TYPE] START END make a partition mkpartfs PART-TYPE FS-TYPE START END make a partition with a filesystem move MINOR START END move partition MINOR name MINOR NAME name partition MINOR NAME print [MINOR] display the partition table, or a partition quit exit program rescue START END rescue a lost partition near START and END resize MINOR START END resize filesystem on partition MINOR rm MINOR delete partition MINOR select DEVICE choose the device to edit set MINOR FLAG STATE change a flag on partition MINOR ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ /papareted /dev/hda$ [1@s[1@u[1@d[1@o[1@ Password: GNU Parted 1.6.3 Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Using /dev/hda Information: The operating system thinks the geometry on /dev/hda is 5318/240/63. Therefore, cylinder 1024 ends at 7559.999M. (parted) (parted) (parted) h(parted) h(parted) he(parted) he(parted) hel(parted) hel(parted) help(parted) help check MINOR do a simple check on the filesystem cp [FROM-DEVICE] FROM-MINOR TO-MINOR copy filesystem to another partition help [COMMAND] prints general help, or help on COMMAND mklabel LABEL-TYPE create a new disklabel (partition table) mkfs MINOR FS-TYPE make a filesystem FS-TYPE on partititon MINOR mkpart PART-TYPE [FS-TYPE] START END make a partition mkpartfs PART-TYPE FS-TYPE START END make a partition with a filesystem move MINOR START END move partition MINOR name MINOR NAME name partition MINOR NAME print [MINOR] display the partition table, or a partition quit exit program rescue START END rescue a lost partition near START and END resize MINOR START END resize filesystem on partition MINOR rm MINOR delete partition MINOR select DEVICE choose the device to edit set MINOR FLAG STATE change a flag on partition MINOR (parted) (parted) (parted) p(parted) p(parted) pi(parted) pi(parted) pin(parted) pin(parted) pinr(parted) pinr(parted) pin(parted) pin(parted) pint(parted) pint(parted) pin(parted) pin(parted) pi(parted) pi(parted) p(parted) p(parted) pr(parted) pr(parted) pri(parted) pri(parted) prin(parted) prin(parted) print(parted) print Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 959.765 primary boot, lba 2 959.766 39261.796 extended lba 5 959.796 3831.679 logical 6 3831.710 6703.593 logical 7 6703.625 9575.507 logical 8 9575.539 10062.773 logical 9 10062.804 19608.750 logical (parted) (parted) (parted) r(parted) r(parted) rm(parted) rm(parted) rm (parted) rm (parted) rm 9(parted) rm 9 (parted) (parted) (parted) r(parted) r(parted) (parted) (parted) (parted) rm 9(parted) rm 9(parted) print(parted) print Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 959.765 primary boot, lba 2 959.766 39261.796 extended lba 5 959.796 3831.679 logical 6 3831.710 6703.593 logical 7 6703.625 9575.507 logical 8 9575.539 10062.773 logical (parted) (parted) (parted) rm 9(parted) rm 9(parted) print(parted) print(parted) rm 9(parted) rm 9(parted) rm (parted) rm (parted) rm 8(parted) rm 8 (parted) (parted) (parted) rm 8(parted) rm 8(parted) rm (parted) rm (parted) rm 7(parted) rm 7 (parted) (parted) (parted) rm 7(parted) rm 7(parted) rm (parted) rm (parted) rm 6(parted) rm 6 (parted) (parted) (parted) rm 6(parted) rm 6(parted) rm (parted) rm (parted) rm 5(parted) rm 5 (parted) (parted) (parted) rm 5(parted) rm 5(parted) rm (parted) rm (parted) rm 4(parted) rm 4 Error: Partition doesn't exist. (parted) (parted) (parted) rm 4(parted) rm 4(parted) rm (parted) rm (parted) rm 2(parted) rm 2 (parted) (parted) (parted) rm 2(parted) rm 2(parted) rm (parted) rm (parted) rm 1(parted) rm 1 (parted) (parted) (parted) p(parted) p(parted) pr(parted) pr(parted) pri(parted) pri(parted) prin(parted) prin(parted) print(parted) print Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags (parted) (parted) (parted) h(parted) h(parted) he(parted) he(parted) hel(parted) hel(parted) help(parted) help check MINOR do a simple check on the filesystem cp [FROM-DEVICE] FROM-MINOR TO-MINOR copy filesystem to another partition help [COMMAND] prints general help, or help on COMMAND mklabel LABEL-TYPE create a new disklabel (partition table) mkfs MINOR FS-TYPE make a filesystem FS-TYPE on partititon MINOR mkpart PART-TYPE [FS-TYPE] START END make a partition mkpartfs PART-TYPE FS-TYPE START END make a partition with a filesystem move MINOR START END move partition MINOR name MINOR NAME name partition MINOR NAME print [MINOR] display the partition table, or a partition quit exit program rescue START END rescue a lost partition near START and END resize MINOR START END resize filesystem on partition MINOR rm MINOR delete partition MINOR select DEVICE choose the device to edit set MINOR FLAG STATE change a flag on partition MINOR (parted) (parted) (parted) m(parted) m(parted) mk(parted) mk(parted) mkp(parted) mkp(parted) mkpa(parted) mkpa(parted) mkpar(parted) mkpar(parted) mkpart(parted) mkpart(parted) mkpart (parted) mkpart (parted) mkpart(parted) mkpart(parted) mkpar(parted) mkpar(parted) mkpa(parted) mkpa(parted) mkp(parted) mkp(parted) mk(parted) mk(parted) m(parted) m(parted) (parted) (parted) (parted) (parted) (parted) (parted) (parted) h(parted) h(parted) he(parted) he(parted) hel(parted) hel(parted) help(parted) help(parted) help (parted) help (parted) help m(parted) help m(parted) help mk(parted) help mk(parted) help mkp(parted) help mkp(parted) help mkpa(parted) help mkpa(parted) help mkpar(parted) help mkpar(parted) help mkpart(parted) help mkpart(parted) help mkparty(parted) help mkparty(parted) help mkpart(parted) help mkpart mkpart PART-TYPE [FS-TYPE] START END make a partition PART-TYPE is one of: primary, logical, extended FS-TYPE is one of: ext3, ext2, fat32, fat16, hfs, jfs, linux-swap, ntfs, reiserfs, hp-ufs, sun-ufs, xfs START and END are in megabytes mkpart makes a partition without creating a new file system on the partition. FS-TYPE may be specified to set an appropriate partition ID. (parted) (parted) (parted) m(parted) m(parted) mk(parted) mk(parted) mkp(parted) mkp(parted) mkpa(parted) mkpa(parted) mkpar(parted) mkpar(parted) mkpart(parted) mkpart(parted) mkpart (parted) mkpart (parted) mkpart f(parted) mkpart f(parted) mkpart fa(parted) mkpart fa(parted) mkpart fat(parted) mkpart fat(parted) mkpart fat3(parted) mkpart fat3(parted) mkpart fat32(parted) mkpart fat32(parted) mkpart fat32 (parted) mkpart fat32 (parted) mkpart fat32 0(parted) mkpart fat32 0(parted) mkpart fat32 0 (parted) mkpart fat32 0 (parted) mkpart fat32 0 1(parted) mkpart fat32 0 1(parted) mkpart fat32 0 1G(parted) mkpart fat32 0 1G Partition type? primary/extended? Partition type? primary/extended? Partition type? primary/extended? pPartition type? primary/extended? pPartition type? primary/extended? prPartition type? primary/extended? prPartition type? primary/extended? priPartition type? primary/extended? priPartition type? primary/extended? primPartition type? primary/extended? primPartition type? primary/extended? primaPartition type? primary/extended? primaPartition type? primary/extended? primarPartition type? primary/extended? primarPartition type? primary/extended? primaryPartition type? primary/extended? primary File system type? [ext2]? File system type? [ext2]? File system type? [ext2]? fFile system type? [ext2]? fFile system type? [ext2]? faFile system type? [ext2]? faFile system type? [ext2]? fatFile system type? [ext2]? fatFile system type? [ext2]? fat3File system type? [ext2]? fat3File system type? [ext2]? fat32File system type? [ext2]? fat32 Start? Start? Start? 0Start? 0 End? End? End? 1End? 1End? 1GEnd? 1G (parted) (parted) (parted) p(parted) p(parted) pr(parted) pr(parted) pri(parted) pri(parted) prin(parted) prin(parted) print(parted) print Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 7.382 primary (parted) (parted) (parted) r(parted) r(parted) rm(parted) rm(parted) rm (parted) rm (parted) rm 1(parted) rm 1 (parted) (parted) (parted) rm 1(parted) rm 1(parted) print(parted) print(parted) 1G(parted) 1G(parted) 0(parted) 0(parted) fat32(parted) fat32(parted) primary(parted) primary(parted) mkpart fat32 0 1G(parted) mkpart fat32 0 1G(parted) mkpart fat32 0 1(parted) mkpart fat32 0 (parted) mkpart fat32 0(parted) mkpart fat32 (parted) mkpart fat32(parted) mkpart fat3(parted) mkpart fat(parted) mkpart fa(parted) mkpart f(parted) mkpart (parted) mkpart(parted) mkpart (parted) mkpart [1@p(parted) mkpart p(parted) mkpart p[1@r(parted) mkpart pr(parted) mkpart pr[1@i(parted) mkpart pri(parted) mkpart pri[1@m(parted) mkpart prim(parted) mkpart prim[1@a(parted) mkpart prima(parted) mkpart prima[1@r(parted) mkpart primar(parted) mkpart primar[1@y(parted) mkpart primary(parted) mkpart primary[1@ (parted) mkpart primary (parted) mkpart primary fat32 0 1G(parted) mkpart primary fat32 0 1(parted) mkpart primary fat32 0 1(parted) mkpart primary fat32 0 10(parted) mkpart primary fat32 0 10(parted) mkpart primary fat32 0 100(parted) mkpart primary fat32 0 100(parted) mkpart primary fat32 0 1000(parted) mkpart primary fat32 0 1000 (parted) (parted) (parted) p(parted) p(parted) pr(parted) pr(parted) pri(parted) pri Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary (parted) (parted) (parted) m(parted) m(parted) mk(parted) mk(parted) mkp(parted) mkp(parted) mkpa(parted) mkpa(parted) mkpar(parted) mkpar(parted) mkpart(parted) mkpart(parted) mkpart (parted) mkpart (parted) mkpart e(parted) mkpart e(parted) mkpart ex(parted) mkpart ex(parted) mkpart ext(parted) mkpart ext(parted) mkpart exte(parted) mkpart exte(parted) mkpart exten(parted) mkpart exten(parted) mkpart extend(parted) mkpart extend(parted) mkpart extende(parted) mkpart extende(parted) mkpart extended(parted) mkpart extended(parted) mkpart extended (parted) mkpart extended (parted) mkpart extended 1(parted) mkpart extended 1(parted) mkpart extended 10(parted) mkpart extended 10(parted) mkpart extended 100(parted) mkpart extended 100(parted) mkpart extended 1000(parted) mkpart extended 1000(parted) mkpart extended 1000 (parted) mkpart extended 1000 (parted) mkpart extended 1000 -(parted) mkpart extended 1000 -(parted) mkpart extended 1000 -0(parted) mkpart extended 1000 -0 (parted) (parted) (parted) p(parted) p(parted) pr(parted) pr Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba (parted) (parted) (parted) h(parted) h(parted) he(parted) he(parted) hel(parted) hel(parted) help(parted) help check MINOR do a simple check on the filesystem cp [FROM-DEVICE] FROM-MINOR TO-MINOR copy filesystem to another partition help [COMMAND] prints general help, or help on COMMAND mklabel LABEL-TYPE create a new disklabel (partition table) mkfs MINOR FS-TYPE make a filesystem FS-TYPE on partititon MINOR mkpart PART-TYPE [FS-TYPE] START END make a partition mkpartfs PART-TYPE FS-TYPE START END make a partition with a filesystem move MINOR START END move partition MINOR name MINOR NAME name partition MINOR NAME print [MINOR] display the partition table, or a partition quit exit program rescue START END rescue a lost partition near START and END resize MINOR START END resize filesystem on partition MINOR rm MINOR delete partition MINOR select DEVICE choose the device to edit set MINOR FLAG STATE change a flag on partition MINOR (parted) (parted) (parted) s(parted) s(parted) se(parted) se(parted) set(parted) set(parted) set (parted) set (parted) set 1(parted) set 1(parted) set 1 (parted) set 1 (parted) set 1 l(parted) set 1 l(parted) set 1 lb(parted) set 1 lb(parted) set 1 lba(parted) set 1 lba(parted) set 1 lba (parted) set 1 lba (parted) set 1 lba o(parted) set 1 lba o(parted) set 1 lba on(parted) set 1 lba on (parted) (parted) (parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba (parted) (parted) (parted) h(parted) h(parted) he(parted) he(parted) hel(parted) hel(parted) help(parted) help(parted) help (parted) help (parted) help s(parted) help s(parted) help se(parted) help se(parted) help set(parted) help set set MINOR FLAG STATE change a flag on partition MINOR MINOR is the partition number used by Linux. On msdos disk labels, the primary partitions number from 1-4, and logical partitions are 5 onwards. FLAG is one of: boot, root, swap, hidden, raid, lvm, lba, hp-service STATE is one of: on, off (parted) (parted) (parted) help set(parted) help set(parted) p(parted) p(parted) set 1 lba on(parted) set 1 lba on (parted) (parted) (parted) help set(parted) help set(parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba (parted) (parted) (parted) help set(parted) help set(parted) (parted) (parted) m(parted) m(parted) mk(parted) mk(parted) mkp(parted) mkp(parted) mkpa(parted) mkpa(parted) mkpar(parted) mkpar(parted) mkpart(parted) mkpart(parted) mkpart (parted) mkpart (parted) mkpart(parted) mkpart Partition type? primary/logical? Partition type? primary/logical? Partition type? primary/logical? lPartition type? primary/logical? lPartition type? primary/logical? loPartition type? primary/logical? loPartition type? primary/logical? logPartition type? primary/logical? logPartition type? primary/logical? logiPartition type? primary/logical? logiPartition type? primary/logical? logicPartition type? primary/logical? logicPartition type? primary/logical? logicaPartition type? primary/logical? logicaPartition type? primary/logical? logicalPartition type? primary/logical? logical File system type? [ext2]? File system type? [ext2]? File system type? [ext2]? ?File system type? [ext2]? ? File system type? [ext2]? File system type? [ext2]? File system type? [ext2]? nFile system type? [ext2]? nFile system type? [ext2]? ntFile system type? [ext2]? ntFile system type? [ext2]? ntfFile system type? [ext2]? ntfFile system type? [ext2]? ntfsFile system type? [ext2]? ntfs Start? Start? Start? 1Start? 1Start? 10Start? 10Start? 100Start? 100Start? 1000Start? 1000 End? End? End? 4End? 4End? 40End? 40End? 400End? 400End? 4000End? 4000 (parted) (parted) (parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical (parted) (parted) (parted) p(parted) p(parted) 4000(parted) 4000(parted) 1000(parted) 1000(parted) ntfs(parted) ntfs(parted) ?(parted) ?(parted) logical(parted) logical(parted) mkpart(parted) mkpart(parted) mkpart (parted) mkpart (parted) mkpart l(parted) mkpart l(parted) mkpart lo(parted) mkpart lo(parted) mkpart log(parted) mkpart log(parted) mkpart logi(parted) mkpart logi(parted) mkpart logic(parted) mkpart logic(parted) mkpart logica(parted) mkpart logica(parted) mkpart logical(parted) mkpart logical(parted) mkpart logical (parted) mkpart logical (parted) mkpart logical n(parted) mkpart logical n(parted) mkpart logical nt(parted) mkpart logical nt(parted) mkpart logical ntf(parted) mkpart logical ntf(parted) mkpart logical ntfs(parted) mkpart logical ntfs(parted) mkpart logical ntfs (parted) mkpart logical ntfs (parted) mkpart logical ntfs 4(parted) mkpart logical ntfs 4(parted) mkpart logical ntfs 40(parted) mkpart logical ntfs 40(parted) mkpart logical ntfs 400(parted) mkpart logical ntfs 400(parted) mkpart logical ntfs 4000(parted) mkpart logical ntfs 4000(parted) mkpart logical ntfs 4000 (parted) mkpart logical ntfs 4000 (parted) mkpart logical ntfs 4000 7(parted) mkpart logical ntfs 4000 7(parted) mkpart logical ntfs 4000 70(parted) mkpart logical ntfs 4000 70(parted) mkpart logical ntfs 4000 700(parted) mkpart logical ntfs 4000 700(parted) mkpart logical ntfs 4000 7000(parted) mkpart logical ntfs 4000 7000 (parted) (parted) (parted) mkpart logical ntfs 4000 7000(parted) mkpart logical ntfs 4000 7000(parted) mkpart logical ntfs 4000 700(parted) mkpart logical ntfs 4000 70(parted) mkpart logical ntfs 4000 7(parted) mkpart logical ntfs 4000 (parted) mkpart logical ntfs 4000(parted) mkpart logical ntfs 400(parted) mkpart logical ntfs 40(parted) mkpart logical ntfs 4(parted) mkpart logical ntfs (parted) mkpart logical ntfs 4(parted) mkpart logical ntfs (parted) mkpart logical ntfs (parted) mkpart logical ntfs [1@7(parted) mkpart logical ntfs 7(parted) mkpart logical ntfs 70(parted) mkpart logical ntfs 700(parted) mkpart logical ntfs 7000(parted) mkpart logical ntfs 7000 (parted) mkpart logical ntfs 7000 7(parted) mkpart logical ntfs 7000 000(parted) mkpart logical ntfs 7000 (parted) mkpart logical ntfs 7000 1000(parted) mkpart logical ntfs 7000 1(parted) mkpart logical ntfs 7000 10000(parted) mkpart logical ntfs 7000 10 (parted) (parted) (parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical 6 4001.515 6998.906 logical 7 6998.937 9996.328 logical (parted) (parted) (parted) p(parted) p(parted) mkpart logical ntfs 7000 10000(parted) mkpart logical ntfs 7000 10000(parted) mkpart logical ntfs 7000 1000(parted) mkpart logical ntfs 7000 100(parted) mkpart logical ntfs 7000 10(parted) mkpart logical ntfs 7000 1(parted) mkpart logical ntfs 7000 (parted) mkpart logical ntfs 7000(parted) mkpart logical ntfs 700(parted) mkpart logical ntfs 70(parted) mkpart logical ntfs 700(parted) mkpart logical ntfs 7000(parted) mkpart logical ntfs 7000 (parted) mkpart logical ntfs 700010000(parted) mkpart logical ntfs 7000(parted) mkpart logical ntfs 70010000(parted) mkpart logical ntfs 700(parted) mkpart logical ntfs 7010000(parted) mkpart logical ntfs 70(parted) mkpart logical ntfs 710000(parted) mkpart logical ntfs 7(parted) mkpart logical ntfs 10000(parted) mkpart logical ntfs (parted) mkpart logical ntfs 10000(parted) mkpart logical ntfs 10000 (parted) mkpart logical ntfs 10000 (parted) mkpart logical ntfs 10000 1(parted) mkpart logical ntfs 10000 1(parted) mkpart logical ntfs 10000 13(parted) mkpart logical ntfs 10000 13(parted) mkpart logical ntfs 10000 130(parted) mkpart logical ntfs 10000 130(parted) mkpart logical ntfs 10000 1300(parted) mkpart logical ntfs 10000 1300(parted) mkpart logical ntfs 10000 13000(parted) mkpart logical ntfs 10000 13000 (parted) (parted) (parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical 6 4001.515 6998.906 logical 7 6998.937 9996.328 logical 8 9996.359 13001.132 logical (parted) (parted) (parted) r(parted) r(parted) rm(parted) rm(parted) rm (parted) rm (parted) rm 8(parted) rm 8 (parted) (parted) (parted) rm 8(parted) rm 8(parted) p(parted) p(parted) mkpart logical ntfs 10000 13000(parted) mkpart logical ntfs 10000 13000(parted) mkpart logical ntfs 10000 1300(parted) mkpart logical ntfs 10000 130(parted) mkpart logical ntfs 10000 13(parted) mkpart logical ntfs 10000 1(parted) mkpart logical ntfs 10000 (parted) mkpart logical ntfs 10000(parted) mkpart logical ntfs 1000(parted) mkpart logical ntfs 100(parted) mkpart logical ntfs 10(parted) mkpart logical ntfs 1(parted) mkpart logical ntfs (parted) mkpart logical ntfs(parted) mkpart logical ntf(parted) mkpart logical ntfs(parted) mkpart logical ntf(parted) mkpart logical ntf(parted) mkpart logical nt(parted) mkpart logical nt(parted) mkpart logical n(parted) mkpart logical n(parted) mkpart logical (parted) mkpart logical (parted) mkpart logical [1@s(parted) mkpart logical s(parted) mkpart logical s[1@w(parted) mkpart logical sw(parted) mkpart logical sw[1@a(parted) mkpart logical swa(parted) mkpart logical swa[1@p(parted) mkpart logical swap(parted) mkpart logical swap (parted) mkpart logical swap 1(parted) mkpart logical swap 10(parted) mkpart logical swap 100(parted) mkpart logical swap 1000(parted) mkpart logical swap 10000(parted) mkpart logical swap 10000 (parted) mkpart logical swap 10000 1(parted) mkpart logical swap 10000 13(parted) mkpart logical swap 10000 130(parted) mkpart logical swap 10000 1300(parted) mkpart logical swap 10000 130(parted) mkpart logical swap 10000 13(parted) mkpart logical swap 10000 130(parted) mkpart logical swap 10000 1300(parted) mkpart logical swap 10000 13(parted) mkpart logical swap 10000 100(parted) mkpart logical swap 10000 1(parted) mkpart logical swap 10000 1000(parted) mkpart logical swap 10000 10(parted) mkpart logical swap 10000 10500(parted) mkpart logical swap 10000 105 File system type? [ext2]? File system type? [ext2]? File system type? [ext2]? lFile system type? [ext2]? lFile system type? [ext2]? liFile system type? [ext2]? liFile system type? [ext2]? linFile system type? [ext2]? linFile system type? [ext2]? linuFile system type? [ext2]? linuFile system type? [ext2]? linuxFile system type? [ext2]? linuxFile system type? [ext2]? linux File system type? [ext2]? linux File system type? [ext2]? linux sFile system type? [ext2]? linux sFile system type? [ext2]? linux swFile system type? [ext2]? linux swFile system type? [ext2]? linux swaFile system type? [ext2]? linux swaFile system type? [ext2]? linux swapFile system type? [ext2]? linux swap (parted) (parted) (parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical 6 4001.515 6998.906 logical 7 6998.937 9996.328 logical (parted) (parted) (parted) h(parted) h(parted) he(parted) he(parted) hel(parted) hel(parted) help(parted) help(parted) help (parted) help (parted) help m(parted) help m(parted) help mk(parted) help mk(parted) help mkp(parted) help mkp(parted) help mkpa(parted) help mkpa(parted) help mkpar(parted) help mkpar(parted) help mkpart(parted) help mkpart mkpart PART-TYPE [FS-TYPE] START END make a partition PART-TYPE is one of: primary, logical, extended FS-TYPE is one of: ext3, ext2, fat32, fat16, hfs, jfs, linux-swap, ntfs, reiserfs, hp-ufs, sun-ufs, xfs START and END are in megabytes mkpart makes a partition without creating a new file system on the partition. FS-TYPE may be specified to set an appropriate partition ID. (parted) (parted) (parted) help mkpart(parted) help mkpart(parted) p(parted) p(parted) linux swap(parted) linux swap(parted) mkpart logical swap 10000 10500(parted) mkpart logical swap 10000 10500(parted) mkpart logical swap 10000 1050(parted) mkpart logical swap 10000 105(parted) mkpart logical swap 10000 10(parted) mkpart logical swap 10000 1(parted) mkpart logical swap 10000 (parted) mkpart logical swap 10000(parted) mkpart logical swap 1000(parted) mkpart logical swap 100(parted) mkpart logical swap 10(parted) mkpart logical swap 1(parted) mkpart logical swap (parted) mkpart logical swap(parted) mkpart logical swa(parted) mkpart logical sw(parted) mkpart logical s(parted) mkpart logical (parted) mkpart logical(parted) mkpart logical (parted) mkpart logical [1@l(parted) mkpart logical l(parted) mkpart logical l[1@i(parted) mkpart logical li(parted) mkpart logical li[1@n(parted) mkpart logical lin(parted) mkpart logical lin[1@u(parted) mkpart logical linu(parted) mkpart logical linu[1@x(parted) mkpart logical linux(parted) mkpart logical linux[1@-(parted) mkpart logical linux- (parted) (parted) (parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical 6 4001.515 6998.906 logical 7 6998.937 9996.328 logical 8 9996.359 10498.359 logical (parted) (parted) (parted) p(parted) p(parted) mkpart logical linux-swap 10000 10500(parted) mkpart logical linux-swap 10000 10500(parted) mkpart logical linux-swap 10000 1050(parted) mkpart logical linux-swap 10000 105(parted) mkpart logical linux-swap 10000 10(parted) mkpart logical linux-swap 10000 1(parted) mkpart logical linux-swap 10000 (parted) mkpart logical linux-swap 10000(parted) mkpart logical linux-swap 1000(parted) mkpart logical linux-swap 100(parted) mkpart logical linux-swap 10(parted) mkpart logical linux-swap 1(parted) mkpart logical linux-swap (parted) mkpart logical linux-swap(parted) mkpart logical linux-(parted) mkpart logical linux-(parted) mkpart logical (parted) mkpart logical (parted) mkpart logical [1@e(parted) mkpart logical e(parted) mkpart logical e[1@x(parted) mkpart logical ex(parted) mkpart logical ex[1@t(parted) mkpart logical ext(parted) mkpart logical ext[1@3(parted) mkpart logical ext3(parted) mkpart logical ext3 (parted) mkpart logical ext3 1(parted) mkpart logical ext3 10(parted) mkpart logical ext3 100(parted) mkpart logical ext3 1000 10500(parted) mkpart logical ext3 10(parted) mkpart logical ext3 10[1@5(parted) mkpart logical ext3 105(parted) mkpart logical ext3 10500 10500(parted) mkpart logical ext3 10500 1050(parted) mkpart logical ext3 10500 105(parted) mkpart logical ext3 10500 10(parted) mkpart logical ext3 10500 1(parted) mkpart logical ext3 10500 0500(parted) mkpart logical ext3 10500 (parted) mkpart logical ext3 10500 20500(parted) mkpart logical ext3 10500 2 (parted) (parted) (parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical 6 4001.515 6998.906 logical 7 6998.937 9996.328 logical 8 9996.359 10498.359 logical 9 10498.390 20502.070 logical (parted) (parted) (parted) h(parted) h(parted) he(parted) he(parted) hel(parted) hel(parted) help(parted) help(parted) help (parted) help (parted) help s(parted) help s(parted) help se(parted) help se(parted) help set(parted) help set set MINOR FLAG STATE change a flag on partition MINOR MINOR is the partition number used by Linux. On msdos disk labels, the primary partitions number from 1-4, and logical partitions are 5 onwards. FLAG is one of: boot, root, swap, hidden, raid, lvm, lba, hp-service STATE is one of: on, off (parted) (parted) (parted) s(parted) s(parted) se(parted) se(parted) set(parted) set(parted) set (parted) set (parted) set 1(parted) set 1(parted) set 1 (parted) set 1 (parted) set 1 b(parted) set 1 b(parted) set 1 bo(parted) set 1 bo(parted) set 1 boo(parted) set 1 boo(parted) set 1 boot(parted) set 1 boot(parted) set 1 boot (parted) set 1 boot (parted) set 1 boot o(parted) set 1 boot o(parted) set 1 boot on(parted) set 1 boot on (parted) (parted) (parted) set 1 boot on(parted) set 1 boot on(parted) help set(parted) help set(parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary boot 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical 6 4001.515 6998.906 logical 7 6998.937 9996.328 logical 8 9996.359 10498.359 logical 9 10498.390 20502.070 logical (parted) (parted) (parted) set 1 boot on(parted) set 1 boot on(parted) set 1 boot o(parted) set 1 boot (parted) set 1 boot(parted) set 1 boo on(parted) set 1 boo(parted) set 1 bo on(parted) set 1 bo(parted) set 1 b on(parted) set 1 b(parted) set 1  on(parted) set 1 (parted) set 1 l on(parted) set 1 l(parted) set 1 lb on(parted) set 1 lb(parted) set 1 lba on(parted) set 1 lba (parted) (parted) (parted) set 1 lba on(parted) set 1 lba on(parted) set 1 [1@boot(parted) set 1 boot on(parted) help set(parted) help set(parted) p(parted) p Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary boot 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical 6 4001.515 6998.906 logical 7 6998.937 9996.328 logical 8 9996.359 10498.359 logical 9 10498.390 20502.070 logical (parted) (parted) (parted) h(parted) h(parted) he(parted) he(parted) hel(parted) hel(parted) help(parted) help check MINOR do a simple check on the filesystem cp [FROM-DEVICE] FROM-MINOR TO-MINOR copy filesystem to another partition help [COMMAND] prints general help, or help on COMMAND mklabel LABEL-TYPE create a new disklabel (partition table) mkfs MINOR FS-TYPE make a filesystem FS-TYPE on partititon MINOR mkpart PART-TYPE [FS-TYPE] START END make a partition mkpartfs PART-TYPE FS-TYPE START END make a partition with a filesystem move MINOR START END move partition MINOR name MINOR NAME name partition MINOR NAME print [MINOR] display the partition table, or a partition quit exit program rescue START END rescue a lost partition near START and END resize MINOR START END resize filesystem on partition MINOR rm MINOR delete partition MINOR select DEVICE choose the device to edit set MINOR FLAG STATE change a flag on partition MINOR (parted) (parted) (parted) q(parted) q(parted) qu(parted) qu(parted) qui(parted) qui(parted) quit(parted) quit Information: Don't forget to update /etc/fstab, if necessary. ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sync ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sync ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sync ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sync ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sync ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sync ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ [20@(reverse-i-search)`':(reverse-i-search)`': f': sudo fdisk /dev/hda[1@d(reverse-i-search)`fd': sudo [1@i(reverse-i-search)`fdi': sudo $$ sudo $ sudo f[1@f$ sudo fdisk$ sudo fdisk /dev/hda- /dev/hdal /dev/hda Password: Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 135 1020568+ 83 Linux /dev/hda2 136 5318 39183480 f Win95 Ext'd (LBA) /dev/hda5 136 542 3076888+ 7 HPFS/NTFS /dev/hda6 543 948 3069328+ 7 HPFS/NTFS /dev/hda7 949 1354 3069328+ 7 HPFS/NTFS /dev/hda8 1355 1422 514048+ 82 Linux swap /dev/hda9 1423 2777 10243768+ 83 Linux ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sudo fdisk -l /dev/hda$ sudo fdisk -l /dev/hda /dev/hda/dev/hda The number of cylinders for this disk is set to 5318. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 135 1020568+ 83 Linux /dev/hda2 136 5318 39183480 f Win95 Ext'd (LBA) /dev/hda5 136 542 3076888+ 7 HPFS/NTFS /dev/hda6 543 948 3069328+ 7 HPFS/NTFS /dev/hda7 949 1354 3069328+ 7 HPFS/NTFS /dev/hda8 1355 1422 514048+ 82 Linux swap /dev/hda9 1423 2777 10243768+ 83 Linux Command (m for help): t Partition number (1-9): 1 Hex code (type L to list codes): c Changed system type of partition 1 to c (Win95 FAT32 (LBA)) Command (m for help): p Disk /dev/hda: 41.1 GB, 41174138880 bytes 240 heads, 63 sectors/track, 5318 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 135 1020568+ c Win95 FAT32 (LBA) /dev/hda2 136 5318 39183480 f Win95 Ext'd (LBA) /dev/hda5 136 542 3076888+ 7 HPFS/NTFS /dev/hda6 543 948 3069328+ 7 HPFS/NTFS /dev/hda7 949 1354 3069328+ 7 HPFS/NTFS /dev/hda8 1355 1422 514048+ 82 Linux swap /dev/hda9 1423 2777 10243768+ 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. ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sudo fdisk /dev/hda-l /dev/hda$ syncudo parted /dev/hda$ sudo parted /d$ sudo parted /de$ sudo parted /dev$ sudo parted /dev/$ sudo parted /dev/h$ sudo parted /dev/hd$ sudo parted /dev/hda li print Disk geometry for /dev/hda: 0.000-39266.718 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 996.679 primary boot, lba 2 996.680 39261.796 extended lba 5 996.710 4001.484 logical 6 4001.515 6998.906 logical 7 6998.937 9996.328 logical 8 9996.359 10498.359 logical 9 10498.390 20502.070 logical Information: Don't forget to update /etc/fstab, if necessary. ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ dir /ls /mnt/floppy 2501_service.rtf PassRecover.ppt Router.ppt tftp.ppt ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ fdformat /dev/fd0 Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB. Formatting ... ioctl(FDFMTTRK): Device or resource busy ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sudo umount /mnt/floppy Password: ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ sudo umount /mnt/floppy$ fdformat /dev/fd0 Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB. Formatting ... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79done Verifying ... 0Problem reading cylinder 0, expected 18432, read 16384 ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ fdformat /dev/fd0 Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB. Formatting ... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79done Verifying ... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26Read: : Input/output error Problem reading cylinder 26, expected 18432, read -1 ]0;nicku@localhost:~/ossi/partition[nicku@localhost] ~/ossi/partition $ exit exit Script done on Wed 17 Sep 2003 01:08:28 PM HKT