<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Tue May 21, 2013 7:30 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Tue May 21, 2013 7:30 pm</pubDate>
  <lastBuildDate>Tue May 21, 2013 7:30 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Fix found for running samba on the Pi</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110281#110281</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68666'&gt;andrewt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 03, 2013 1:00 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I've found the problem.  Using 'sudo aptitude search' I got a listing of the installed packages in my Pi, and compared with the equivalent listing on my (Mint14) netbook.  Lo and behold, the obvious difference was that the 'samba-common-bin' package was missing from my Pi.&lt;br /&gt;
&lt;br /&gt;
So, I've done a 'sudo apt-get install samba-common-bin' on my Pi, and I can now run the 'smbpasswd' command.&lt;br /&gt;
&lt;br /&gt;
Thought I'd provide this update, just in case anyone else is having the same difficulties &lt;br /&gt;
&lt;br /&gt;
 &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110281#110281</comments>
                                        <author>andrewt</author>
                                        <pubDate>Sun Feb 03, 2013 1:00 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110281#110281</guid>
                                      </item>
                                      <item>
                                        <title>Raspberry Pi as a Fileserver</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110175#110175</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68666'&gt;andrewt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jan 24, 2013 7:14 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks again nelz!&lt;br /&gt;
&lt;br /&gt;
I will take your advice and reformat the NTFS one to ext4 once I've found somewhere to copy the files already on that device.  &lt;br /&gt;
&lt;br /&gt;
Meanwhile, I've sorted the 'mount' problem (I'd got the VFAT and NTFS formats the wrong way round in fstab, doh!) so I should now be able to share the VFAT drive using samba.&lt;br /&gt;
&lt;br /&gt;
Can you help me with my samba problem too?  I've installed the latest verson of samba (sudo apt-get install samba), when I try to run the smbpasswd command that Graham suggests, I get the response '-bash: smbpasswd: command not found'.&lt;br /&gt;
&lt;br /&gt;
Any idea what I'm doing wrong this time?</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110175#110175</comments>
                                        <author>andrewt</author>
                                        <pubDate>Thu Jan 24, 2013 7:14 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110175#110175</guid>
                                      </item>
                                      <item>
                                        <title>Re: Raspberry Pi as a file server</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110168#110168</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jan 24, 2013 2:17 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      mount shows nothing mounted on /mnt/share[12] but your fstab listing confirms what I suspected about the filesystems. You cannot change ownership on a FAT filesystem, it has no concept of ownership.&lt;br /&gt;
&lt;br /&gt;
The in-kernel NTFS driver only allows reading by default, writing is disabled for a very good reason - it breaks things. The solution is to blacklist the ntfs module and install ntfs-3g, a FUSE filesystem that does support reliable writing.&lt;br /&gt;
&lt;br /&gt;
A better solution, as you are running a Linux file server, is to use proper Linux filesystems like ext4 instead of trying to shoehorn in alien choices. The only reason for using these filesystems would be if you want to be able to unplug the drivers from the file server and connect them directly to a Window box, which rather misses the point of a file server.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110168#110168</comments>
                                        <author>nelz</author>
                                        <pubDate>Thu Jan 24, 2013 2:17 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110168#110168</guid>
                                      </item>
                                      <item>
                                        <title>Raspberry Pi as a file server</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110167#110167</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68666'&gt;andrewt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jan 24, 2013 1:25 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hello Dutch_Master and nelz.  Thank you for your responses &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
