<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.nuxified.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Nuxified GNU/Linux Help Forums - CD-ROMs - Comments</title>
 <link>http://www.nuxified.org/articles/cd_roms</link>
 <description>Comments for &quot;CD-ROMs&quot;</description>
 <language>en</language>
<item>
 <title> Is your cdrom hda or</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8648</link>
 <description> &lt;p&gt;Is your cdrom hda or hdb?&lt;br /&gt;
Also, you&#039;re trying to mount a cdrom as read-writable (rw)???&lt;/p&gt;
 </description>
 <pubDate>Sun, 22 Apr 2007 14:49:02 +0200</pubDate>
 <dc:creator>tbuitenh</dc:creator>
 <guid isPermaLink="false">comment 8648 at http://www.nuxified.org</guid>
</item>
<item>
 <title> I just tried
mount -t</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8641</link>
 <description> &lt;p&gt;I just tried&lt;/p&gt;
&lt;p&gt;mount -t iso9660 /dev/hdb1 /mnt/cdrom -o rw,omask=000&lt;/p&gt;
&lt;p&gt;same with hdb6 or hdb instead of hdb1.&lt;/p&gt;
&lt;p&gt;I get a message saying&lt;/p&gt;
&lt;p&gt;[root@localhost rscheng]# mount -t iso9660 /dev/hdb1 /mnt/cdrom -o rw,omask=000&lt;br /&gt;
mount: /dev/hdb1 already mounted or /mnt/cdrom busy&lt;br /&gt;
mount: according to mtab, /dev/hdb1 is mounted on /&lt;br /&gt;
[root@localhost rscheng]# mount -t iso9660 /dev/hdb6 /mnt/cdrom -o rw,omask=000&lt;br /&gt;
mount: /dev/hdb6 already mounted or /mnt/cdrom busy&lt;br /&gt;
mount: according to mtab, /dev/hdb6 is mounted on /home&lt;br /&gt;
[root@localhost rscheng]# mount -t iso9660 /dev/hdb /mnt/cdrom -o rw,omask=000&lt;br /&gt;
mount: /dev/hdb already mounted or /mnt/cdrom busy&lt;br /&gt;
mount: according to mtab, /dev/hda is already mounted on /mnt/cdrom&lt;br /&gt;
[root@localhost rscheng]#  &lt;/p&gt;
&lt;p&gt;when I device:konqueror&lt;/p&gt;
&lt;p&gt;I see &lt;/p&gt;
&lt;p&gt;CD-ROM (hda) .... 0B  Mounted CD-ROM&lt;/p&gt;
&lt;p&gt;but I put a disc in and double-click the link, I get&lt;/p&gt;
&lt;p&gt;no items - no folder [never mind]&lt;/p&gt;
&lt;p&gt;It went thru?!?  I&#039;m copyied the disk.  Strange?!?&lt;br /&gt;
Any clue on what is happening.&lt;/p&gt;
&lt;p&gt;Sheng-Chieh&lt;/p&gt;
 </description>
 <pubDate>Sun, 22 Apr 2007 04:58:17 +0200</pubDate>
 <dc:creator>shengchieh</dc:creator>
 <guid isPermaLink="false">comment 8641 at http://www.nuxified.org</guid>
</item>
<item>
 <title>asynchronous writing speed</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8246</link>
 <description> &lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;a thing wrote:&lt;/div&gt;
