LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2017, 05:30 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Posts: 590

Rep: Reputation: 33
Question [Sheevaplug] Seeking advice about file layout


Hello,

Since the Sheevaplug forum over at NewIT is very quiet, I figured I'd have more chance getting help by asking here.

I use a Sheevaplug at home just to host a couple of personal web sites. It was migrated from its original Ubuntu 9 to Debian after Ubuntu stopped supporting ARM processors.

Since I'm no *nix expert, I simply installed Debian on a USB keydrive and have been running the Plug off it for a couple of years now. It works but it means I'm not using the on-board 512MB Flash memory and the SD slot.

Here's how files are currently layed out:

Code:
root@sheevaplug:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=63484,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=51512k,mode=755)
/dev/disk/by-uuid/a82663a4-cc9d-4551-b1a3-704eccf43343 on / type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=147240k)
/dev/sda1 on /boot type ext2 (rw,relatime,errors=continue)

Note: /dev/disk/by-uuid/a82663a4-cc9d-4551-b1a3-704eccf43343 = sda2

root@sheevaplug:~# fdisk -l

Disk /dev/mmcblk0: 16.0 GB, 16012804096 bytes
255 heads, 63 sectors/track, 1946 cylinders, total 31275008 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x40c68308

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048    31275007    15636480    c  W95 FAT32 (LBA)

Disk /dev/sda: 3999 MB, 3999268864 bytes
124 heads, 62 sectors/track, 1016 cylinders, total 7811072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000bbc04

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      444415      221184   83  Linux
/dev/sda2          444416     7364607     3460096   83  Linux
/dev/sda3         7366654     7809023      221185    5  Extended
/dev/sda5         7366656     7809023      221184   82  Linux swap / Solaris
IOW, all permanent files reside on a USB keydrive; Temporary files (tmpfs, etc.) live in RAM; The 512MB Flash RAM and the 16GB SD card are not used at all.

I have a couple of questions:

1. Is this a good way to install files? If not, how would you reorganize things?

2. The only Internet-accessible service is Nginx to run the web server. Very rarely, eg. a couple of times a year, the web server becomes unreachable, from the Net or from the LAN. Instead of just logging on through SSH and restarting Nginx, is there a way to investigate the cause of the problem?

Thank you.

Last edited by littlebigman; 05-18-2017 at 05:31 AM.
 
Old 05-18-2017, 08:07 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,848

Rep: Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383
" Is this a good way to install files? If not, how would you reorganize things"

Not sure I get that question. Do you want to install on the sd card? Many people run linux from a usb drive. Not ideal but useful. I assume http://www.cyrius.com/debian/kirkwoo...vaplug/unpack/ would work.

Usually programs may write to some log location. Look to /var first for clues. Since you can ssh in that may be both good and bad. https://www.nginx.com/resources/admi...nd-monitoring/
 
Old 05-18-2017, 08:35 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,713

Rep: Reputation: 3549Reputation: 3549Reputation: 3549Reputation: 3549Reputation: 3549Reputation: 3549Reputation: 3549Reputation: 3549Reputation: 3549Reputation: 3549Reputation: 3549
You are much better off running the way you are (from USB) rather than if you had installed on the SDCard. They are much more robust. I would just ignore the SDCard altogether. I don't understand the comment about Flash RAM - let's see the output from these
Code:
free
cat /proc/meminfo
 
Old 07-11-2017, 09:18 AM   #4
littlebigman
Member
 
Registered: Aug 2008
Posts: 590

Original Poster
Rep: Reputation: 33
Thanks for the infos. I'll just leave the whole system on the USB keydrive then, instead of moving all or part of it to the SDCard.

As for the Flash RAM: I'm currently not using any of the 500MB available there, and I was wondering if it'd be a good idea to make use of it instead of the USB keydrive.

Here's the output:
Code:
~# free
             total       used       free     shared    buffers     cached
Mem:        513644     229492     284152       4640      14908     180632
-/+ buffers/cache:      33952     479692
Swap:       221180          0     221180

# cat /proc/meminfo
MemTotal:         513644 kB
MemFree:          284152 kB
MemAvailable:     470860 kB
Buffers:           14908 kB
Cached:           180632 kB
SwapCached:            0 kB
Active:           117920 kB
Inactive:          94856 kB
Active(anon):      17560 kB
Inactive(anon):     4312 kB
Active(file):     100360 kB
Inactive(file):    90544 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:             0 kB
HighFree:              0 kB
LowTotal:         513644 kB
LowFree:          284152 kB
SwapTotal:        221180 kB
SwapFree:         221180 kB
Dirty:                40 kB
Writeback:             0 kB
AnonPages:         17248 kB
Mapped:            23344 kB
Shmem:              4640 kB
Slab:              10812 kB
SReclaimable:       6440 kB
SUnreclaim:         4372 kB
KernelStack:         520 kB
PageTables:         1020 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      478000 kB
Committed_AS:      66436 kB
VmallocTotal:     499712 kB
VmallocUsed:        5232 kB
VmallocChunk:     489316 kB
 
Old 07-11-2017, 03:55 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,848

Rep: Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383Reputation: 3383
You could use it for swap or data as long as you can access it correctly and format it.
Lucky that modern linux has had some work on embedded systems so the tools ought to be there. mtd-utils should let you in.



From 2012. http://www.blaicher.com/2012/07/inst...ug-into-flash/
"
Now itís time to copy your Debian to Flash. For this you have to become root, either by using su or sudo Ė depending on the method you choose during installation.

For the installation we still have to format the Flash so letís install the required software (as superuser):

apt-get install mtd-utils

Now we are able to format the Flash as ubifs and mount it to /mnt/:"
 
  


Reply


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
Seeking SEO Advice Heliades General 9 06-09-2015 05:46 PM
Seeking advice on JBoss satimis Linux - General 0 08-09-2006 10:19 AM
noob seeking advice sr_gnosis Linux - Games 5 07-22-2006 09:56 PM
seeking advice regarding Slackware adityavpratap Slackware 25 10-20-2005 11:47 AM
Seeking advice on script satimis Programming 1 10-05-2004 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 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