about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-10-21 17:07:36 +0100
committerSilvino Silva <silvino@bk.ru>2016-10-21 17:07:52 +0100
commite8303acde9bc5a9b220fe676039192acd221f077 (patch)
tree0d253f566449cbfb0bc96a5d0afb8fe7ea822a38
parent70037109e547e37525500588f6344aba37de6d07 (diff)
downloaddoc-e8303acde9bc5a9b220fe676039192acd221f077.tar.gz
core reboot and tools tar document revision
-rw-r--r--core/reboot.html22
-rw-r--r--tools/tar.html13
2 files changed, 26 insertions, 9 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
diff --git a/tools/tar.html b/tools/tar.html
index c3b7cac..1cafbb6 100644
--- a/tools/tar.html
+++ b/tools/tar.html
@@ -12,9 +12,18 @@
 
         <h2 id="tarbkup">1. Create Backup</h2>
 
-        <p>Script <a href="scripts/backup-system.sh">core/scripts/backup-system.sh</a> use tldp
+        <p>To create a simple compressed tar;</p>
+
+        <pre>
+        $ tar -czvf tar_name.tar.gz /path/to/archive
+        </pre>
+
+        <p>Script
+        <a href="scripts/backup-system.sh">core/scripts/backup-system.sh</a>
+        use tldp
         <a href="http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/server-backup.html">server backup</a>
-        and <a href="http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/server-restore.html">restore</a>
+        and
+        <a href="http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/server-restore.html">restore</a>
         as a reference.</p>
 
         <pre>