&lt;p&gt;Asynchronous writing means that not everything is written right away, but when the best time occurs. This speeds up writing (most of the time&amp;mdash;I&#039;ve no idea why).&lt;/div&gt;
&lt;p&gt;For disks, waiting a while and collecting the data means the data can be ordered such that it can be written in one sweep of the arm.&lt;/p&gt;
&lt;p&gt;Flash memory can&#039;t be written one byte at a time, it must be written in large blocks. This causes a problem similar to filesystem fragmentation, which is less likely to happen if data is written bursts larger than those blocks. Furthermore, writing a block of flash takes a long time, so it&#039;s better to write a block once than it is to write it a few times.&lt;/p&gt;
&lt;p&gt;Also, some programs will write something, and write to the same location again very soon. Doing that in a cache in RAM is much faster than on disk or flash.&lt;/p&gt;
&lt;p&gt;Finally, asynchronous writing means the program doesn&#039;t have to wait for the real write to finish, so response time will be better. That&#039;s not the same thing as higher writing speed, though. In the case where a program writes a large amount of data, in the right order, and then doesn&#039;t access the same data again, a synchronous write would be slightly faster (no copying data around in RAM).&lt;/p&gt;
 </description>
 <pubDate>Wed, 04 Apr 2007 10:17:35 +0200</pubDate>
 <dc:creator>tbuitenh</dc:creator>
 <guid isPermaLink="false">comment 8246 at http://www.nuxified.org</guid>
</item>
<item>
 <title>suggestions</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8245</link>
 <description> &lt;p&gt;I don&#039;t think we&#039;ve ever had someone submit an article as the first thing they put on this site, but thanks. &lt;img src=&quot;/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt; I hadn&#039;t heard of the -l option before.&lt;/p&gt;
&lt;p&gt;I made some formatting changes in your article (replacing -- with &amp;amp;mdash;, putting titles in &amp;lt;h2&amp;gt; elements, capitalizing CD-ROM (It&#039;s an acronym.)), although I haven&#039;t made any changes to the meaning.&lt;/p&gt;
&lt;p&gt;Now time for ACCâ„¢, a thing&#039;s Candid Critcismâ„¢:&lt;/p&gt;
&lt;p&gt;You might want to add a note that device naming schemes differ between kernels. If you use Mach or a BSD, this part of the tutorial doesn&#039;t apply.&lt;/p&gt;
&lt;p&gt;Ending directory names in a slash will help make it clearer that they&#039;re directories, not normal files.&lt;/p&gt;
&lt;p&gt;Using &quot;file&quot; instead of &quot;cat&quot; on the USB device to find if it exists would work without not fill your console with garbage.&lt;/p&gt;
&lt;p&gt;Things can be combined in one directory with UnionFS (Ionno how to do this though, I&#039;ve never needed it).&lt;/p&gt;
&lt;p&gt;The reason pulling a device out by force is bad is because it&#039;s mounted asychronously by default. This can be controled with the sync and async options. Asynchronous writing means that not everything is written right away, but when the best time occurs. This speeds up writing (most of the time&amp;mdash;I&#039;ve no idea why). When you forceably take out the device, the best time for asynchronous writing may not have occured yet.&lt;/p&gt;
&lt;p&gt;Samba isn&#039;t a protocol, it&#039;s an implementation of the SMB (Server Message Block) protocol.&lt;/p&gt;
&lt;p&gt;Every filesystem, not just smbfs, has its own separate program called by mount.&lt;/p&gt;
&lt;p&gt;libervisco, signitures should be attached to comments on things other than forums too.&lt;/p&gt;
 </description>
 <pubDate>Wed, 04 Apr 2007 06:34:48 +0200</pubDate>
 <dc:creator>a thing</dc:creator>
 <guid isPermaLink="false">comment 8245 at http://www.nuxified.org</guid>
</item>
<item>
 <title>Corrections welcome</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8241</link>
 <description> &lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;ifb wrote:&lt;/div&gt;
&lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;Quote:&lt;/div&gt;
&lt;p&gt;There is also an &quot;autofs&quot; option, which I gather is supposed to detect the filesystem for you automatically, but I&#039;ve never gotten it to work (nor have I had much need for it).&lt;/div&gt;
&lt;p&gt;Newbe assumptions are sometimes very funny &lt;img src=&quot;/misc/smileys/lol.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; /&gt; (No offence)&lt;/div&gt;
&lt;p&gt;Even though I&#039;ve been using Linux for 4 years -- 3 of them almost exclusively -- and I have managed to accomplish a lot of things that baffled me at first, I still feel like a newbie.  I wrote this article because I had finally managed to figure out how to do what I needed with mounting, not because I felt like an expert.&lt;/p&gt;
&lt;p&gt;I almost mentioned in the article that corrections and additions were welcome.  Perhaps some time I will re-write it with the things I have learned from these comments.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;br /&gt;
Derek&lt;/p&gt;
 </description>
 <pubDate>Wed, 04 Apr 2007 04:12:34 +0200</pubDate>
 <dc:creator>dcroxton</dc:creator>
 <guid isPermaLink="false">comment 8241 at http://www.nuxified.org</guid>
</item>
<item>
 <title>smbfs</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8229</link>
 <description> &lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;Quote:&lt;/div&gt;
&lt;p&gt;Actually, there is a separate mount command, &quot;smbmount,&quot; just for Windows shares, but you don&#039;t use it. Instead, when you mount an smbfs filesystem, the mount command calls smbmount for you.&lt;/div&gt;
&lt;p&gt;Note that as far as I could see, on Ubuntu the &quot;smbmount&quot; command isn&#039;t installed by dafult, which causes some strange errors when trying to mount Windows shares.&lt;br /&gt;
To enable &quot;smbmount&quot; one needs to install the &quot;smbfs&quot; package e.g. run&lt;br /&gt;
&lt;code&gt;sudo aptitude install smbfs&lt;/code&gt;&lt;br /&gt;
on the command-line, or simply select it in Synaptic.&lt;/p&gt;
 </description>
 <pubDate>Tue, 03 Apr 2007 11:20:11 +0200</pubDate>
 <dc:creator>ifb</dc:creator>
 <guid isPermaLink="false">comment 8229 at http://www.nuxified.org</guid>
</item>
<item>
 <title>autofs</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8228</link>
 <description> &lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;Quote:&lt;/div&gt;
&lt;p&gt;There is also an &quot;autofs&quot; option, which I gather is supposed to detect the filesystem for you automatically, but I&#039;ve never gotten it to work (nor have I had much need for it).&lt;/div&gt;
&lt;p&gt;Newbe assumptions are sometimes very funny &lt;img src=&quot;/misc/smileys/lol.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; /&gt; (No offence)&lt;br /&gt;
Actually autofs is used with the automount deamon (installed by the &quot;autofs&quot; package in Debian/Ubuntu) to allow for automatic (un)mounting of filesystems.&lt;br /&gt;
For example, you can set it up to automatically mount a shared directory over the network when you go into the /netshares/myserver/shared_files directory (directory names given are just for example).&lt;br /&gt;
In fact the &quot;autofs&quot; package includes some scripts to enable things like automatically mounting every windows share on the network by going into /smb/&amp;lt;hostname&amp;gt;/&amp;lt;sharename&amp;gt; or every NFS (unix) share by going into /net/&amp;lt;hostname&amp;gt;/&amp;lt;export-path&amp;gt;&lt;br /&gt;
Autofs was made as a tool for sysadmins to enable users to mount stuff without having to enable &quot;sudo&quot; for them or even teach them what &quot;mount&quot; is...&lt;/p&gt;
&lt;p&gt;With regard to auto-detecting the filesystem type you can use:&lt;br /&gt;
&lt;code&gt;mount -t auto ...&lt;/code&gt;&lt;br /&gt;
or not specify &quot;-t&quot; at all and &quot;mount&quot; will try to detect the filesystem type, which it will get right in most cases (its a little more complicated then that actually, details are, as ususal, in the manpage...)&lt;/p&gt;
 </description>
 <pubDate>Tue, 03 Apr 2007 11:10:40 +0200</pubDate>
 <dc:creator>ifb</dc:creator>
 <guid isPermaLink="false">comment 8228 at http://www.nuxified.org</guid>
</item>
<item>
 <title> 
Quote:
If you have trouble</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8227</link>
 <description> &lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;Quote:&lt;/div&gt;
&lt;p&gt;If you have trouble finding out which program is preventing an unmount, you can find it using lsof +D /the/directory/you/want/to/unmount. Note that this can take a while because it will look at all files in the directory and ask the kernel if any program opened them.&lt;/div&gt;
&lt;p&gt;Actually, there is another command built just for the purpose of finding out who is currently using a perticualr file or filesystem (and thus preventing it from being unmounted)&lt;br /&gt;
That command is &quot;fuser&quot; e.g.&lt;br /&gt;
&lt;code&gt;fuser /mnt/disk/mydir/myfile&lt;/code&gt;&lt;br /&gt;
To check which process is using the file &quot;myfile&quot; or&lt;br /&gt;
&lt;code&gt;fuser -m /mnt/disk&lt;/code&gt;&lt;br /&gt;
To figure out which process is using a file on the filesystem mounted on /mnt/disk.&lt;br /&gt;
Note that the fuser command should probably be run as root (use sudo) to be useful.&lt;/p&gt;
 </description>
 <pubDate>Tue, 03 Apr 2007 10:37:49 +0200</pubDate>
 <dc:creator>ifb</dc:creator>
 <guid isPermaLink="false">comment 8227 at http://www.nuxified.org</guid>
</item>
<item>
 <title>,lfs</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8203</link>
 <description> &lt;p&gt;WOAH! Thanks!!! I was just reading this article for the hell of it, mainly to see if there was anything I didn&#039;t already know about shares and you&#039;ve answered a question I hadn&#039;t even started looking for an answer for!!  &lt;/p&gt;
&lt;p&gt;Only this morning I discovered my remote samba share gzip backup script was dieing, I ran it manually and it kept dieing at exactly 2147483647 bytes. Now I know the cause of the problem and have the solution! &lt;/p&gt;
&lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;dcroxton wrote:&lt;/div&gt;
&lt;p&gt;	I will mention one other issue with Samba shares, because I ran into it recently and had a heck of a time finding the solution.  Apparently, Samba is only set up to deal with files of up to 2GB, which is not usually a problem.  Since I was trying to copy videos, however, it was an issue for me.  The solution is to pass &quot;lfs&quot; as one of the options:&lt;/p&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;	mount -t smbfs //Windowscomp/sharedfolder /mywindowsdir -o username=myuser,password=mypassword,lfs&lt;/code&gt;&lt;/div&gt;
 </description>
 <pubDate>Mon, 02 Apr 2007 08:28:44 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 8203 at http://www.nuxified.org</guid>
</item>
<item>
 <title> DDC - discs don&#039;t care.</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8181</link>
 <description> &lt;p&gt;DDC - discs don&#039;t care. They are just containers, you can even record a CD with ext2 if you like, no problem at all.&lt;/p&gt;
 </description>
 <pubDate>Sun, 01 Apr 2007 04:39:02 +0200</pubDate>
 <dc:creator>reptiler</dc:creator>
 <guid isPermaLink="false">comment 8181 at http://www.nuxified.org</guid>
</item>
<item>
 <title> there is no technical</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8180</link>
 <description> &lt;p&gt;there is no technical connection between FAT (which is vfat) and floopies, USB devices or memory cards. VFAT only means DOS formatted, which happens to be most common for these examples, but I have created ext2 partitions on USB sticks, and if you get a floppy image of a linux distribution, it will definately NOT be FAT formatted&lt;/p&gt;
 </description>
 <pubDate>Sun, 01 Apr 2007 00:57:01 +0200</pubDate>
 <dc:creator>free-zombie</dc:creator>
 <guid isPermaLink="false">comment 8180 at http://www.nuxified.org</guid>
</item>
<item>
 <title> In case you need a real</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8176</link>
 <description> &lt;p&gt;In case you need a real device, which I, again, need for EasyLFS, you can use losetup to assign the file to a loopback-device.&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;bb-code&quot;&gt;losetup -f /testlfs.img&lt;/code&gt;&lt;br /&gt;
will enable the use of the next free /dev/loop-device, which can be checked beforehand by&lt;br /&gt;
&lt;code class=&quot;bb-code&quot;&gt;losetup -f&lt;/code&gt;&lt;br /&gt;
If no device has been enabled before, this of course will be /dev/loop0.&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;bb-code&quot;&gt;losetup -d /dev/loop0&lt;/code&gt;&lt;br /&gt;
will clear the association and the loopback-device will become unusable.&lt;br /&gt;
This step can be skipped and integrated into unmounting by using -d with umount.&lt;/p&gt;
&lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;man umount wrote:&lt;/div&gt;
&lt;p&gt;       -d     In case the unmounted device was a loop device, also  free  this&lt;br /&gt;
              loop device.
&lt;/div&gt;
 </description>
 <pubDate>Sat, 31 Mar 2007 09:40:14 +0200</pubDate>
 <dc:creator>reptiler</dc:creator>
 <guid isPermaLink="false">comment 8176 at http://www.nuxified.org</guid>
</item>
<item>
 <title>mount iso files</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8175</link>
 <description> &lt;p&gt;one thing that took me a while to find out was the command for mounting ISO files,&lt;/p&gt;
&lt;p&gt;&lt;b&gt;mount -t iso9660 -o loop /isofile.iso /mount/point&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;I find myself using this command at least once a day.&lt;/p&gt;
 </description>
 <pubDate>Sat, 31 Mar 2007 04:55:31 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 8175 at http://www.nuxified.org</guid>
</item>
<item>
 <title> Right, but it can be useful</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8171</link>
 <description> &lt;p&gt;Right, but it can be useful for other things.&lt;br /&gt;
On my EasyLFS for example, the script is supposed to unmount the partition and then reboot, but it cannot really unmount because something is still running from that partition. So the scripts calls a lazy unmount and starts the reboot. The script will end then and, before the reboot really shoots off, or at least before it&#039;s done, the device will be properly unmounted.&lt;/p&gt;
&lt;p&gt;For the USB-stick, at least it prevents new access to the device, and processes that currently work on it can still finish (or be killed if you like).&lt;/p&gt;
 </description>
 <pubDate>Fri, 30 Mar 2007 14:43:32 +0200</pubDate>
 <dc:creator>reptiler</dc:creator>
 <guid isPermaLink="false">comment 8171 at http://www.nuxified.org</guid>
</item>
<item>
 <title>lazy unmount</title>
 <link>http://www.nuxified.org/article/using_external_file_devices_in_linux_climbing_the_mount_command#comment-8170</link>
 <description> &lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;reptiler wrote:&lt;/div&gt;
&lt;p&gt;You can also do a lazy unmount, which means that programms currently using the data from the mounted device can still do so until they are finished, but nothing new will have access.&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;bb-code&quot;&gt;umount -l &lt;span style=&quot;font-style:italic&quot;&gt;mountpoint&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;Yes, but that&#039;s not very useful when you want to remove your usb stick...&lt;/p&gt;
 </description>
 <pubDate>Fri, 30 Mar 2007 14:30:22 +0200</pubDate>
 <dc:creator>tbuitenh</dc:creator>
 <guid isPermaLink="false">comment 8170 at http://www.nuxified.org</guid>
</item>
</channel>
</rss>
