8000 Disk image grammar · codebug8/build-linux@b5e73de · GitHub
[go: up one dir, main page]

Skip to content

Commit b5e73de

Browse files
authored
Disk image grammar
1 parent d4bc113 commit b5e73de

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
< 8000 td data-grid-cell-id="diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5-195-194-1" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-deletionNum-bgColor, var(--diffBlob-deletion-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,16 @@ specific things.
138138
Building the Disk Image
139139
-----------------------
140140

141-
Installing a OS on a file instead of a real disk complicates things but this
141+
Installing an OS on a file instead of a real disk complicates things but this
142142
makes development and testing easier.
143143

144144
So let's start by allocating a new file of size 100M by doing ``fallocate -l100M
145145
image``(some distro's don't have ``fallocate`` so you can do ``dd if=/dev/zero
146146
of=image bs=1M count=100`` instead). And then we format it like we would format
147-
a disk with ``fdisk image``. It automatically creates a MBR partition table for
147+
a disk with ``fdisk image``. It automatically creates an MBR partition table for
148148
us and we'll create just one partition filling the whole image by pressing 'n' and
149149
afterwards just use the default options for everything and keep spamming 'enter'
150-
untill you're done. Finally press 'w' exit and to write the changes to the
150+
until you're done. Finally press 'w' exit and to write the changes to the
151151
image.
152152
```bash
153153
$ fdisk image
@@ -192,8 +192,8 @@ my case. Let's make a filesystem on it.
192192
```bash
193193
$ mkfs.ext4 /dev/loop0p1
194194
```
195-
If you want to use something else than ext4, be sure to enable it when
196-
configuring your kernel. Now that we have done that, we can mount it start
195+
If you want to use something other than ext4, be sure to enable it when
196+
configuring your kernel. Now that we have done that, we can mount it and start
197197
putting everything in place.
198198
```bash
199199
$ mkdir image_root
@@ -218,7 +218,7 @@ We'll copy our binaries over.
218218
$ cp /path/to/busybox usr/bin/busybox
219219
$ cp /path/to/bzImage boot/bzImage
220220
```
221-
You can call every busybox utility by supplying the utility as argument, like
221+
You can call every busybox utility by supplying the utility as an argument, like
222222
so: ``busybox ls --help``. But busybox also detects by what name it is called
223223
and then executes that utility. So you can put symlinks for each utility and
224224
busybox can figure out which utility you want by the symlink's name.
@@ -232,7 +232,7 @@ These symlinks might be incorrect from outside the system because of the
232232
absolute path, but they work just fine from within the booted system.
233233
234234
Lastly, we'll copy some files from ``../filesystem`` to the image that will be
235-
some use to us later.
235+
of some use to us later.
236236
```bash
237237
$ cp ../filesystem/{passwd,shadow,group,issue,profile,locale.sh,hosts,fstab} etc
238238
$ install -Dm755 ../filesystem/simple.script usr/share/udhcpc/default.script

0 commit comments

Comments
 (0)
0