Raspberry Pi文件系统(Raspberry Pi Filesystem)
我有一个问题,我找不到网上任何地方的答案 - 所以我想我会在这里问。 下面是我的Raspberry Pi中目录的代码片段。 我的Pi中安装了16GB SD卡,所有这些目录的总大小只有5GB左右。 当我尝试安装任何内容时,它会显示“Out of Memory”,并且我已经清除了所有日志文件等,以尝试释放空间。
但真正的问题是,为什么它有一个16GB的卡并且我只在它上面安装了apache2和php5时才说完整?
edward@raspberrypi:/ $ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 3.6G 3.5G 0 100% / devtmpfs 214M 0 214M 0% /dev tmpfs 218M 0 218M 0% /dev/shm tmpfs 218M 4.6M 213M 3% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 218M 0 218M 0% /sys/fs/cgroup /dev/mmcblk0p1 60M 20M 41M 34% /boot tmpfs 44M 0 44M 0% /run/user/1000 tmpfs 44M 0 44M 0% /run/user/1001
谢谢你的帮助。
I have a problem which I can't find the answer to anywhere online - so I thought I would ask it here. Below is a code snippet of the directories in my Raspberry Pi. I have a 16GB SD Card installed in my Pi, and the total size of all those directories is only about 5GB. When I try and install anything it says "Out of Memory", and I have already cleared all log files, etc to try and free up space.
But the real question is, why does it say full when it has a 16GB card and I've only installed apache2 and php5 on it?
edward@raspberrypi:/ $ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 3.6G 3.5G 0 100% / devtmpfs 214M 0 214M 0% /dev tmpfs 218M 0 218M 0% /dev/shm tmpfs 218M 4.6M 213M 3% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 218M 0 218M 0% /sys/fs/cgroup /dev/mmcblk0p1 60M 20M 41M 34% /boot tmpfs 44M 0 44M 0% /run/user/1000 tmpfs 44M 0 44M 0% /run/user/1001
Thanks for any help.
原文:https://stackoverflow.com/questions/37778557
最满意答案
if (rdr.HasRows) { while (rdr.Read()) { fileName = rdr["FileName"].ToString(); } }
if (rdr.HasRows) { while (rdr.Read()) { fileName = rdr["FileName"].ToString(); } }
相关问答
更多-
你在使用Sql Server 2008吗? 如果是这样,您可以利用内置的全文搜索功能 。 然后,它将如同将用户的(清理过的)输入传递给sql查询一样简单。 例如,下面是一个查询,用于搜索用户输入文本的作者,标题和PostContent字段。 SELECT Author, Title FROM Posts WHERE CONTAINS((Author, Title, PostContent), @userInput); SQL Server 2008也支持不同的搜索方法 ,如简单令牌,加权字值,同义词,邻近 ...
-
你应该像asp:GridView一样使用DataControl而不是asp:Table 。 如果是asp:Table ,则必须将整个数据以实际方式添加到行/列中。 在asp:GridView情况下,它只是一个数据绑定。 CS: string query = "SELECT name, startdate FROM table WHERE startdate > @end_date AND name = ..."; using (SqlConnection myConnection = new SqlConn ...
-
我在这里找到了我的问题的答案: http : //msdn.microsoft.com/en-us/library/xzb1zw3x.aspx ,使用adapter.update。 这似乎真的很慢(执行141行需要15-20秒),所以如果有任何其他解决方案,我想听听它! 这是我做的: c#: OleDbCommandBuilder builder = new OleDbCommandBuilder(adapter); foreach(DataRow dr in csrst2.Tables[0].Rows) ...
-
确保标签具有runat="server"属性,例如: 然后使用以下命令设置标题: Page.Title = reader["title"].ToString(); Make sure the tag has the runat="server" attribute, for example: Then set the title by using: Page.Title = reader[ ...
-
if (rdr.HasRows) { while (rdr.Read()) { fileName = rdr["FileName"].ToString(); } } if (rdr.HasRows) { while (rdr.Read()) { fileName = rdr["FileName"].ToString(); } }
-
C# - 循环foreach直到真(C# - Loop foreach until true)[2023-01-20]
您使用while循环的想法应该可行。 你可以尝试这样的事情: IntPtr hWnd = IntPtr.Zero; bool isFound = false; while(!isFound) { foreach (Process procList in Process.GetProcess()) { if (procList.MainWindowTitle.Contains("SAP Logon")) { isFound = true; hWnd = ... -
你可以在这里使用for循环 : // Pay attention to reversed order: // each currentNode.Remove() changes currentNode.Nodes.Count for (int i = currentNode.Nodes.Count - 1; i >= 0; --i) { TreeNode childNode = currentNode.Nodes[i]; if (!someCondition) { currentNod ...
-
ebad86的答案是可以接受的,但是由于你明显学习了,我认为在这一点上引入OO校长会浑水摸索你正在学习的东西。 这是一个基本的方法: private void GetData() { //The object that will physically connect to the database using(SqlConnection cnx = new SqlConnection("
") { //The SQL y ... -
我的猜测是,当您通过单步执行每行时,您的代码可能会有不同的行为。 (可能是因为数据库) 确保该方法没有抛出任何异常(放置一个调用Console.WriteLine或MessageBox.Show的catch块,看看是否有任何事情发生)。 查看数据库日志,看看有没有什么有趣的地方。 另外,请发布该方法的完整源代码。 It was not iterating through the foreach loop when I was not debugging the application because the ...
-
您只需要使用gridview或repeater等数据控件。然后,您可以将数据集绑定到这些控件的数据源属性。 从我的角度来看,转发器将是动态菜单的最佳datacontro .. 这里是转发器的标记
- <%#Eval(" ...