diff options
author | FreeArtMan <dos21h@gmail.com> | 2023-02-04 14:10:26 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2023-02-04 14:10:26 +0000 |
commit | 380f0fe40b1ab20790e75dac779e73667cc5ac72 (patch) | |
tree | 9fa3b9c93b58c966daa22f955282bc3c181d909a /md/writeup/multiboot_usb_drive.md | |
parent | df881efab146ca3ee61bf8936f948dd976fc4740 (diff) | |
download | md-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.md | 14 |
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 |