diff options
Diffstat (limited to 'core/reboot.html')
-rw-r--r-- | core/reboot.html | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/core/reboot.html b/core/reboot.html index 79fde23..b1ff71b 100644 --- a/core/reboot.html +++ b/core/reboot.html @@ -123,24 +123,32 @@ # grub-probe --target=hints_string / </pre> + <p>To add rw as default edit /etc/grub.d/10_linux file, current + version change line 138 to;</p> + + <pre> + echo '$message' + linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} rw ${args} + </pre> + <h2 id="checkup">1.4.4. Checkup</h2> <p>If you have qemu installed you can see if it boots, in this example sdb is usb external drive;</p> <pre> - # qemu-system-x86_64 -curses -usb -usbdevice disk:/dev/sdb + # qemu-system-x86_64 -kernel /boot/vmlinuz-linux -initrd /boot/initramfs-linux.img -append root=/dev/sdb /dev/sdb2 </pre> + <h3>Debug Grub</h3> + + <h3>Debug initram</h3> + <pre> - # qemu-system-x86_64 -kernel /boot/vmlinuz-linux -initrd /boot/initramfs-linux.img -append root=/dev/sdb /dev/sdb2 + /usr/lib/dracut/skipcpio /boot/initramfs-4.1.32-c9k9.img | gunzip -c | cpio -i -d + 36875 blocks </pre> - <pre> - # qemu-img convert crux-img.qcow2 -O raw crux.img - # dd if=crux.img of=/dev/sdX - </pre> - <a href="index.html">Core OS Index</a> <p>This is part of the c9-doc Manual. Copyright (C) 2016 |