Board logo

標題: 如何能格式化 ASMT 2115磁碟? [打印本頁]

作者: finfin    時間: 2021-2-13 00:29     標題: 如何能格式化 ASMT 2115磁碟?

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

唔該。
作者: javacomhk    時間: 2021-2-13 11:06

用 command line 去 format
作者: finfin    時間: 2021-2-14 16:15

用 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都係唔見。
作者: chancho    時間: 2021-2-14 16:42

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.
作者: finfin    時間: 2021-2-14 18:27

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

作者: chue    時間: 2021-2-14 19:47

Permission denied 真係唔易預計到,做乜都有機會出  Permission denied,連簡簡單單只係想用 GEDIT 之類開個文檔 EDIT 都有機會出  Permission denied
作者: javacomhk    時間: 2021-2-14 20:45

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

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



    咁你要買本書學下點樣用 linux command line 啦,好多 setup 都係用 Terminal 去做野。Linux 始祖就係得個 command prompt.
作者: chancho    時間: 2021-2-15 13:36

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'
作者: finfin    時間: 2021-2-17 00:38

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

[attach]2249386[/attach]

thanks.
作者: chancho    時間: 2021-2-17 09:04

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
作者: FizzyDrink    時間: 2021-2-17 19:10

install ntfs-3g?
作者: theluxman    時間: 2021-2-17 21:00

回覆 1# finfin

try gparted tool . you should be able to download from your distro repo.

https://gparted.org/
作者: finfin    時間: 2021-2-20 14:16

before we go further, did you use your m.2 disk anywhere else ? (is it new ?)
let's try few more com ...
chancho 發表於 2021-2-17 09:04


1) sudo parted -l

Model: ATA PLEXTOR PX-256M5 (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size    File system     Name                          Flags
1      1049kB  106MB  105MB   fat32           EFI system partition          boot, esp
2      106MB   123MB  16.8MB                  Microsoft reserved partition  msftres
3      123MB   109GB  109GB   ntfs            Basic data partition          msftdata
4      109GB   109GB  582MB   ntfs                                          hidden, diag
5      109GB   110GB  349MB   fat16           EFI System Partition          boot, esp
6      110GB   110GB  839MB   ext4
7      110GB   118GB  8000MB  linux-swap(v1)                                swap
8      118GB   256GB  138GB   btrfs


Model: ATA HGST HTS721010A9 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size   File system  Name                  Flags
1      1049kB  371GB   371GB  ntfs         Basic data partition  msftdata
2      371GB   1000GB  629GB  ext4


Model: Unknown (unknown)
Disk /dev/zram0: 4097MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system     Flags
1      0.00B  4097MB  4097MB  linux-swap(v1)

2) sudo smartctl -a /dev/sdc

sudo: smartctl: command not found

3) sudo dmesg | grep sdc

[ 3631.579855] sd 6:0:0:0: [sdc] Attached SCSI removable disk
作者: finfin    時間: 2021-2-20 14:17

install ntfs-3g?
FizzyDrink 發表於 2021-2-17 19:10



    我是雙系統安裝windows及 Linux Fedora
所以有NTFS磁碟區。
作者: finfin    時間: 2021-2-20 14:18

回覆  finfin

try gparted tool . you should be able to download from your distro repo.
theluxman 發表於 2021-2-17 21:00



    thank you.  Let me check.
作者: chancho    時間: 2021-2-20 14:42

you better install smartctl too. it can ckeck you disk down to register level.
if you disk has been used in some other devices (e.g. nas, or installed as raid), may be that device mess up your disk.
作者: javacomhk    時間: 2021-3-10 07:26

try repartition and format in windows os first, if not mountable in linux.
作者: KinChungE    時間: 2021-3-22 14:16

Permission denied 真係唔易預計到,做乜都有機會出  Permission denied,連簡簡單單只係想用 GEDIT 之類開個 ...
chue 發表於 2021-2-14 19:47


因為Linux絕大部份情況都唔似Windows咁識彈出黎問你UAC Yes/No
直接block
作者: antlee    時間: 2021-4-2 11:41

asmt 2115 係 usb3->sata chip
你隻 m.2 行 nvme 定 sata?
作者: finfin    時間: 2021-4-11 12:34

asmt 2115 係 usb3->sata chip
你隻 m.2 行 nvme 定 sata?
antlee 發表於 2021-4-2 11:41



    係用一個外置的殼裝住佢,
用USB 3.0連電腦,個殼里面我都唔知算係nvme定sata。
作者: antlee    時間: 2021-4-11 13:34

回覆 20# finfin
咁最好俾個m.2 ssd型號出俾大家參考下
因為你的m.2 ssd有可能行nvme而個 asmt 2115(usb enclosure)不支援
作者: finfin    時間: 2021-4-24 10:36

回覆  finfin
咁最好俾個m.2 ssd型號出俾大家參考下
因為你的m.2 ssd有可能行nvme而個 asmt 2115(usb encl ...
antlee 發表於 2021-4-11 13:34



    我己經放棄掉左。搞左咁耐都唔得!所正而家都好少需要用佢。





歡迎光臨 電腦領域 HKEPC Hardware (https://h2.hkepc.com/forum/) Powered by Discuz! 7.2