- 论坛徽章:
- 2
|
回复 151# tzhxbg - Creating a bootable hard disk using SunOS, Solaris or other Un*x-like system:
- If you don't have a floppy drive you can copy the miniroot
- "miniroot55.fs" onto the hard disk you intend to boot on.
- Traditionally, the way to do this is to use dd(1) to place the
- bootable filesystem image in the "swap" partition of the disk
- (while running in single user mode), and then booting from that
- partition.
- Using the "b" partition allows you to boot without overwriting
- any useful parts of the disk; you can also use another partition,
- but don't use the "a" or "c" partition without understanding the
- disk label issues described below under "incompatible systems".
- This requires that you be running SunOS, Solaris, OpenBSD, or NetBSD,
- which have a compatible view of SunOS disk labels and partitions.
- Use the dd(1) utility to copy the file to the hard drive.
- The command would likely be, under SunOS:
- dd if=miniroot55.fs of=/dev/rsd0b bs=64b
- and under Solaris:
- dd if=miniroot55.fs of=/dev/rdsk/c0t0d0s1 bs=64b
- The blocksize is arbitrary as long as it's a multiple of 512-bytes
- and within the maximum supported by the driver, i.e. bs=126b may
- not work for all cases. Again, device/partition names may vary,
- depending on the OS involved.
- If you are preparing the hard drive on an incompatible system or
- don't care about the hard disk contents, you can also install the
- bootable image starting at the beginning of the disk. This lets
- you prepare a bootable hard-drive even if don't have a working
- operating system on your machine, but it is important to understand
- that the bootable image installed this way includes a "disk label"
- which can wipe out any pre-existing disklabels or partitioning for
- the drive.
复制代码 官方的原文. |
|