LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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: Slackware64 14.1, Slackware ARM
Posts: 101

Rep: Reputation: 9
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
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,843

Rep: Reputation: 1529Reputation: 1529Reputation: 1529Reputation: 1529Reputation: 1529Reputation: 1529Reputation: 1529Reputation: 1529Reputation: 1529Reputation: 1529Reputation: 1529
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: Hanover, Germany
Distribution: Whatever fits the task best
Posts: 16,163
Blog Entries: 2

Rep: Reputation: 4396Reputation: 4396Reputation: 4396Reputation: 4396Reputation: 4396Reputation: 4396Reputation: 4396Reputation: 4396Reputation: 4396Reputation: 4396Reputation: 4396
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: Slackware64 14.1, Slackware ARM
Posts: 101

Original Poster
Rep: Reputation: 9
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: Slackware64 14.1, Slackware ARM
Posts: 101

Original Poster
Rep: Reputation: 9
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: Slackware64 14.1, Slackware ARM
Posts: 101

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 04:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration