外付けハードディスクはext4 / fat32への書き込みを許可しません。小さすぎますか?

外付けハードディスクはext4 / fat32への書き込みを許可しません。小さすぎますか?

NTFSとして使用するために外部HDDをフォーマット(GPartedを使用)しましたが、書き込み権限が拒否されました。その後、fat32を試しましたが、ファイルサイズが小さすぎてexfatオプションがなく、パスワードを保護したいと思います。可能であれば、挿入中にお待ちください。 。

可能であれば、ドライブにパスワードを書き込んで設定できるようにするにはどうすればよいですか?私のext4プロセスにどのような問題がありますか?基本拡張ext4外付けハードドライブ、すべて表示、マウント、開くことができますが、書き込みはできませんか?

私は次のコマンドを使って試しましたが、うまくいきませんでした。

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdb1        2048 625141759 625139712 298.1G  b W95 FAT32
$ sudo  wipefs -a /dev/sdb1
wipefs: error: /dev/sdb1: probing initialisation failed: Device or resource busy
david@david-HP-15-Notebook-PC:~$ sudo  wipefs -a /dev/sdb1
/dev/sdb1: 8 bytes were erased at offset 0x00000052 (vfat): 46 41 54 33 32 20 20 20
/dev/sdb1: 1 byte was erased at offset 0x00000000 (vfat): eb
/dev/sdb1: 2 bytes were erased at offset 0x000001fe (vfat): 55 aa
david@david-HP-15-Notebook-PC:~$ sudo fdisk /dev/sdb1

Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognised partition table.
Created a new DOS disklabel with disk identifier 0x5fd1458f.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): 

Using default response p.
Partition number (1-4, default 1): 
First sector (2048-625139711, default 2048): 
Last sector, +sectors or +size{K,M,G,T,P} (2048-625139711, default 625139711): 

Created a new partition 1 of type 'Linux' and of size 298.1 GiB.

Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): 7
Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'.

**Command (m for help): w
The partition table has been altered.
Failed to add partition 1 to system: Invalid argument**

The kernel still uses the old partitions. The new table will be used at the next reboot. 
Synching disks.

wが無効なパラメータであると思います。どうすればいいですか?このexfatパーティションオプションはLinux Mintでは利用できませんか?それとも順序が変わりましたか?

これで、問題は以前に使用されたコマンドとしてリストされます。

$ sudo  wipefs -a /dev/sdb1
wipefs: /dev/sdb1: ignoring nested "dos" partition table on non-whole disk device
wipefs: Use the --force option to force erase.

今私が入力している内容はウェブサイトからのものです。

(exfatは明らかに複数のシステムでの使用に適しているので、好まれます。ntfsはすでにgpartedにあり、ext4は最後に好ましいオプションです)。それともLinuxではこれは不可能ですか?

ベストアンサー1

各パーティションとディスク全体をアンマウントします。

sudo umount /dev/sdb? /dev/sdb

古いパーティションスキームの削除:

sudo wipefs --all --force /dev/sdb? /dev/sdb; sync; partprobe

パーティションの作成:

sudo gdisk /dev/sdb

o Enter新しい空のGPT(GUIDパーティションテーブル)の場合の
y Enter決定を確認するための
n Enter新しいパーティションの場合の
Enter最初のパーティションのデフォルト値最初のセクタの
Enterデフォルト
Enter
Enter0700
w Enter
y Enter


Ext4ファイルシステムを作成します。

sudo mkfs.ext4 -L Some_Label -m 0 -b 512 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sdb1

または

NTFSファイルシステムを作成します。

sudo mkfs.ntfs --no-indexing --verbose --with-uuid --label Some_Label --quick --sector-size 512 /dev/sdb1

おすすめ記事