[ltp] Copying Files

Jeffrey L. Taylor linux-thinkpad@linux-thinkpad.org
Tue, 7 Dec 2004 13:42:38 -0600


Quoting Eben King <eben1@tampabay.rr.com>:
> On Tue, 7 Dec 2004, Jeffrey L. Taylor wrote:
> 
> > Quoting Bob Alexander <bob@ngi.it>:
> 
> > > For example my setup is as follows:
> > > 
> > > 240 heads, 63 sectors/track, 9914 cylinders
> > > Units = cylinders of 15120 * 512 = 7741440 bytes
> > > 
> > >   Device Boot      Start         End      Blocks   Id  System
> > > /dev/hda1   *           1        4063    30716248+   7  HPFS/NTFS
> > > /dev/hda3            4064        9914    44233560    f  W95 Ext'd (LBA)
> > > /dev/hda5            4064        8822    35978008+   b  W95 FAT32
> > > /dev/hda6            8823        8958     1028128+  82  Linux swap / Solaris
> > > /dev/hda7   *        8959        9433     3590968+  83  Linux
> > > /dev/hda8            9434        9914     3636328+  83  Linux
> 
> > IIRC, the logical partitions are contained in the extended partition.
> > E.g., hda5 - hda11 are contained in hda4.
> 
> Or hda3 in this case.  There can be one extended partition, usually #4,  
> Bob Alexander (if the quoting is correct) could add a 4th primary 
> partition (if there were room).  I have four primary partitions on my 
> Thinkpad's hard drive.
> 
> > # fdisk -l /dev/hda
> > 
> > Disk /dev/hda: 82.3 GB, 82348277760 bytes
> > 255 heads, 63 sectors/track, 10011 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> >    Device Boot    Start       End    Blocks   Id  System
> > /dev/hda1             1      1310  10522543+   7  HPFS/NTFS
> > /dev/hda4   *      1311     10011  69890782+   5  Extended
> > /dev/hda5          1311      1964   5253223+  83  Linux
> > /dev/hda6   *      1965      3760  14426338+  83  Linux
> > /dev/hda7          3761      3890   1044193+  82  Linux swap
> > /dev/hda8          3891      5686  14426338+  83  Linux
> > /dev/hda9          5687      7476  14378143+  83  Linux
> > /dev/hda10         7477      9434  15727603+  83  Linux
> > /dev/hda11         9435     10010   4626688+  83  Linux
> 
> That is more conventional.  hda2 and hda3 do not exist; they could, if 
> hda4 did not take up all the room.
> 
> Where does the "bootable" flag matter?
> 

Notice hda1 is a Windows partition.  Windows pays attention to the
boot flag.  

This used to be a (N+2)-booting system.  It currently is a (N)-booting
system.  hda2 and hda3 existed in the past.  They were not copied over
after a partial disk failure.  "If it ain't broke, don't fix it."  To
avoid breaking /etc/fstab in several of the bootable root partitions
(at least hda6 and hda10, at the moment), the partitions were not
renumbered when hda2 (FreeBSD) and hda3 (RedHat 7.x) were dropped.


Jeffrey