Jetzt habe ich leider fdisk: unable to write /dev/sdb: Bad file descriptor
Ich habe wirklich viel herumprobiert/gegooglet, aber nichts hat geholfen. Das waren meine Befehle:
~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 94,1G 0 part
├─sda2 8:2 0 85,7G 0 part /
├─sda3 8:3 0 7,5G 0 part [SWAP]
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 229,7G 0 part
├─sda6 8:6 0 28,3G 0 part
└─sda7 8:7 0 20,5G 0 part
sdb 8:16 1 7,2G 1 disk
sr0 11:0 1 1024M 0 rom
Danach:
:~$ sudo 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 with disk identifier 0x33274d4b.
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): o
Building a new DOS disklabel with disk identifier 0x22a4021a.
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): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-15124991, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-15124991, default 15124991):
Using default value 15124991
Command (m for help): w
fdisk: unable to write /dev/sdb: Bad file descriptor
:~$
Irgendwo habe ich gelesen, man sollte:
:~$ sudo dd if=/dev/zero of=/dev/sdb bs=1M
dd: failed to open ‘/dev/sdb’: Read-only file system
Wie zu sehen, hat das auch nicht geholfen. Was kann ich sonst noch tun?
P.S. Der Stick hat keinen Schalter zum Verschieben auf WRITE/READ, falls das jemand fragen sollte.