hatahata Posted April 9, 2016 Posted April 9, 2016 i try nand-sata-install.sh . namely before nand-sata-install.sh usb hard disk ----orange pi PI -----micro sd (sda) fdisk -l /dev/sdaDevice Boot Start End Sectors Size Id Type/dev/sda1 12584960 488397163 475812204 226.9G 83 Linux/dev/sda2 2048 12584959 12582912 6G 82 Linux swap / Solaris --------------------------------------------------------------- after nand-sata-install.sh plus rewriting swap line of /etc/fstab /etc/fstab tmpfs /tmp tmpfs nodev,nosuid,size=256M 0 0/dev/sda1 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 0/dev/sda2 none swap sw 0 0/dev/mmcblk0p1 /media/mmc ext4 defaults 0 0/media/mmc/boot /boot none bind 0 0 df isFilesystem 1K-blocks Used Available Use% Mounted on/dev/root 234171444 4225628 218050512 2% /devtmpfs 381396 0 381396 0% /devtmpfs 512624 0 512624 0% /dev/shmtmpfs 512624 6980 505644 2% /runtmpfs 5120 4 5116 1% /run/locktmpfs 512624 0 512624 0% /sys/fs/cgrouptmpfs 262144 8 262136 1% /tmp/dev/mmcblk0p1 14281204 4199032 9356720 31% /boottmpfs 102528 0 102528 0% /run/user/1000 namely root is over 200GB ( in HDD) i think hard disk is more sutable for hevy duty so nand-sata-install.sh is good tool for us . { ls /boot/ } isSystem.map-3.4.110-sun8i bin boot.bmp boot.cmd boot.scr config-3.4.110-sun8i script.bin vmlinuz-3.4.110-sun8i zImage and when gparted , /media/mmc apear . and {ls /media/mmc} isbin dev home lost+found media opt root sbin srv tmp varboot etc lib ma1 mnt proc run selinux sys usr can i erase /media/mmc folda except boot ? ( rm -rf /media/mmc/bin and so on) if i get redundant sd card , i try experiment . ------------- regards
hatahata Posted April 12, 2016 Author Posted April 12, 2016 i have done home work . the present state is that /boot is in 32GB sd . i intend to change 32GB sd for 4GB sd . with kali linux , i insert 4GB sd to kali linux PC . dd if=/Armbian_5.05_Orangepih3_Debian_jessie_3.4.110_desktop.raw of=/dev/sdb bs=16M and over internet , by sftp i get /boot of 32GB sd , and cp -pR {/boot/* of 32GB sd } /mb1 and cd /mb1 rm -rf usr var .....and so on so the content of 4GB sd card is ls -l /boot/total 6964-rw-r--r-- 1 root root 2107649 3月 9 04:03 System.map-3.4.110-sun8idrwxr-xr-x 2 root root 4096 3月 15 13:20 bin-rw-r--r-- 1 root root 6944 3月 9 04:23 boot.bmp-rw-r--r-- 1 root root 2019 4月 9 23:35 boot.cmd-rw-r--r-- 1 root root 2091 4月 9 23:35 boot.scr-rw-r--r-- 1 root root 93944 3月 9 04:03 config-3.4.110-sun8ilrwxrwxrwx 1 root root 24 3月 15 13:20 script.bin -> /boot/bin/orangepipc.bin-rw-r--r-- 1 root root 35916 4月 20 18:19 script.bin.bak-rwxr-xr-x 1 root root 4866320 3月 9 04:03 vmlinuz-3.4.110-sun8ilrwxrwxrwx 1 root root 21 3月 9 04:23 zImage -> vmlinuz-3.4.110-sun8i and i can boot armbian now 250GB USB hard disk(this is /)-------[orange pi PC]---micro sd 4GB(this is /boot) i spare 32 GB sd card and as / hard disk is more tough than sd card , so i think . dfFilesystem 1K-blocks Used Available Use% Mounted on/dev/root 234171444 4376704 217899436 2% /devtmpfs 381396 0 381396 0% /devtmpfs 512624 0 512624 0% /dev/shmtmpfs 512624 6976 505648 2% /runtmpfs 5120 4 5116 1% /run/locktmpfs 512624 0 512624 0% /sys/fs/cgroup/dev/mmcblk0p1 2275348 92352 2067424 5% /boottmpfs 262144 8 262136 1% /tmptmpfs 102528 0 102528 0% /run/user/1000 fdisk -l /dev/mmcblk0Disk /dev/mmcblk0: 3.7 GiB, 3951034368 bytes, 7716864 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0x000276feDevice Boot Start End Sectors Size Id Type/dev/mmcblk0p1 2048 4625127 4623080 2.2G 83 Linux and 250GB hard disk cloning is easy . 250GB usb hdd------- orange pi PC-----4GB micro sd card 250GB usb hdd------- clone-rsync-HDD2HDD.batdffdisk -l /dev/sdafdisk -l /dev/sdbread Xecho $xcd /mb1mkdir -p bin etc home lib opt root sbin srv usr var selinux boot for x in /bin /etc /home /lib /opt /root /sbin /srv /usr /var /selinux /boot dorsync -avHx --delete $x/ /mb1$x/done cd /mb1mkdir -p dev proc sys media mnt run tmp
Recommended Posts