Changes

From Amahi Wiki
Jump to: navigation, search
17 bytes removed ,  03:50, 23 June 2020
''If you use the NAND flash as swap you will lose this ability.''
{{Code| cfdisk /dev/mtdblock2}}
* Create a "Linux swap / Solaris" partition that takes all the space:
# remove any existing partitions, if any
# select Write option
# select Quit option
{{Code| mkswap /dev/mtdblock2 echo "/dev/mtdblock2 swap swap defaults 0 0" >> /etc/fstab swapon -a}}
== Copy a root filesystem from one disk to another ==
The code below assumes the old (usb) disk is at /dev/sdb1 and the new (internal) disk is at /dev/sda1. Substitute accordingly
{{Code| # /dev/sda1 is the target filesystem; must have an empty filesystem on it mount /dev/sda1 /mnt mkdir /mnt2 # /dev/sdb2 is the source filesystem mount /dev/sdb1 /mnt2 cd /mnt2 cp -ar * /mnt}}
12,424

edits