summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-05-30 14:56:01 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-05-30 14:56:01 +0200
commit5fb07552a0ce6ba57ac402cc448383b31dca6487 (patch)
tree3ec72edcdb9ff7fe8d4b842dbfa42912f266dd0a
parent3bbdbe744833d600f1cd0448f300c97b0443a8a7 (diff)
mke2fs is in /sbin/
-rw-r--r--faq/still_useful.mdwn2
-rw-r--r--hurd/documentation/translators.html2
-rw-r--r--hurd/running/qemu/image_for_l4.mdwn24
-rw-r--r--open_issues/64-bit_port.mdwn2
4 files changed, 15 insertions, 15 deletions
diff --git a/faq/still_useful.mdwn b/faq/still_useful.mdwn
index d08d2df7..82e03078 100644
--- a/faq/still_useful.mdwn
+++ b/faq/still_useful.mdwn
@@ -39,7 +39,7 @@ various servers are designed for this sort of modification.
> personal filesystem
>
> $ dd < /dev/zero > myspace.img bs=1M count=1024
-> $ mke2fs myspace.img
+> $ /sbin/mke2fs myspace.img
> $ settrans myspace /hurd/ext2fs myspace.img
> $ cd myspace
diff --git a/hurd/documentation/translators.html b/hurd/documentation/translators.html
index 8ae2c180..e455f730 100644
--- a/hurd/documentation/translators.html
+++ b/hurd/documentation/translators.html
@@ -212,7 +212,7 @@ I recommend that you start by reading the <code>/bin/mount</code> command,
it is only a small script. Because setting filesystem translators is
similar to mounting partitions, you can easily grasp the concept this way.
Make a file system image with <code>dd if=/dev/zero of=dummy.fs bs=1024k
-count=8; mke2fs dummy.fs</code> and "mount" it with <code>settrans -c dummy
+count=8; /sbin/mke2fs dummy.fs</code> and "mount" it with <code>settrans -c dummy
/hurd/ext2fs `pwd`/dummy.fs</code>. Note that the translator is not started
yet, no new <code>ext2fs</code> process is running (verify with <code>ps
Aux</code>). Check that everything is correct using <code>showtrans</code></p>
diff --git a/hurd/running/qemu/image_for_l4.mdwn b/hurd/running/qemu/image_for_l4.mdwn
index 515f51bc..3dfbc946 100644
--- a/hurd/running/qemu/image_for_l4.mdwn
+++ b/hurd/running/qemu/image_for_l4.mdwn
@@ -156,11 +156,11 @@ Let's create it : we use the magic command `dd` on the special device which cont
We will mount it in loopback :
- $ losetup /dev/loop0 hurd_l4.img
+ # losetup /dev/loop0 hurd_l4.img
We need now to have it recognized as a hard disk :
- $ fdisk -u -C58 -S63 -H16 /dev/loop0
+ # fdisk -u -C58 -S63 -H16 /dev/loop0
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
@@ -195,12 +195,12 @@ If everything is fine (especially check the `Start` and `End` fields), you can p
You will have noticed that the partition only starts at the 63rd sector. The beginning of the disk contains the MBR which is used for booting. We must then remount the disk making sure that this part is skipped before formating it. We know that a sector uses 512 bytes so we should begin at 63 \* 512 = 32256 :
- $ losetup -d /dev/loop0
- $ losetup -o32256 /dev/loop0 hurd_l4.img
+ # losetup -d /dev/loop0
+ # losetup -o32256 /dev/loop0 hurd_l4.img
Now comes time to format it into a decent filesystem :
- $ mke2fs /dev/loop0
+ # mke2fs /dev/loop0
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
@@ -223,19 +223,19 @@ Now comes time to format it into a decent filesystem :
We should now be able to mount it the right way :
- $ mkdir mnt
- $ losetup -d /dev/loop0
- $ mount -o loop,offset=32256 hurd_l4.img mnt/
+ # mkdir mnt
+ # losetup -d /dev/loop0
+ # mount -o loop,offset=32256 hurd_l4.img mnt/
Here comes grub time (I assume you have the grub files in `/boot/grub` and the `menu.lst` we've obtained in the previous section is in `~/`) :
- $ mkdir -p mnt/boot/grub
- $ cp /boot/grub/stage1 /boot/grub/stage2 /boot/grub/e2fs_stage1_5 mnt/boot/grub/
- $ cp ~/menu.lst mnt/boot/grub
+ # mkdir -p mnt/boot/grub
+ # cp /boot/grub/stage1 /boot/grub/stage2 /boot/grub/e2fs_stage1_5 mnt/boot/grub/
+ # cp ~/menu.lst mnt/boot/grub
We will make a grub bootimage and boot it with bochs :
- $ cat stage1 stage2 > grubboot.img
+ # cat stage1 stage2 > grubboot.img
Copy the following into `.bochsrc` (replace the parts in caps by the right info) :
diff --git a/open_issues/64-bit_port.mdwn b/open_issues/64-bit_port.mdwn
index aa49e64b..77b0632e 100644
--- a/open_issues/64-bit_port.mdwn
+++ b/open_issues/64-bit_port.mdwn
@@ -86,7 +86,7 @@ To make a bootable system we really better make the disk image partitioned, and
# create a new primary partition spanning the whole disk: n p and just accept the defaults, and finish with w
settrans -ca disk /hurd/storeio -T typed file:disk.img
settrans -ca disk1 /hurd/storeio -T typed part:1:file:disk.img
- mke2fs disk1
+ /sbin/mke2fs disk1
settrans -ca chroot-hurd-amd64 /hurd/ext2fs disk1
(here we assume that fdisk puts the partition at sector 2048, that's indeed the