linuxmint / linuxmint/nemo

Handling write protected media

Open
#3,446 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
C
Stars
1.6k
Forks
368
Avg merge
4d 4h
Merged PRs (30d)
2

Description

Distribution

Mint 22 (but 21.x too)

Package version

6.2.8 (but olders too)

Frequency

Always

Bug description

Write protected SD card, or write protected floppy (I Have an USB floppy drive also).
Try to copy something to a write protected media. An error message says the media is write protected - OK.
But the copy process still working, and not stopping. Anytime after, try to shut down, or restart the system, got a warning message: copy process running, do you want to kill it or cancel the shut down/restart....

Steps to reproduce

For first sorry, I am using a localized Mint, so I don't know the exact messages in English.

  1. switch an SD card or floppy to write protected state.
  2. Put in the drive
  3. Nemo window appears
  4. try to drag some files here or try to copy in another way to media.
  5. Write protected warning message appears
  6. copy progress bar still working
  7. close the copy progress window with progress bar
  8. wait a bit, or more.
  9. try to restart or shut down the system
  10. See the warning about copy progress....
Expected behavior

kill the copy process when write protected media detected.

Additional information

There is also some kind a semantic bug in general I think, if you try to write images with dd to a protected media, the process is going on even the write protected state is detected, you must unmount the drive to stop it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named in the report. Reproduce the write-protected SD card or floppy copy in Nemo, then trace the copy operation and its shutdown-in-progress handling; done means the operation stops after the write-protection error and no copy warning remains on shutdown or restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.