如何能格式化 ASMT 2115磁碟?

我有張M.2磁碟,
用個m.2外殼裝住,本來想用來做移動磁碟的,
但當我插入電腦時是看不見它的,
只有去linux個"磁碟"呢個工具入面先見到佢,
並且話係ASMT 2115,想format佢又無得做。
請問要點先可以呢?

唔該。

用 command line 去 format

TOP

用 command line 去 format
javacomhk 發表於 2021-2-13 11:06



    我google到呢個網教人用command 去格式化
https://www.cyberciti.biz/faq/linux-disk-format/
但係第一個指令要列出所有磁碟,但係就話permission denied!
而且亦不見部ASMT 2115

@localhost ~]$ fdisk -l
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
fdisk: cannot open /dev/zram0: Permission denied
@localhost ~]$ fdisk -l | grep '^Disk'
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
fdisk: cannot open /dev/zram0: Permission denied

之後我用 df -h
就列出機裡面的磁碟,sda, sdb等等,
但係用USB插入的ASMT 2115都係唔見。

TOP

your error message said you do not have the permission, either 'su' or 'sudo'.
it is a high risk action for format a disk, you are not suitable for the job.

TOP

your error message said you do not have the permission, either 'su' or 'sudo'.
it is a high risk act ...
chancho 發表於 2021-2-14 16:42



    我用sudo有列出磁碟呀,
但係都係無見到隻usb插入的被顥示為ASMT 2115的M.2

TOP

Permission denied 真係唔易預計到,做乜都有機會出  Permission denied,連簡簡單單只係想用 GEDIT 之類開個文檔 EDIT 都有機會出  Permission denied

TOP

本帖最後由 javacomhk 於 2021-2-14 22:08 編輯
我google到呢個網教人用command 去格式化

但係第一個指令要列出所有磁碟,但係就話permission deni ...
finfin 發表於 2021-2-14 16:15



    咁你要買本書學下點樣用 linux command line 啦,好多 setup 都係用 Terminal 去做野。Linux 始祖就係得個 command prompt.

TOP

1) how many disk attach to the computer
2) what are the sizes of the disks (what is the size of your m.2 disk)
3) post the output 'sudo fdisk -l'

TOP

1) how many disk attach to the computer
2) what are the sizes of the disks (what is the size of your ...
chancho 發表於 2021-2-15 13:36



    1) how many disk attach to the computer
2 HD inside the computer and 1 USB m.2  

2) what are the sizes of the disks (what is the size of your m.2 disk)
120GB

3) post the output 'sudo fdisk -l'
Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: PLEXTOR PX-256M5
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: gpt
Disk identifier: 16B1121E-A2C1-4641-9956-B0DFDE0CFFF4

Device         Start       End   Sectors   Size Type
/dev/sda1       2048    206847    204800   100M EFI System
/dev/sda2     206848    239615     32768    16M Microsoft reserved
/dev/sda3     239616 212260050 212020435 101.1G Microsoft basic data
/dev/sda4  212260864 213397503   1136640   555M Windows recovery environment
/dev/sda5  213397504 214079487    681984   333M EFI System
/dev/sda6  214079488 215717887   1638400   800M Linux filesystem
/dev/sda7  215717888 231342079  15624192   7.5G Linux swap
/dev/sda8  231342080 500117503 268775424 128.2G Linux filesystem


Disk /dev/sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS721010A9
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 354EEE38-E488-44D1-A1DE-B4D111CC8F57

Device         Start        End    Sectors   Size Type
/dev/sdb1       2048  724723711  724721664 345.6G Microsoft basic data
/dev/sdb2  724723712 1953519615 1228795904 585.9G Linux filesystem


Disk /dev/zram0: 3.82 GiB, 4096786432 bytes, 1000192 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes



thanks.
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

before we go further, did you use your m.2 disk anywhere else ? (is it new ?)
let's try few more commands and then we can check the hardware.
post output of the following commands
1) sudo parted -l
2) sudo smartctl -a /dev/sdc
3) sudo dmesg | grep sdc

TOP