Bananian
Bananian from /dev/sda1 ?
10
13825
View: 13825|Reply: 10
|
[Bananian]
Bananian from /dev/sda1 ?
[Copy link]
|
|
Hello,
i have tried on my BPi the Raspbian 3.1 image with my HDD: WD20NPVX 2TB 2,5" SATA.
After some days of trying and trying - I thought that my HDD is not banana-compatible (but works fine in my PC ...)
because of permanently crc-errors , and hangs the bpi and many write-aboards.
Now I tried the latest bananian image and : the HDD works perfectly under same cable and power-supply-conditions.
Now I have installed apache2 python php twonky-server samba-server mysql-server ssh gnome and 1,2TB Music,Fvideo,pictures on HDD.
All seems to work perfectly, even the write-speed in parallel 5 sessions to the hard-disk is acceptable.
The HDD is parted with 1,99.. TB ext4 ( /dev/sda1) as a media-container und a small swap partition (/dev/sda2).
Now my question: How can I boot bananian from hdd ?
With rasbian the thing was easy:
cd /mnt
sudo cp -axuv / .
sudo rm -R /mnt/boot
sudo nano /mnt/etc/fstab
->remark line: /dev/mmcblk0p2 / ext4 defaults,noatime 0 0
-> insert lines: /dev/sda1 / ext4 defaults,errors=remount-ro 0 1
/dev/sda2 none swap sw 0 0
sudo nano /boot/cmdline.txt ( or uEnv.txt )
xchange in file: root=/dev/mmcblk0p2 with root=/dev/sda1
sudo swapon -a
sudo reboot...
(The second question I do not trust me to ask: what is wrong with the raspbian 3.1. image in working with the 2TB SATA-HDD)
Thanks. |
|
|
|
|
|
|
|
Hi,
I moved my rootfs from SD to my SSD last night it was very easy :
* Start your banana Pi with your HDD connected
* Partition and format your HDD
* Mount your destination partition on /mnt (mount /dev/sda1 /mnt)
* Copy all your root fs
rsync -ahPHAXx --delete --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} / /mnt
* Mount /dev/mmcblk0p1 and change uEnv.txt to have root=/dev/sda1
reboot |
|
|
|
|
|
|
|
Reply 2# slucas
Thank you so much.
I did it just now and it works.
Yes, thank you for the professional tip for me as a beginner. |
|
|
|
|
|
|
|
This is awesome even a small ssd would really make the thing fly. |
|
|
|
|
|
|
|
Dear All,
If I sync the harddisk rootfs to sd card fs regularly (for example weekly).
This command is still OK?
/mnt mount to sdcard rootfs.
rsync -ahPHAXx --delete --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} / /mnt
Best Regards |
|
|
|
|
|
|
|
pmiii.tmp replied at Wed Nov 5, 2014 22:06 
Dear All,
If I sync the harddisk rootfs to sd card fs regularly (for example weekly).
yes, you can use this command to sync back to SD card. |
|
|
|
|
|
|
|
Dear All,
It is possible copy the file to LVM?
for example /dev/DISK00/bananapiroot
and
uEnv.txt to have root=/dev/DISK00/bananapiroot? |
|
|
|
|
|
|