Pagina 1 di 3 1 2 3 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 28
  1. #1

    Problema USB e sola lettura

    ciao!

    oggi, dopo aver usato la usb sul mac, linux me la monta in sola lettura.
    questa la chiavetta:
    codice:
    # fdisk -l
    Disk /dev/sdc: 14,5 GiB, 15565062144 bytes, 30400512 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x028bfc42
    
    Dispositivo Avvio Start     Fine  Settori  Size Id Tipo
    /dev/sdc1          2048 30400511 30398464 14,5G  b W95 FAT32
    ho provato con dosfsck, ma anche qui mi da lo stesso errore:
    codice:
    # umount /dev/sdc1
    
    # dosfsck /dev/sdc1
    fsck.fat 4.1 (2017-01-24)
    open: File system in sola lettura
    sinceramente non saprei che fare, a parte formattarla.
    ho già provato a montarla e smontarla.

    idee??

  2. #2
    da qualche messaggio dal dmesg? dmesg | grep sdc

  3. #3
    ciao!

    ecco:
    codice:
    $  dmesg | grep sdb
    [  297.071811] sd 2:0:0:0: [sdb] 30400512 512-byte logical blocks: (15.6 GB/14.5 GiB)
    [  297.072365] sd 2:0:0:0: [sdb] Write Protect is on
    [  297.072371] sd 2:0:0:0: [sdb] Mode Sense: 23 00 80 00
    [  297.073021] sd 2:0:0:0: [sdb] No Caching mode page found
    [  297.073034] sd 2:0:0:0: [sdb] Assuming drive cache: write through
    [  297.078739]  sdb: sdb1
    [  297.082845] sd 2:0:0:0: [sdb] Attached SCSI removable disk
    sto su un altro pc sempre con linux, quindi ha cambiato lettera.
    però il risultato non cambia!

  4. #4

  5. #5
    si ho già provato.

    attaccato la chiavetta, ho dato questi comandi:
    codice:
    # fsck -n /dev/sdb1
    fsck da util-linux 2.32.1
    fsck.fat 4.1 (2017-01-24)
    0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
     Automatically removing dirty bit.
    /.Spotlight-V100/Store-V2/2A87B8D0-F530-488A-A790-32AFFFFC46C3/tmp.0.cmpt..mds.205.3.compactPayloads1.idx
      File size is 22024143 bytes, cluster chain length is > 22028288 bytes.
      Truncating file to 22024143 bytes.
    Leaving filesystem unchanged.
    /dev/sdb1: 17900 files, 158651/1898048 clusters
    
    # umount /dev/sdb1
    
    # mkfs -t vfat /dev/sdb1
    mkfs.fat 4.1 (2017-01-24)
    mkfs.vfat: unable to open /dev/sdb1: Read-only file system
    root@matte-port /run/media/matte# hdparm -r0 /dev/sdb
    
    /dev/sdb:
     setting readonly to 0 (off)
     readonly      =  0 (off)
    
    # mkfs -t vfat /dev/sdb1
    mkfs.fat 4.1 (2017-01-24)
    mkfs.vfat: unable to open /dev/sdb1: Read-only file system
    
    # mount -o uid=1000 /dev/sdb1 usb_tmp/
    mount: /run/media/matte/usb_tmp: WARNING: device write-protected, mounted read-only.
    
    # hdparm -r0 /dev/sdb1
    
    /dev/sdb1:
     setting readonly to 0 (off)
     readonly      =  0 (off)
    
    #  mount -o remount,rw /dev/sdb1
    arrivato a questo punto, posso cancellare i files che stanno dentro la chiavetta.
    ma direi che sarebbe meglio formattarla, perchè se la stacco e riattacco, non ho risolto il problema.
    e nn riesco cmq a formattarla.

  6. #6
    - non ho capito... la chiavetta riesci a montarla rw ?

    - per formattarla devi smontarla

  7. #7
    si, seguendo quei comandi si.
    però se la stacco e la riattacco normalmente, viene rimontata in sola lettura.
    mica posso fa sto giro ogni volta che la monto su tutti i pc.....

    se provo a smontarla e formattarla:
    codice:
    # umount /dev/sdb1
    
    # mkfs -t vfat /dev/sdb1
    mkfs.fat 4.1 (2017-01-24)
    mkfs.vfat: unable to open /dev/sdb1: Read-only file system

  8. #8
    prova a eliminare la tabella delle partizioni e ricrearla con "fdisk /dev/sdb"

  9. #9
    anche qui, stessa storia:
    codice:
    # fdisk /dev/sdb
    
    Welcome to fdisk (util-linux 2.32.1).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
    
    fdisk: impossibile aprire /dev/sdb: File system in sola lettura

  10. #10
    neanche dopo: sudo hdparm -r0 /dev/sdb

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.