Forums Search Login Register
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,399
I have a server, from which I host a few directories on an external hdd. I'd like to just yank out the disk any time I want (it's why it is external) without any prior preparation.

- on dismount: force unmount and remove the mount point, whatever process uses it
- on mount: mount it again

Is dismount like this possible without crashing my server?
I tried to write udev usb mount rules plus shell scripts (on add and remove), but:
- for remove/dismount, a umount -l does not work and the syslog just log disk errors whenever I try to to access the drive
- for add, mounting doesn't seem to work from the shell script. Yet after typing the command manually the mount occurs properly.

Is there a better strategy for this?
10-17-2020, 10:35 PM
Subscribe to this thread Subscribed Users  Add Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  RAID/disk array card problem with identifying disks benitooshiro 0 1 Yesterday 07:12 AM
Last Post: benitooshiro
  [ubuntu] Want to dual-boot & Cannot resize my disk jindymas11 0 1 10-08-2020 02:38 AM
Last Post: jindymas11
  Disk space allocation question (.ecryptfs) ? PatrickSan1980 0 3 10-02-2020 01:06 PM
Last Post: PatrickSan1980
  [ubuntu] Issue with external Hardrive Big Bad John 0 2 09-29-2020 07:57 PM
Last Post: Big Bad John
  [ubuntu] Backup in external hard disk blesleystanleyz 0 18 08-29-2020 03:54 AM
Last Post: blesleystanleyz
  If I have 2 versions of Ubuntu on separate disk partitions and open malware..... jindymas11 0 23 08-13-2020 03:01 AM
Last Post: jindymas11
  External monitor working with nvidia card but not with intel medoebler82 0 18 08-04-2020 10:45 PM
Last Post: medoebler82
  [lubuntu] Acer Aspire laptop erase disk - Bad Unsquash Configuration SachaL1999 0 23 07-20-2020 05:44 AM
Last Post: SachaL1999
  Flashing external SSD to boot with Sata - USB sjaimefrederickv 0 25 07-08-2020 12:46 PM
Last Post: sjaimefrederickv
  Using a small 1.7MB file to run out of hard disk space in Ubuntu blesleystanleyz 0 35 07-02-2020 11:37 AM
Last Post: blesleystanleyz

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2020