&lt;br /&gt;
I've posted fstab and mount info below.  &lt;br /&gt;
&lt;br /&gt;
I've also posted the bits of the dmesg output from which I got the drive allocations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the fstab file&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
proc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /proc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;proc&amp;nbsp; &amp;nbsp; defaults&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;
/dev/mmcblk0p1&amp;nbsp; /boot&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vfat&amp;nbsp; &amp;nbsp; defaults&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;br /&gt;
/dev/mmcblk0p2&amp;nbsp; /&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext4&amp;nbsp; &amp;nbsp; defaults,noatime&amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;br /&gt;
/dev/sda1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/mnt/share1&amp;nbsp; &amp;nbsp; &amp;nbsp;vfat&amp;nbsp; &amp;nbsp; defaults&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;
/dev/sdb1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/mnt/share2&amp;nbsp; &amp;nbsp; &amp;nbsp;ntfs&amp;nbsp; &amp;nbsp; defaults&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;
# a swapfile is not a swap partition, so no using swapon|off from here on, use $&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
... and here is the output from &amp;quot;mount&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
pi@raspberrypi ~ $ mount&lt;br /&gt;
/dev/root on / type ext4 &amp;#40;rw,noatime,user_xattr,barrier=1,data=ordered&amp;#41;&lt;br /&gt;
devtmpfs on /dev type devtmpfs &amp;#40;rw,relatime,size=224436k,nr_inodes=56109,mode=755&amp;#41;&lt;br /&gt;
tmpfs on /run type tmpfs &amp;#40;rw,nosuid,noexec,relatime,size=44900k,mode=755&amp;#41;&lt;br /&gt;
tmpfs on /run/lock type tmpfs &amp;#40;rw,nosuid,nodev,noexec,relatime,size=5120k&amp;#41;&lt;br /&gt;
proc on /proc type proc &amp;#40;rw,nosuid,nodev,noexec,relatime&amp;#41;&lt;br /&gt;
sysfs on /sys type sysfs &amp;#40;rw,nosuid,nodev,noexec,relatime&amp;#41;&lt;br /&gt;
tmpfs on /run/shm type tmpfs &amp;#40;rw,nosuid,nodev,noexec,relatime,size=89780k&amp;#41;&lt;br /&gt;
devpts on /dev/pts type devpts &amp;#40;rw,nosuid,noexec,relatime,gid=5,mode=620&amp;#41;&lt;br /&gt;
/dev/mmcblk0p1 on /boot type vfat &amp;#40;rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro&amp;#41;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt; &lt;br /&gt;
&lt;br /&gt;
... and finally, here are the lines from the dmesg output&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.454204&amp;#93; scsi 0&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; Direct-Access&amp;nbsp; &amp;nbsp; &amp;nbsp;WD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My Passport 0740 1003 PQ&amp;#58; 0 ANSI&amp;#58; 6&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.494805&amp;#93; scsi 0&amp;#58;0&amp;#58;0&amp;#58;1&amp;#58; Enclosure&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SES Device&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1003 PQ&amp;#58; 0 ANSI&amp;#58; 6&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.508750&amp;#93; sd 0&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sda&amp;#93; 1465081856 512-byte logical blocks&amp;#58; &amp;#40;750 GB/698 GiB&amp;#41;&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.543868&amp;#93; sd 0&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sda&amp;#93; Write Protect is off&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.551173&amp;#93; sd 0&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sda&amp;#93; Mode Sense&amp;#58; 47 00 10 08&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.574119&amp;#93; sd 0&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sda&amp;#93; No Caching mode page present&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.582102&amp;#93; sd 0&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sda&amp;#93; Assuming drive cache&amp;#58; write through&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.625874&amp;#93; sd 0&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sda&amp;#93; No Caching mode page present&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.649659&amp;#93; sd 0&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sda&amp;#93; Assuming drive cache&amp;#58; write through&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.748419&amp;#93; scsi 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; Direct-Access&amp;nbsp; &amp;nbsp; &amp;nbsp;WDC WD16 00BB-00GUC0&amp;nbsp; &amp;nbsp; &amp;nbsp; 0000 PQ&amp;#58; 0 ANSI&amp;#58; 0&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.794778&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; 312581808 512-byte logical blocks&amp;#58; &amp;#40;160 GB/149 GiB&amp;#41;&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.832068&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; Write Protect is off&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.854160&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; Mode Sense&amp;#58; 27 00 00 00&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.855466&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; No Caching mode page present&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.877176&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; Assuming drive cache&amp;#58; write through&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.907060&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; No Caching mode page present&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.907085&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; Assuming drive cache&amp;#58; write through&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.930491&amp;#93;&amp;nbsp; sdb&amp;#58; sdb1&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.934944&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; No Caching mode page present&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.934969&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; Assuming drive cache&amp;#58; write through&lt;br /&gt;
&amp;#91;&amp;nbsp; &amp;nbsp; 4.934986&amp;#93; sd 1&amp;#58;0&amp;#58;0&amp;#58;0&amp;#58; &amp;#91;sdb&amp;#93; Attached SCSI disk&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110167#110167</comments>
                                        <author>andrewt</author>
                                        <pubDate>Thu Jan 24, 2013 1:25 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110167#110167</guid>
                                      </item>
                                      <item>
                                        <title>Re: Raspberry Pi as a file server</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110151#110151</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jan 22, 2013 11:03 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Please post the output from &amp;quot;mount&amp;quot;, using code tags as DM asked. I suspect the first is caused by a filesystem that doesn't support permissions, like FAT, while the second sounds like the filesystem is mounted read-only, make an NTFS filesystem mounted using the kernel driver.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110151#110151</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Jan 22, 2013 11:03 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110151#110151</guid>
                                      </item>
                                      <item>
                                        <title>Re: Raspberry Pi as a file server</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110150#110150</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jan 22, 2013 12:33 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Post the contents of the file /etc/fstab (use the code tags!)</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110150#110150</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Tue Jan 22, 2013 12:33 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110150#110150</guid>
                                      </item>
                                      <item>
                                        <title>Raspberry Pi as a file server</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=110149#110149</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68666'&gt;andrewt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jan 22, 2013 12:07 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Help!  I'm following the article in LXF160 about setting up my Pi as a fileserver.  I'm connecting to two usb drives (via a powered hub), but am getting problems with both.  &lt;br /&gt;
&lt;br /&gt;
The older one (a 160 gigabyte Classic SL drive from Freecom) does allow me to change directory to its mount point, but won't allow me to change ownership (responds with 'chown: changing ownership of `/mnt/share1': Operation not permitted')&lt;br /&gt;
&lt;br /&gt;
The newer one (a 750 gigabyte My Passport 0740 from Western Digital) won't allow me change directory to its mount point (responds with ''-bash: cd: share2: Permission denied&amp;quot;, but does list the files in attempting to change file ownership list, responding with 'chown: changing ownership of `/mnt/share2': Read-only file system'&lt;br /&gt;
&lt;br /&gt;
... and then when I come to trying to use the smbpasswd command to add a linux user account to samba, I get the response '-bash: smbpasswd: command not found'.&lt;br /&gt;
&lt;br /&gt;
I'm using the Raspian operating system.&lt;br /&gt;
&lt;br /&gt;
Can anyone out there help?</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=110149#110149</comments>
                                        <author>andrewt</author>
                                        <pubDate>Tue Jan 22, 2013 12:07 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=110149#110149</guid>
                                      </item></channel></rss>