Firefly开源社区

标题: rk3399 ssd挂载后大小不正常 [打印本页]

作者: selflag    时间: 2017-12-12 10:27
标题: rk3399 ssd挂载后大小不正常
您好:
使用3399开发板,固件版本为Firefly-rk3399_xubuntu1604_201707041527。插上intel的ssd后,可以识别,并分区。分区的结果如下:

root@firefly:/mnt# fdisk /dev/nvme0n1
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectors
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: dos
Disk identifier: 0x04e5e7a6

Device         Boot Start       End   Sectors   Size Id Type
/dev/nvme0n1p1       2048 500118191 500116144 238.5G 83 Linux

然后使用mkfs.ext3格式化,并使用mount挂在/mnt/harddisk上。此时使用df查看各个磁盘的站用情况:

root@firefly:/mnt# mount /dev/nvme0n1p1 harddisk
root@firefly:/mnt# df -lh
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        29G  2.0G   26G   8% /
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G  220K  1.9G   1% /dev/shm
tmpfs           1.9G   18M  1.9G   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           382M     0  382M   0% /run/user/0
tmpfs           382M   36K  382M   1% /run/user/1000
/dev/nvme0n1p1  2.9M   34K  2.7M   2% /mnt/harddisk
见最后一行,SSD硬盘的容量从实际的250G变成了2.7M。而且使用dd命令,确实也只能创建2.6M的文件。
作者: luvings    时间: 2017-12-12 16:35
更新固件后,在尝试下~  Firefly-RK3399_xubuntu1604_20171130.img
作者: 18091852872    时间: 2018-11-29 17:44
楼主,使用时M.2 的固态硬盘吗? 是什么型号?如何与开发板连接的?




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1