summaryrefslogtreecommitdiff
path: root/md/writeup/multiboot_usb_drive.md
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2023-02-04 14:10:26 +0000
committerFreeArtMan <dos21h@gmail.com>2023-02-04 14:10:26 +0000
commit380f0fe40b1ab20790e75dac779e73667cc5ac72 (patch)
tree9fa3b9c93b58c966daa22f955282bc3c181d909a /md/writeup/multiboot_usb_drive.md
parentdf881efab146ca3ee61bf8936f948dd976fc4740 (diff)
downloadmd-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.tar.gz
md-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.zip
Update all content to new pygmentize
Diffstat (limited to 'md/writeup/multiboot_usb_drive.md')
-rw-r--r--md/writeup/multiboot_usb_drive.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/md/writeup/multiboot_usb_drive.md b/md/writeup/multiboot_usb_drive.md
index 9d0cb2e..9fa82bc 100644
--- a/md/writeup/multiboot_usb_drive.md
+++ b/md/writeup/multiboot_usb_drive.md
@@ -11,31 +11,31 @@ run any you need it will save you some time.
Using _fdisk_ to delete/create new partitions on USB drive
-```
+```sh
mkfs.vfat /dev/sdb1
```
mount drivet to current pc
-```
+```sh
mount /dev/sdb1 /mnt/flash0
```
create dire where will be grub files and grub menu config file
-```
+```sh
mkdir /mnt/flash0/boot
```
install grub, but you can install also 64bit grub if there is need
-```
+```sh
grub-install --target=i386-pc --recheck --boot-directory=/mnt/flash0/boot /dev/sdb
```
check with id have usb drive
-```
+```sh
blkid /dev/sdb1
/dev/sdb1: UUID="D49E-18CC" TYPE="vfat" PARTUUID="5f55bd3d-01"
```
@@ -45,7 +45,7 @@ blkid /dev/sdb1
Some manuals have outdatet filesystem layouts and there is need to investigate
current layout by hand. And you need to mount ISO files.
-```
+```sh
mount -o loop /home/fam/downloads/iso/ubuntu-14.04.3-desktop-i386.iso /mnt/flash0
```
@@ -60,7 +60,7 @@ your own compiled kernel
*boot/grub/grub.cfg*
-```
+```sh
## Begin /boot/grub/grub.cfg
set default=1
set timeout=5