Bananian from /dev/sda1 ?

10 13825
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)


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


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.

I'm happy it helped ;)

Future Bananian versions will include a SATA installer. This feature has been added to our bugtracker as a feature request:

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


uEnv.txt to have root=/dev/DISK00/bananapiroot?

If anyone needs it, here is a 25MB image that can be burnt using Win32 Disc Imager or Linux DD.
It just contains the boot partion only for Bananian for when running the root from another device.!TQJRVYjT!M1 ... H3HNOiTLYF3cYRuXnuc

You have to log in before you can reply Login | Sign Up

Points Rules