edit /etc/fstab to automount /mnt/floppy?


Forum: Other Help Topics
Topic: edit /etc/fstab to automount /mnt/floppy?
started by: mrbaldwin

Posted by mrbaldwin on April 01 2004,02:40
Is there a way to edit /etc/fstab to automount /mnt/floppy?
It would particularly useful, since I'm giving this DSL box away to a student who has no computer, in order to make things as easy as possible for her.

Posted by mrbaldwin on April 01 2004,02:40
I should have mentioned that this was on a HD install, an old pentium1 100mhz.
Posted by CappyCaffeine on April 01 2004,05:13
If you mean that you want DSL to recognize a floppy when inserted, even Windows XP won't do that until you perform a call to read the floppy when accessing the drive.

In the DSL desktop, one of the little applications in the slit is mount.app. It will cycle through the storage devices by hitting the right and left arrows at the lower right of the box, then by clicing on the rectangular button to the left of those arrows will mount the device: Floppy included.

Since DSL is based on Knoppix which recreates /etc/fstab on startup, editing it is only helpful until you reboot, then it's recreated again, or edited.

I have found that in order to "automount" existing partitions (such as a wiindows partition) is to  add

mount /mnt/hda1

to the /opt/bootlocal.sh file.

this is handy when using DSL as a samba or web server and the files to share or publish are on a windows partition. Or.. if they are burned onto a CDROM, you can "automount" the cdrom with:

mount /mnt/cdrom

to the /opt/bootlocal.sh file.

Cheers!

Cappy

Posted by Grim on April 03 2004,03:56
You want < supermount >.

It'll require a kernel recompile, but it'll add the following features:

With supermount, you can change the disk in the drive whenever you want (with the obvious exception that you shouldn't do it when the filesystem is actively in use). You don't need to "cd" out of the directory first, and you don't need to tell the kernel what you're doing --- supermount will detect the media change automatically.

Supermount will automatically detect whether the media you are mounting is read-write or readonly, and if you mount a write-protected disk, then the subfs will be mounted as a readonly filesystem.

Supermount detects when you have finished activity on the subfs, and will flush all buffers to the disk before completing the operation. So, if you copy a file onto a supermounted floppy disk, the data will all be written to disk before the "cp" command finishes. When the command does complete, it will be safe to remove the disk.

It can be applied to the following Linux kernel sources: 2.4.20, 2.4.21, 2.4.22, 2.4.23, 2.4.24

Maybe, if you ask real nice, John'll include supermount in the next release.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.