LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Advices to partition layout (https://www.linuxquestions.org/questions/slackware-arm-108/advices-to-partition-layout-4175506202/)

frushiyama 05-27-2014 12:31 PM

Advices to partition layout
 
I have a 16 gb micro sd card and a 500gb sata via usb which will be used on rpi.
It will have at least this three partitions:
Code:

/dev/mmcblkp0 /boot
/dev/mmcblkp1 swap
/dev/sda /

I am thinking in put /etc to use another partition from sdcard, what else would be interesting too to put there to use the rest of space from sdcard?

pan64 05-27-2014 01:09 PM

do not use sdcard, but use your hard disk instead (for swap, for storage, for home, for whatever). Especially /etc may be on sdcard, but hdd is much faster (even a pendrive is faster than that sdcard). But it also depends on what is running on your pi.

TobiSGD 05-27-2014 01:45 PM

Keep in mind that to have /etc on an extra partition you will have to create your own customized init script inside an initramfs/initrd.

frushiyama 05-27-2014 08:45 PM

I did not use anything less then necessary from sdcard, so:
Code:

/dev/mmcblkp0 /boot
/dev/sda1 swap
/dev/sda2 /

thanks for the advices.

frushiyama 05-30-2014 11:10 AM

This, worked on first boot, but when a i had to switch it on / off, did not boot again.
Code:

/dev/mmcblkp0 /boot
/dev/sda1 swap
/dev/sda2 /

Like TobiSGD said i think it was because /etc, which is under / was under other partition, so i will do:
Code:

/dev/mmcblkp0 /boot
/dev/mmcblkp1 /
/dev/sda1 swap
/dev/sda2 /home
/dev/sda3 /usr
/dev/sda4 /tmp


frushiyama 06-05-2014 06:41 AM

I cant boot with swap on other device than the one with / so my final /etc/fstab:
Code:

/dev/mmcblkp0 /boot
/dev/mmcblkp1 swap
/dev/mmcblkp2 /
/dev/sda1 /home
/dev/sda2 /usr
/dev/sda3 /tmp



All times are GMT -5. The time now is 04:36 AM.