Creating Partition
On the subsequent log, the highlights were my entry.
boot: dsl 2 _____ _____ _ Welcome To | _ \ / ___/ | | | | | | | |___ | | | | | | \___ \ | | | |_| | ___| | | |___ |_____/ /_____/ |_____| Built using Knoppix Technology. DSL comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Scanning for USB Devices... Done. Accessing DSL image at /dev/scdO... Total memory found: 126504 kB Creating /ramdisk (dynamic size=98124k) on shared memory...Done. Creating directories and symlinks on ramdisk...Done. Starting init process. INIT: version 2.78-knoppix booting Setting hostname to box Done. Running Linux Kernel 2.4.31. Processor 0 is Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz 2433MHz, 0 KB Cache ACPI Bios found, activating modules: ac battery button fan processor thermal USB found, managed by hotplug: (Re-)scanning USB devices... sync:[001 001 ] Done. Autoconfiguring devices... ___________ Done. Mouse is Generic PS/2 Wheel Mouse at /dev/psaux Scanning for Harddisk partitions and creating /etc/fstab... modprobe: modprobe: Can't locate module xfs modprobe: modprobe: Can't locate module minix modprobe: modprobe: Can't locate module hfs modprobe: modprobe: Can't locate module efs Done. Network device ethO detected, DHCP broadcasting for IP. (Backgrounding) Running dsl-4.11.rc2 Registering unionfs 1.0.14 INIT: Entering runlevel: 2 root@tty1[/]#
root@tty1[/]#cfdisk No partition table or unknown signature on partition table Do you wish to start with a zero table [y/N] ? y
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- Pri/Log Free Space 536.74 [ Help ] [ New ] [ Print ] [ Quit ] [ Units ] [ Write ] Create new partition from free space
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- Pri/Log Free Space 536.74 [Primary] [Logical] [Cancel] Create a new primary partition
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- Pri/Log Free Space 536.74 Size (in MB): 75
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- Pri/Log Free Space 536.74 [Beginning] [ End ] [ Cancel ] Add partition at beginning of free space
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Primary Linux 75.36 Pri/Log Free Space 461.39 [Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ] [ Units ] [ Write ] Togg1e bootable flag of the current partition
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 Pri/Log Free Space 461.39 [Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ] [ Units ] [ Write ] Togg1e bootable flag of the current partition
Press down arrow key once.
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 Pri/Log Free Space 461.39 [ Help ] [ New ] [ Print ] [ Quit ] [ Units ] [ Write ] Create new partition from free space
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 Pri/Log Free Space 461.39 [Primary] [Logical] [Cancel] Create a new primary partition
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 Pri/Log Free Space 461.39 Size (in MB): 150
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 Pri/Log Free Space 461.39 [Beginning] [ End ] [ Cancel ] Add partition at beginning of free space
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux 149.67 Pri/Log Free Space 311.73 [Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ] [ Units ] [ Write ] Change the files system type (DOS, Linux, OS/2 and so on)
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux 149.67 01 FAT12 17 Hidden HPFS/NTFS 55 EZ-Drive 94 Amoeba BBT DE Dell Utility 02 XENIX root 18 AST SmartSleep 56 Golden Bow 9F BSD/O3 DF BootIt 03 XENIX usr 1B Hidden Win95 FAT32 5C Priam Edisk A0 IBM Thinkpad hiberna El DOS access 04 FAT16 <32M 1C Hidden Win95 FAT32 ( 61 SpeedStor A5 FreeBSD E3 DOS R/O 05 Extended 1E Hidden Win95 FAT16 ( 63 GNU HURD or SysU A6 OpenBSD E4 SpeedStor 06 FAT16 24 NEC DOS 64 Novell Netware 286 A7 NeXTSTEP EB BeOS fs 07 HPFS/NTFS 39 Plan 9 65 Novell Netware 386 A8 Darwin UFS EE EFI GPT 08 AIX 3C PartitionMagic recov 70 DiskSecure Multi-Boo A9 NetBSD EF EFI (FAT-12/16/32) 09 AIX bootable 40 Venix 80286 75 PC/IX AB Darwin boot F0 Linux/PA-RISC boot 0A OS/2 Boot Manager 41 PPC PReP Boot 80 Old Minix B7 BSDI fs F1 SpeedStor 0B Win95 FAT32 42 SF3 81 Minix / old Linux B8 BSDI swap F4 SpeedStor 0C Win95 FAT32 (LBA) 4D QNX4.x 82 Linux swap BB Boot Wizard hidden F2 DOS secondary 0E Win95 FAT16 (LBA) 4E QNX4.x 2nd part 83 Linux BE Solaris boot FD Linux raid autodetec 0F Win95 Ext'd (LBA) 4F QNX4.x 3rd part 84 OS/2 hidden C: drive C1 DRDOS/sec (FAT-12) FE LANstep 10 OPUS 50 OnTrack DM 85 Linux extended C4 DRDOS/sec (FAT-16 < FF BBT 11 Hidden FAT12 51 OnTrack DM6 Aux1 86 NTFS volume set C6 DRDOS/sec (FAT-16) 12 Compaq diagnostic 52 CPM 87 NTFS volume set C7 Syrinx 14 Hidden FAT16 <32M 53 OnTrack DM6 Aux3 8E Linux LVM DA Non-F3 data 16 Hidden FAT16 54 OnTrackDM6 93 Amoeba DB CP/M / CTOS / ... Enter file system type:82
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux swap 149.67 Pri/Log Free Space 311.73 [Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ] [ Units ] [ Write ] Togg1e bootable flag of the current partition
Press down arrow key once.
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux swap 149.67 Pri/Log Free Space 311.73 [ Help ] [ New ] [ Print ] [ Quit ] [ Units ] [ Write ] Create new partition from free space
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux swap 149.67 Pri/Log Free Space 311.73 [Primary] [Logical] [Cancel] Create a new primary partition
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux swap 149.67 Pri/Log Free Space 311.73 Size (in MB): 311.72
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux swap 149.67 hda3 Primary Linux 311.73 [Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ] [ Units ] [ Write ] Write partition table to disk (this might destroy data)
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux swap 149.67 hda3 Primary Linux 311.73 Are you sure you want write the partition table to disk? (yes or no) yes Warning!! This may destroy data on your disk!
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux swap 149.67 hda3 Primary Linux 311.73 [Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ] [ Units ] [ Write ] Wrote partition table to disk Write partition table to disk (this might destroy data)
Next, I quit the cfdisk program, as I had written the partition table.
cfdisk 2.llz Disk Drive: /dev/hda Size: 536870912 bytes, 536 MB Heads: 32 Sectors per Track: 63 Cylinders: 520 Name Flags Part Type FS Type [Label] Size (MB) ----------------------------------------------------------------------------------------------------------------------------- hda1 Boot Primary Linux 75.36 hda2 Primary Linux swap 149.67 hda3 Primary Linux 311.73 [Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ] [ Units ] [ Write ] Quit program without writing partition table
Disk has been changed. Reboot the system to ensure the partition table is correctly updated. WARNING: If you have created or modified any DOS 6.x partitions, please see the cfdisk manual page for additional information. root@tty1[/]#
Creating File System on the Partition
root@tty1[/]# mke2fs /dev/hda1 mke2fs 1.34-WIP (21-May-2003) Filesystem label= OS type: Linux Block size=l024 (log=0) Fragment size=1024 (log=0) 18432 inodes, 73552 blocks 3677 blocks (5.00%) reserved for the super user First data block=1 9 block groups 8192 blocks per group, 8192 fragments per group 2048 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 24 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. root@tty1[/]#
root@tty1[/]# mke2fs /dev/hda3 mke2fs 1.34-WIP (21-May-2003) Filesystem label OS type: Linux Block size=l024 (log=0) Fragment size=1024 (log=0) 76304 inodes, 304416 blocks 15220 blocks (5.00%) reserved for the super user First data block=1 38 block groups 8192 blocks per group, 8192 fragments per group 2008 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185 Writing mode tables: done Writing superblocks and f ilesystem accounting information: done This filesystem will be automatically checked every 24 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. root@tty1[/]#
root@tty1[/]# mkswap /dev/hda2 Setting up swapspace version 1, size 14963744 bytes root@tty1[/]# swapon /dev/hda2 root@tty1[/]#
At this point, I rebooted the VM and let the timeout took place when getting the boot: prompt
<< Previous :: Index :: Next >>