LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 05-27-2014, 12:31 PM   #1
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171

Rep: Reputation: 40
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?
 
Old 05-27-2014, 01:09 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
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.
 
1 members found this post helpful.
Old 05-27-2014, 01:45 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
1 members found this post helpful.
Old 05-27-2014, 08:45 PM   #4
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 40
I did not use anything less then necessary from sdcard, so:
Code:
/dev/mmcblkp0 /boot
/dev/sda1 swap
/dev/sda2 /
thanks for the advices.

Last edited by frushiyama; 05-27-2014 at 08:50 PM.
 
Old 05-30-2014, 11:10 AM   #5
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 40
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
 
Old 06-05-2014, 06:41 AM   #6
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 40
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
 
  


Reply

Tags
fstab, partition, raspberry pi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition layout NetRock Linux - Hardware 10 01-04-2013 10:00 AM
Best partition Layout Laodiceans Slackware 9 08-06-2010 07:55 PM
Modifying partition layout & partition order rm_-rf_windows Linux - General 3 06-28-2007 05:16 AM
partition layout pilatus666 Linux - Newbie 4 06-06-2006 01:44 AM
partition layout vs performance? kostian Linux - General 3 11-08-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration