Script started on Mon 20 Oct 2003 10:10:40 AM HKT ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ sudo fsdisk /dev/hda Password: The number of cylinders for this disk is set to 2434. 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: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 2040 16386268+ c Win95 FAT32 (LBA) /dev/hda2 2041 2434 3164805 5 Extended /dev/hda5 2041 2106 530113+ 82 Linux swap /dev/hda6 * 2107 2434 2634628+ 83 Linux 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): 2 Command (m for help): s Building a new sun disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Drive type ? auto configure 0 custom (with hardware detected defaults) a Quantum ProDrive 80S b Quantum ProDrive 105S c CDC Wren IV 94171-344 d IBM DPES-31080 e IBM DORS-32160 f IBM DNES-318350 g SEAGATE ST34371 h SUN0104 i SUN0207 j SUN0327 k SUN0340 l SUN0424 m SUN0535 n SUN0669 o SUN1.0G p SUN1.05 q SUN1.3G r SUN2.1G s IOMEGA Jaz Select type (? for auto, 0 for custom): Select type (? for auto, 0 for custom): ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ sudo fdisk /dev/hda The number of cylinders for this disk is set to 2434. 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: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 2040 16386268+ c Win95 FAT32 (LBA) /dev/hda2 2041 2434 3164805 5 Extended /dev/hda5 2041 2106 530113+ 82 Linux swap /dev/hda6 * 2107 2434 2634628+ 83 Linux 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): 3 Warning: partition 3 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): p Disk /dev/hda: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 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-2434, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-2434, default 2434): +1.1g Command (m for help): t Selected partition 1 Hex code (type L to list codes): 6 Changed system type of partition 1 to 6 (FAT16) Command (m for help): n Command action e extended p primary partition (1-4) e Partition number (1-4): 2 First cylinder (3-2434, default 3): Using default value 3 Last cylinder or +size or +sizeM or +sizeK (3-2434, default 2434): Using default value 2434 Command (m for help): p Disk /dev/hda: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 2 16033+ 6 FAT16 /dev/hda2 3 2434 19535040 5 Extended 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): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-2434, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-2434, default 2434): +1100m Command (m for help): p Disk /dev/hda: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 135 1084356 83 Linux Command (m for help): n Command action e extended p primary partition (1-4) e Partition number (1-4): 2 First cylinder (136-2434, default 136): Using default value 136 Last cylinder or +size or +sizeM or +sizeK (136-2434, default 2434): Using default value 2434 Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (136-2434, default 136): Using default value 136 Last cylinder or +size or +sizeM or +sizeK (136-2434, default 2434): +31--  00g Value out of range. Last cylinder or +size or +sizeM or +sizeK (136-2434, default 2434): +3100m Command (m for help): p Disk /dev/hda: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 135 1084356 83 Linux /dev/hda2 136 2434 18466717+ 5 Extended /dev/hda5 136 513 3036253+ 83 Linux Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (514-2434, default 514): Using default value 514 Last cylinder or +size or +sizeM or +sizeK (514-2434, default 2434): +3100g m 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): t Partition number (1-6): 5 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: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 135 1084356 83 Linux /dev/hda2 136 2434 18466717+ 5 Extended /dev/hda5 136 513 3036253+ 7 HPFS/NTFS /dev/hda6 514 891 3036253+ 7 HPFS/NTFS Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (892-2434, default 892): Using default value 892 Last cylinder or +size or +sizeM or +sizeK (892-2434, default 2434): +7500m Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (1805-2434, default 1805): Using default value 1805 Last cylinder or +size or +sizeM or +sizeK (1805-2434, default 2434): +600m Command (m for help): p Disk /dev/hda: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 135 1084356 83 Linux /dev/hda2 136 2434 18466717+ 5 Extended /dev/hda5 136 513 3036253+ 7 HPFS/NTFS /dev/hda6 514 891 3036253+ 7 HPFS/NTFS /dev/hda7 892 1804 7333641 83 Linux /dev/hda8 1805 1878 594373+ 83 Linux Command (m for help): t Partition number (1-8): 8 Hex code (type L to list codes): 82 Changed system type of partition 8 to 82 (Linux swap) Command (m for help): a Partition number (1-8): 1 Command (m for help): p Disk /dev/hda: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 135 1084356 83 Linux /dev/hda2 136 2434 18466717+ 5 Extended /dev/hda5 136 513 3036253+ 7 HPFS/NTFS /dev/hda6 514 891 3036253+ 7 HPFS/NTFS /dev/hda7 892 1804 7333641 83 Linux /dev/hda8 1805 1878 594373+ 82 Linux swap 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@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ sfdisk --help sfdisk version 3.07 (aeb@cwi.nl, 990908) Usage: sfdisk [options] device ... device: something like /dev/hda or /dev/sda useful options: -s [or --show-size]: list size of a partition -c [or --id]: print or change partition Id -l [or --list]: list partitions of each device -d [or --dump]: idem, but in a format suitable for later input -i [or --increment]: number cylinders etc. from 1 instead of from 0 -uS, -uB, -uC, -uM: accept/report in units of sectors/blocks/cylinders/MB -T [or --list-types]:list the known partition types -D [or --DOS]: for DOS-compatibility: waste a little space -R [or --re-read]: make kernel reread partition table -N# : change only the partition with number # -n : do not actually write to disk -O file : save the sectors that will be overwritten to file -I file : restore these sectors again -v [or --version]: print version -? [or --help]: print this message dangerous options: -g [or --show-geometry]: print the kernel's idea of the geometry -x [or --show-extended]: also list extended partitions on output or expect descriptors for them on input -L [or --Linux]: do not complain about things irrelevant for Linux -q [or --quiet]: suppress warning messages You can override the detected geometry using: -C# [or --cylinders #]:set the number of cylinders to use -H# [or --heads #]: set the number of heads to use -S# [or --sectors #]: set the number of sectors to use You can disable all consistency checking with: -f [or --force]: do what I say, even if it is stupid ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ sfdisk --help-d /dev/hda > readl-sfdisk-layout-for-20g-sisksdisks.txt /dev/hda: Permission denied sfdisk: cannot open /dev/hda for reading ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ sfdisk -d /dev/hda > real-sfdisk-layout-for-20g-disks.txt $ $ s[1@s[1@u[1@d[1@o[1@ Password: ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ ls -l total 28 -rw-r--r-- 1 nicku nicku 463 Oct 18 02:24 alex-disk-layout.txt -rw-r--r-- 1 nicku nicku 455 Oct 18 02:27 attempt-edit-new-disk-layout-but-unsure.txt -rw-rw-r-- 1 nicku nicku 8192 Oct 20 10:17 fdisk-20-gb-disks.txt -rw-r--r-- 1 nicku nicku 361 Oct 18 02:14 hda-partition-listing-d.txt -rw-r--r-- 1 nicku nicku 361 Oct 17 17:45 hdc-partition-listing-d.txt -rw-rw-r-- 1 nicku nicku 463 Oct 20 10:19 real-sfdisk-layout-for-20g-disks.txt -rw-r--r-- 1 nicku nicku 0 Oct 18 02:23 sfdisk-input.txt ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ cat readl-sfdisk-layout-for-20g-disks.txt # partition table of /dev/hda unit: sectors /dev/hda1 : start= 63, size= 2168712, Id=83, bootable /dev/hda2 : start= 2168775, size= 36933435, Id= 5 /dev/hda3 : start= 0, size= 0, Id= 0 /dev/hda4 : start= 0, size= 0, Id= 0 /dev/hda5 : start= 2168838, size= 6072507, Id= 7 /dev/hda6 : start= 8241408, size= 6072507, Id= 7 /dev/hda7 : start= 14313978, size= 14667282, Id=83 /dev/hda8 : start= 28981323, size= 1188747, Id=82 ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ mount /dev/hdc5 on / type ext3 (rw) none on /proc type proc (rw) usbdevfs on /proc/bus/usb type usbdevfs (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) none on /dev/shm type tmpfs (rw) none on /mnt/cdrom type supermount (ro,noexec,nosuid,nodev,dev=/dev/hdb,fs=auto,--,iocharset=utf8,umask=0) none on /mnt/floppy type supermount (rw,noexec,nosuid,nodev,sync,dev=/dev/fd0,fs=auto,--,iocharset=utf8,umask=0) automount(pid1752) on /.auto type autofs (rw,fd=7,pgrp=1752,minproto=2,maxproto=3) automount(pid1782) on /home type autofs (rw,fd=7,pgrp=1782,minproto=2,maxproto=3) automount(pid1803) on /usr/remote type autofs (rw,fd=7,pgrp=1803,minproto=2,maxproto=3) ictlab.tyict.vtc.edu.hk:/home/nicku on /home/nicku type nfs (rw,hard,intr,addr=172.19.64.52) ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ cp -a real-sfdisk-layout-for-20g-disks.txt /mnt/floppy/ ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ sync ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ sync ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ ls -lcp -a /mnt/floppy/ks.cfg . cp: cannot stat `/mnt/floppy/ks.cfg': No such file or directory ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ ls /mnt/flpiooppy boot ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ ls /mnt/floppy $ cp -a /mnt/floppy/ks.cfg . ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ emacs ks.cfg & [1] 2704 ]0;nicku@a204f-16:~/snm/kickstart[nicku@a204f-16] ~/snm/kickstart $ man sfdisk [?1048h[?1047h[?1h=SFDISK(8) Linux Programmer’s Manual SFDISK(8) NAME sfdisk - Partition table manipulator for Linux SYNOPSIS sfdisk [options] device sfdisk -s [partition] DESCRIPTION sfdisk has four (main) uses: list the size of a partition, list the partitions on a device, check the partitions on a device, and