斐讯K3路由器上格式化硬盘到ext格式

  • 2018-04-16
  • 295
  • 0
  • 2

刷的是官改版固件:http://www.right.com.cn/forum/thread-259012-1-1.html

原来硬盘是NTFS的,我就觉得Linux用它,一点也不合适.

安装一下用到的软件:

opkg update 
opkg install fdisk e2fsprogs 

查看我在路由器上插入的硬盘:

fdisk -l #查看分区 
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1       60802   488383488   7 HPFS/NTFS

进行格式化:

mkfs.ext4 /dev/sda1

mke2fs 1.43.7 (16-Oct-2017)
/dev/sda1 contains a ntfs file system labelled '新加卷'
Proceed anyway? (y,N) y
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/sda1 is mounted.
Creating filesystem with 122095872 4k blocks and 30531584 inodes
Filesystem UUID: 808122b5-abd5-4ce6-82ce-592d99c951c4
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done    

 

可能遇到的报错:

格式化时报错,意思磁盘被挂载占用着,不能操作,

[K3 /tmp]# mkfs.ext4 /dev/sda1
mke2fs 1.43.7 (16-Oct-2017)
/dev/sda1 contains a ntfs file system labelled '新加卷'
Proceed anyway? (y,N) y
/dev/sda1 is mounted; will not make a filesystem here!

 

执行,取消挂载硬盘:

umount /dev/sda1

 

评论

偷偷告诉你,这还毛都没有 T T

发表评论