how to use USB hard disk as /(root)
#11
(06-28-2016, 08:23 AM)martinayotte Wrote: Why are you creating so many partitions ?
You should have ONLY a single one with everything inside it, especially true for the /dev, /proc, /run, /srv, /sys and /tmp which must be empty folders inside the rootfs /dev/sda1.
I presume that if you were looking at serial debug port, you would have seen that it stopped and failed trying to mount /proc because it doesn't exist inside your /dev/sda1.

this experiment shows that /tem , /SAVE and swap only  are OK .

 fdisk -l /dev/sda
---------------------------------------------------------------------------------------
Device Boot Start End Sectors Size Id Type
/dev/sda1 10487808 15730687 5242880 2.5G 83 Linux
/dev/sda2 2048 4196351 4194304 2G 82 Linux swap / Solaris
/dev/sda3 


 and 
rewite /etc/fstab
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/dev/sda1 /SAVE ext4 defaults,noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/sda3 /tmp ext4 defaults,noatime 0 1



and
head /etc/apache2/apache2.conf

NameVirtualHost *:80

<VirtualHost *:80>
ServerName s---------------.mydns.jp
DocumentRoot /var/www/d1
</VirtualHost>
----

ln -s /SAVE/d1 /var/www/d1


and more
/proc , /sys and /dev is very small , and /run is small ( in banana pi M1, 580 kB )
the work is left to sd card .

the work /tmp , swap and www is left to hard disk .

namely
sd card's burden becomes less .
i expect sd card gets longer life time .

-----------
regards
  Reply


Messages In This Thread
how to use USB hard disk as /(root) - by hatahata - 06-25-2016, 06:51 PM
RE: how to use USB hard disk as /(root) - by Luke - 06-27-2016, 02:22 PM
RE: how to use USB hard disk as /(root) - by hatahata - 06-28-2016, 01:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  root running from usb connected ssd locks up system marcelser 0 1,170 11-17-2017, 04:50 PM
Last Post: marcelser
  OMV base on Debian jessie Root Problem ayamy 3 2,539 09-03-2017, 09:21 PM
Last Post: tllim
  resize root partition to max available space SD card can provide bilylilyli 16 10,179 11-18-2016, 07:10 PM
Last Post: pfeerick
  root password shaozhai 4 2,887 08-25-2016, 12:55 PM
Last Post: jl_678
Sad How to resize the root partition in order to fully utilize the SD Card MicroDiery 5 3,290 05-24-2016, 05:48 AM
Last Post: Luke
  Debian root's password? rayivy 2 1,993 05-12-2016, 08:59 PM
Last Post: rayivy
  what is the root password for debian? piahoo 5 6,965 04-29-2016, 02:12 PM
Last Post: rhkean

Forum Jump:


Users browsing this thread: 1 Guest(s)