Hi all .
hard disk is bigger and more tough than sd card .
so
i usualy run root in the hard disk .
i do this in a running machine .
1) attach sata hard disk (via usb-sata converter)
2) shell script
umount /ma1
mount /dev/sda1 /ma1
df
read X
echo $X
cd /ma1
mkdir -p bin etc home lib opt root sbin srv usr var selinux
for x in /bin /etc /home /lib /opt /root /sbin /srv /usr /var /selinux
do rsync -avHx $x/ /ma1$x/
done
cd /ma1
mkdir -p boot dev mnt proc run sys tmp
3) /boot/boot.ini | grep sda1
setenv bootargs "root=/dev/sda1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes"
4)/ma1/etc/fstab
# # /etc/fstab: static file system information
## <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 / ext4 errors=remount-ro 0 1
/dev/sda2 none swap sw 0 0
5)reboot
then
df
Filesystem 1K-blocks Used Available Use% Mounted on
dev 753648 0 753648 0% /dev
run 880004 372 879632 1% /run
/dev/sda1 76249132 4457444 67895320 7% /
tmpfs 880004 0 880004 0% /dev/shm
tmpfs 880004 0 880004 0% /sys/fs/cgroup
tmpfs 880004 0 880004 0% /tmp
tmpfs 176004 0 176004 0% /run/user/1001
if there are something wrong , please teach me .
------------------
by tuyosi