[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

AMD, automounting local devices

Hello !!!

I don't know how to mount local devices automatically using amd. Devices such as cdrom, floppy discs ...

I've read somewhere that it's posible.
0
rvalle
Asked:
rvalle
1 Solution
 
xtermCommented:
Conventionally, your devices to mount at boot time are in
/etc/mtab (/etc/fstab shows all mounts)  There is proprietary
software to mount these devices at boot time, but in my
experience in order to mount a CD at boot time, you must have
one in the drive.  A better way to do it is this:

/root/bin/cd-on
mount -t iso9660 /dev/cdrom /cdrom  # or your mount point
/root/bin/cd-off
umount /dev/cdrom
/root/bin/floppy
mount -t ext2 [or msdos] /dev/fd0 /mnt/floppy # or whatever
/root/bin/unfloppy
umount /dev/fd0

You get the idea -- simple one line shell scripts to
automate the tasks when needed.  Remember to chmod +x
these files after you create them. (and it doesn't have
to be /root/bin -- I just use that so I can see all the
neat little 'binaries' I've created)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now