diff options
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 |