Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

/usr/lib/nand-sata-install/nand-sata-install.sh

Featured Replies

i try nand-sata-install.sh .

 

namely

 

 

before nand-sata-install.sh

   usb hard disk ----orange pi PI -----micro sd

   (sda)

 

 

fdisk -l /dev/sda
Device     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 is
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root      234171444 4225628 218050512   2% /
devtmpfs          381396       0    381396   0% /dev
tmpfs             512624       0    512624   0% /dev/shm
tmpfs             512624    6980    505644   2% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             512624       0    512624   0% /sys/fs/cgroup
tmpfs             262144       8    262136   1% /tmp
/dev/mmcblk0p1  14281204 4199032   9356720  31% /boot
tmpfs             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/ } is
System.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}  is
bin   dev  home  lost+found  media  opt   root  sbin     srv  tmp  var
boot  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 .

nand.jpg

-------------

regards

  • Author

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-sun8i
drwxr-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-sun8i
lrwxrwxrwx 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-sun8i
lrwxrwxrwx 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 .

 

df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root      234171444 4376704 217899436   2% /
devtmpfs          381396       0    381396   0% /dev
tmpfs             512624       0    512624   0% /dev/shm
tmpfs             512624    6976    505648   2% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             512624       0    512624   0% /sys/fs/cgroup
/dev/mmcblk0p1   2275348   92352   2067424   5% /boot
tmpfs             262144       8    262136   1% /tmp
tmpfs             102528       0    102528   0% /run/user/1000

 

 

 

fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 3.7 GiB, 3951034368 bytes, 7716864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000276fe

Device         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.bat
df
fdisk -l /dev/sda
fdisk -l /dev/sdb
read X
echo $x
cd /mb1
mkdir -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  
do
rsync -avHx  --delete $x/  /mb1$x/
done

 

cd /mb1
mkdir -p  dev proc sys media mnt run tmp

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.