Letters to the Editor

March 1st, 1995 by Various in

Readers sound off.
Your rating: None
Hardware vs. Software

In “An introduction to block device drivers” (Issue 9, January) you write:

“... you will not be able to mount the tape, even though it contains the same information as the disk”.

I hope you know that the half-inch tape drives have all the features allowing half-inch tapes, written in a standard way, to be mounted read-only and (if the tape quality permits) to use the tape as a full-featured random-access read/write media after formatting.

I believe the sentence I've quoted has been written to simplify things and not because of lack of knowledge.

Also, I have another question close to the topic. Why are there no raw disk devices in Linux, unlike, for example, BSD and SVR3 (I don't know for sure about SVR4)? Is it because the buffering is implemented in a more correct way so that one is able to do fsck on a block device and then mount it immediately or because of something else?Sincerely,Leo Broukhis leo@zycad.com

LJ Responds:

I was perhaps not explicit enough. My statement was not intended to say anything about the hardware capabilities. The Linux kernel does not have block device drivers for any form of tapes and, therefore, is unable to mount them as filesystems, even if the hardware supports it.

The reason that there are no raw devices is that the VFS is implemented such that an open of a block device, while it does buffer, is immediate. See block_read() and block_write() and notice that they aren't used for reading and writing blocks on mounted devices, but only opened devices.

rm Your Way to Fun and Disaster!

I found the remove article interesting (in January 1995). The remove alias needs to be more general. It only handles one file: you need to do something like:

alias rm='mv $* ~/.rm'

Actually, it's better to use the -b (backup) option in GNU fileutils and do:

alias rm='mv -b $* ~/.mv'

and default to numbered backups. Then, if you remove foo.c in two different directories, you'll get entries like:

foo.c      foo.c.~1~

so you can recover each one, with some work.

I also find the /bin/rm -r ~/.rm in your .profile incredibly bad.

You often find you want to check something after you log out, so if you log in, you automatically erase your backup right away. It is much better to use cron.

Also, I haven't used it, but I want to try the MIT Athena delete/undelete system (posted to comp.source.misc, v17). It may be worth a try. You should also review this.Marty Leisner leisner@sdsp.mc.xerox.com

LJ Responds:

The MIT Athena delete/undelete system sounds interesting; we hope to review it. Mark answers another letter about that column at the end of his column for this month.

__________________________


Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
enigma index mp3's picture

linux

On October 2nd, 2007 enigma index mp3 (not verified) says:

are asm/*.h? linux/*.h Where and Thanks.

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Featured Videos

Setting up an https server in Apache is easy. This tutorial covers how to create and sign your ssl certificate as well as how to configure the web server.

From the Magazine

January 2009, #177

It's a battle as old as time: good vs. evil. Fortunately, Linux and FOSS are on our side as we wage the battle against those who try to steal our secrets and invade our systems.

Checking your system's security is best done sooner rather than later. Test the locks with our article on security verification; find out how to use PAM to help secure your systems; use MinorFS and AppArmor to implement discretionary access control; learn more about Samba security in part III of our series; use Darknet to help detect bots and secure your systems; use the Yubikey to increase your site's security; and don't forget to lock the doors, because a cold boot attack could render your security useless if somebody has physical access to your computer.

But, we're not just about sowing the seeds of fear. We also show you how to use memcached in Rails, how to manage multiple servers efficiently, how to deploy applications easily with Capistrano, how to manage your videos with MythVideo, how to mix it up a bit (your audio that is), and even play a few games.

Read this issue