Skrivebeskyttet USB nøgle
Hej LinuxIN
Mine USB nøgler er af en eller anden årsag skrivebeskyttet, og, under egenskaber for USB'en er der ingen mulighed for at ændre på noget, så hvad gør jeg lige her?
mit system: Linux Mint 18.0
Jeg vedhæfter et par billeder
Mine USB nøgler er af en eller anden årsag skrivebeskyttet, og, under egenskaber for USB'en er der ingen mulighed for at ændre på noget, så hvad gør jeg lige her?
mit system: Linux Mint 18.0
Jeg vedhæfter et par billeder
Kommentarer7
Nogle usb-nøgler, har en
En anden mulighed er, at du har brugt dd, til at lægge iso filer på usb-nøglen.
Dette får usb-nøglen til at frem-stå som en DVD skive, altså et "read-only" fil system.
Det bedste værktøj til reparation er
fdisk
Slet alt på usb-nøglen
Opret en ny partion.
Formater partionen.
Mange ville sikkert foreslå Gparted, men jeg har ofte oplevet, at den ikke kunne
genskabe strukturen på usb-nøglen.
Skriv hvis du har brug for mere detaljeret vejledning.
Naturligvis er der den
Som de skriver i denne tråd: https://superuser.com/questions/543067/why-is-my-usb-flash-drive-now-read-only, så var den eneste løsning jeg fik til at virke at købe en ny. Jeg forsøgte med alle andre fifs uden held.
The drive is going bad. I've seen this happen to USB flash drives before - they are only temporarily good for storage, and you have to keep them backed up.
To confirm that the drive is bad, whilst copying files from the drive I see that it says certain files that are queued for copying do not exist.
Also, it is marked with write-protection, even though there are no registry entries causing that to be so.
A DOS prompt cannot be had!
Trying to copy files from the drive is nearly impossible.
Time to buy a new flash drive.
Prøv dette
Since different
Since different desktop environments use different tools to perform the same task, I resorted to one method that can be consistent across desktop environments: command line.
So here is how you format an SD card, USB drive or Micro SD card with fat32 file system from the command line in Linux.
1. Plug in your removable flash drive and run the ‘lsblk’ command to identify the device.
Here is the output of the 'lsblk' command on my system where ‘sdb’ is the removable flash storage:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 3.8G 0 disk
├─sdb2 8:18 1 2.4M 0 part
└─sdb1 8:17 1 1.5G 0 part /media/sandisk
2. There are many command line tools to do the job, but lately I started using 'parted' more, so that’s the utility I will be using for this tutorial. Run the 'parted' command with the name of the block device that you want to format. In this case, it’s ‘sdb’. (Be careful with the name of the block device because you might end up formatting the wrong drive.)
3. Exchange ‘sdb’ with the name of your block device in the following command:
sudo parted /dev/sdb
4. It will ask you to enter the password for the user and you will notice that parted replaces the username and $ sign, which means you are running the parted utility. First, let’s create a partition table. In this case, we are using MBR:
(parted) mklabel msdos
5. Once the partition table is created, you can create partitions on the drive. We will be creating just one partition:
(parted) mkpart primary fat32 1MiB 100%
6. Then set the boot flag on it:
(parted) set 1 boot on
7. Exit the parted tool:
(parted) quit
8. Now we need to format this partition as fat 32. First, check if the partition has been created successfully. Just run the 'lsblk' command and verify a new partition on ‘sdb’.
9. Now format it as fat32:
sudo mkfs.vfat /dev/sdb1
Just exchange ‘sdb1’ with the partition of your drive. Make sure to format the ‘partition on ‘sdb’ and not ‘sdb’ itself.
That’s how you format external storage devices on Linux. Now you can go ahead and start using the removable drive.
Tak for hjælpen
Fdisk, ser ud til at være tekst baseret, ikke min stærke side, så jeg gik med Gparted - Det virker fint nu, kan oprette mapper på USB nøglen.
Hvad er bedre til backup frem for USB, når nu de til tider, åbenbart har deres eget liv?
Hvad er bedre til backup
Flere USB'ere. helst tre styk ialt, men det behøver ikke være USB nøgler. Det kan være harddiske og hvis dine data ikke indeholder personlige data, som bankoplysninger med mere, så kan en af dine backup's være en Cloud Service
Hvilket filsystem er de
til at skrive til filsystemet på nøglen / harddisken.
Kan du eventuelt skrive til nøglerne som root i f.eks. en terminal?
Hvilket filsystem er de
Jeg tror at nøglerne er fat 32 formateret, fordi nøglerne kommer default formateret i fat 32, og fordi fat 32 fungerer i samtlige operative systemer.
Hvis det er korrekt, så er spørgsmålet om brugerrettigheder og tilladelser, der er fælles med både EXT (Linux), HFS (macOS) og NTFS (Windows) ikke aktuel, fordi fat 32 ikke understøtter sådan noget.
På en USB nøgle sættes flaget skrivebeskyttet nogen gange af et program man har brugt på USB nøglen. Hvis det sker skal den omformateres, før den kan genanvendes, og det kan udmærket give problemer, hvis man ikke kender metoderne.