Re: [SLE] automount floppies
From: Cliff Sarginson
On 5 Dec, Florian Kleedorfer wrote:
muzh schrieb:
I'm not quite sure what you mean. In my setup I have a line in /etc/fstab which says something like /dev/fd0 /floppy auto noauto,user 0 0
This enables any user to mount and umount /floppy In KDE or Gnome the user has merely to click on the icon to access the disk.
I'll try to describe my needs more clearly:
I'm looking for a way to use floppies without having to mount/umount them. GUIs don't really do anything else, they just save you some typing
The thing is, handling floppies under linux is hard for unexperienced users. Inconsistencies or data losses are almost ineviteable at first use.
there are packages/programs/patches that make using floppies easier such as the mtools(which don't do exactly what I need) or supermount, which is exactly what I need but which I haven't got to run nicely on my system (2.2.16) unfortunately.
So, again: I'll be glad to hear about your experiences with any tools as described above or any related hints whatsoever!
Thanx
Flo
I've used the 'autofs' package. It's available on the SuSE CD's (at least as far as 6.4). In addition to installing the package, you'll need to create two files: /etc/auto.mnt and /etc/auto.master.
These are what the files look like on my system: /etc/auto.mnt # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # Details may be found in the autofs(5) manpage
cdrom -fstype=iso9660,ro :/dev/cdrom floppy -fstype=auto,umask=0 :/dev/fd0 /etc/auto.master # Format of this file: # mountpoint map options # For details of the format look at autofs(8). /mnt /etc/auto.mnt
I indented the text for readability. Dn't indent when typing in the real file. If you do not have a CDROM drive, take out the "cdrom" line from 'auto.mnt'.
'autofs' will automatically mount the drive when you try to access it. The drive unmounts when you eject the disk.
The only problem with this of course is that sometimes you *dont* want the floppy to be mounted. Presumably you then receive mystery error messages ? Mmm. I am not quite sure I understand what the problem is here. Is it really such a hassle to mount floppies when needed ? Cliff The floppy is mounted under
"/mnt/floppy". That's what the "/mnt" in 'auto.master' is for.
-- Robert Wohlfarth rjwohlfar@bigfoot.com
"My theory's right. Reality needs to be fixed."
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
Message-ID: <3A2E0CE5.8080500@vsnl.com>
Date: Wed, 06 Dec 2000 15:24:45 +0530
From: Anurag Jalan
Message-ID: <3A2E6992.631A4E5@gypsyfarm.com>
Date: Wed, 06 Dec 2000 11:30:10 -0500
From: zentara
Hi all,
Since June, when i first installed Linux on my production server, i've managed to do pretty much what I wanted, save for SOFTWARE RAID.
The Server's a Compaq Deskpro with 2 x 9Gb SCSI HDs /dev/sda1 has the following partitions
Swap - 128 Mb /boot - 50 Mb ex2fs /home - 2.5 Gb ex2fs / - 6.5 Gb ex2fs
I have about 4Gb of data and System files on sda1 which i backup with taper to an HP DDS-2 cartridge.
Is it possible to implement software RAID at this stage ? If yes ..how can i get started ... If the answer is NO.. then how best do i utilise sda2 ?
You could format sda2 as ext2, then mount it at a convenient point, like /Disk2 , then keep backups, and large multimedia files there. You could also copy your /homes to sda2, giving you alot of user space. All you need to do is change /homes in /etc/fstab. Personally, I would keep it as a spare partition to store copies of cdroms and other huge iso images. <p>Have you read the Software-Raid Howto? There is linear Raid, Raid 0, and Raid 5 , amoung others, it depends on what you want to do. In any event, running the system off to tape and restoring is your safest bet. Some is linear, some parallel. You could back up everything to tape and repartition your system, for software raid, and copy your tape back into the new /dev/md0.
Message-Id: <5.0.0.25.1.20001206235554.01615af0@202.54.9.1>
Date: Thu, 07 Dec 2000 00:00:11 +0530
From: Anurag Jalan
< SNIP > Have you read the Software-Raid Howto?
Several times ......without much success :(
There is linear Raid, Raid 0, and Raid 5 , amoung others, it depends on what you want to do. In any event, running the system off to tape and restoring is your safest bet. Some is linear, some parallel.
I think what I am 'looking' for is RAID 1 ...could you please explain what is to be linear and what is to be parallel ?
You could back up everything to tape and repartition your system, for software raid, and copy your tape back into the new /dev/md0.
Please elaborate on this ...what's /dev/md0 ? Thanks Anurag
Message-ID: <3A2E8DFA.9E7276AA@gypsyfarm.com>
Date: Wed, 06 Dec 2000 14:05:30 -0500
From: zentara
Zentara and SuSErs
I think what I am 'looking' for is RAID 1 ...could you please explain what is to be linear and what is to be parallel ?
Please elaborate on this ...what's /dev/md0 ?
It would be best to read the Software-Raid Howto. It is all laid out in there. http://ostenfeld.dk/~jakob/Software-RAID.HOWTO/
Message-ID: <3A2E902C.CBB76B8B@gypsyfarm.com>
Date: Wed, 06 Dec 2000 14:14:52 -0500
From: zentara
Zentara and SuSErs
I think what I am 'looking' for is RAID 1 ...could you please explain what is to be linear and what is to be parallel ?
Please elaborate on this ...what's /dev/md0 ?
Linear is where your two disk partitions are just combined into one larger partition called /dev/md0. Set side by side. You double your partition size if the constituent partitions are equal. Parallel is where your 2 partitions are a mirror of each other in their respective partitions. They are called /dev/md0. You do not get more size, but you get redundancy.(mirror) md0 is the way fdisk recognizes raid arrays, (multiple disk 0) Your /dev/sda3 and /dev/sdb3 would be combined to form /dev/md0. <p>You may be looking for LVM, Logical Volume Manager, where you can logically combine 2 partitions into 1.
Message-ID: <3A2E29EC.A08336DF@yy-mm-dd.com>
Date: Wed, 06 Dec 2000 12:58:36 +0100
From: Florian Kleedorfer
The only problem with this of course is that sometimes you *dont* want the floppy to be mounted. Presumably you then receive mystery error messages ? Mmm. I am not quite sure I understand what the problem is here.
<p>The problems I encountered with autofs are: *) autofs doesn't umount busy devices. So if I am still accessing the mount point (say, the netscape file open dialog was last used there) and remove my floppy disk, autofs will not umount it until the drive is not busy any more. (In our example, one would have to open netscape's file open dialog and change directories.) *) autofs doesn't show the mount points until they are accessed, but even in this case the mount point is invisible as long as no floppy/CD is in the drive. Symlinks to the mount point only solve this problem only for the command line and those file open dialogs (such as gtk) that don't check the symlinks' destination. (netscape does so, unfortunately...)
Is it really such a hassle to mount floppies when needed ?
Not for me - BUT I take care of the technical issues for an internet-cafe. Users are used to windows and don't have a clue what it means to mount devices...
From: Cliff Sarginson
Cliff Sarginson schrieb:
The only problem with this of course is that sometimes you *dont* want the floppy to be mounted. Presumably you then receive mystery error messages ? Mmm. I am not quite sure I understand what the problem is here.
The problems I encountered with autofs are: *) autofs doesn't umount busy devices. So if I am still accessing the mount point (say, the netscape file open dialog was last used there) and remove my floppy disk, autofs will not umount it until the drive is not busy any more. (In our example, one would have to open netscape's file open dialog and change directories.) *) autofs doesn't show the mount points until they are accessed, but even in this case the mount point is invisible as long as no floppy/CD is in the drive. Symlinks to the mount point only solve this problem only for the command line and those file open dialogs (such as gtk) that don't check the symlinks' destination. (netscape does so, unfortunately...)
Is it really such a hassle to mount floppies when needed ?
Not for me - BUT I take care of the technical issues for an internet-cafe. Users are used to windows and don't have a clue what it means to mount devices...
An Internet Cafe running errrmm.. non windows systems ! That's cool ! C.
Message-ID: <3A2F3A43.B572D15B@wxs.nl>
Date: Wed, 06 Dec 2000 23:20:35 -0800
From: "S. Bulterman"
Cliff Sarginson schrieb:
The only problem with this of course is that sometimes you *dont* want the floppy to be mounted. Presumably you then receive mystery error messages ? Mmm. I am not quite sure I understand what the problem is here.
The problems I encountered with autofs are: *) autofs doesn't umount busy devices. So if I am still accessing the mount point (say, the netscape file open dialog was last used there) and remove my floppy disk, autofs will not umount it until the drive is not busy any more. (In our example, one would have to open netscape's file open dialog and change directories.) *) autofs doesn't show the mount points until they are accessed, but even in this case the mount point is invisible as long as no floppy/CD is in the drive. Symlinks to the mount point only solve this problem only for the command line and those file open dialogs (such as gtk) that don't check the symlinks' destination. (netscape does so, unfortunately...)
Is it really such a hassle to mount floppies when needed ?
Not for me - BUT I take care of the technical issues for an internet-cafe. Users are used to windows and don't have a clue what it means to mount devices...
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- Thanks in advance, Stefan -------------------------------------------------------------- Linux a world without borders, fences, windows and gates..... Titanic98 "Which computer do you want to sink today????"
Message-ID: <3A2F4A6C.6102DCF1@yy-mm-dd.com>
Date: Thu, 07 Dec 2000 09:29:32 +0100
From: Florian Kleedorfer
participants (5)
-
a_jalan@vsnl.com
-
cliff@raggedclown.net
-
klee@yy-mm-dd.com
-
s_bulterman@wxs.nl
-
zentara@gypsyfarm.com