Portál AbcLinuxu, 4. května 2025 23:06
mount /dev/sdb /mnt/sdbmi vypise:
mount: block device /dev/sdb is write-protected, mounting read-only mount: you must specify the filesystem typeten flah disk nema ziaden prepinac - ziaden cudlik na write protected. prikaz
dmesg
[17191940.504000] Vendor: USB Model: Flash Disk Rev: 1.89 [17191940.504000] Type: Direct-Access ANSI SCSI revision: 02 [17191940.564000] SCSI device sdb: 64000 512-byte hdwr sectors (33 MB) [17191940.564000] sdb: Write Protect is on [17191940.564000] sdb: Mode Sense: 03 00 80 00 [17191940.564000] sdb: assuming drive cache: write through [17191940.568000] SCSI device sdb: 64000 512-byte hdwr sectors (33 MB) [17191940.568000] sdb: Write Protect is on [17191940.568000] sdb: Mode Sense: 03 00 80 00 [17191940.568000] sdb: assuming drive cache: write through [17191940.568000] sdb: unknown partition table [17191940.580000] sd 2:0:0:0: Attached scsi removable disk sdb [17191940.580000] sd 2:0:0:0: Attached scsi generic sg1 type 0 [17191995.460000] cramfs: wrong magic [17191995.460000] VFS: Can't find ext3 filesystem on dev sdb. [17191995.464000] NTFS-fs warning (device sdb): is_boot_sector_ntfs(): Invalid boot sector checksum. [17191995.464000] NTFS-fs error (device sdb): read_ntfs_boot_sector(): Primary boot sector is invalid. [17191995.464000] NTFS-fs error (device sdb): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover. [17191995.464000] NTFS-fs error (device sdb): ntfs_fill_super(): Not an NTFS volume. [17191995.468000] FAT: bogus logical sector size 65535 [17191995.468000] VFS: Can't find a valid FAT filesystem on dev sdb. [17191995.600000] UDF-fs: No VRS found [17191995.732000] Unable to identify CD-ROM format.
ls -al /dev/sdb*
brw-rw---- 1 root plugdev 8, 16 2007-01-14 23:49 /dev/sdb
nodev binfmt_misc vfat udf iso9660fakt neviem ako mam ten disk naformatovat alebo co s nim spravit. O zaxranu dat mi neide (nebolo tam nic podstatne).
mkdosfs -F 32 /dev/sdb
mkdosfs 2.11 (12 Mar 2005) mkdosfs: unable to open /dev/sdbdakujem za akukolvek radu
mkfs -t vfat /dev/sdb1 mkfs.vfat 2.11 (12 Mar 2005) /dev/sdb1: No such file or directorya ja takto:
# mkfs -t vfat /dev/sdb mkfs.vfat 2.11 (12 Mar 2005) mkfs.vfat: unable to open /dev/sdbpouzil som aj Qtparted, ale bez uspexu. nemoze s flash diskom pracovat lebo je "zapnuta oxrana proti zapisu write-protected" primominam ze ziaden spinac tam nie je! :(
-f or --force
Do what I say, even if it is stupid.
a teda mozete ho prinutit vytvorit particiu aj napriek tomu ze sa hlasi ako write-protected.
# sfdisk -f /dev/sdb /dev/sdb: Read-only file system sfdisk: cannot open /dev/sdb read-writetak neviem...
# fdisk /dev/sdb You will not be able to write the partition table. Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): d No partition is defined yet! Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1-4 First cylinder (1-1000, default 1): 1 Last cylinder or +size or +sizeM or +sizeK (1-1000, default 1000): 1000 Command (m for help): w Unable to write /dev/sdb
~$ unzip Repair_v2.9.1.1.zip Archive: Repair_v2.9.1.1.zip inflating: Repair_v2.9.1.1.exe golisp@NOTEBOOK:~$ file Repair_v2.9.1.1.exe Repair_v2.9.1.1.exe: MS-DOS executable PE for MS Windows (GUI) Intel 80386 32-bit ~$
A zkoušel jsi ho v jiném počítači a nejlépe s jiným systémem. Už jsem se dvakrát nebo třikrát setkal s takovým USB Flash Diskem, co se hlásil jako write-protect a byla to HW vada, dodavatel to vyreklamoval.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.