32GB内存卡只有1GB可用,谁吃了我的内存?
需要用到的软件:diskgenius
当我们烧录完系统的时候,开发板连接电脑就会发现,32GB只有1GB可用:
把烧录完固件的内存卡插入电脑,打开diskgenius软件,我们可以看到,有很多的空间未使用:
其中主分区(1)是K230的文件系统,我们右键,点击调整分区大小:
其中,分区前部的大小不能改,否则K230无法进入系统,分区后部的大小可以按需调整,也可以1KB都不留
调整完毕后,SD卡插入K230连接电脑,可以看到,扩容成功:
32GB内存卡只有1GB可用,谁吃了我的内存?
把烧录完固件的内存卡插入电脑,打开diskgenius软件,我们可以看到,有很多的空间未使用:
其中主分区(1)是K230的文件系统,我们右键,点击调整分区大小:
其中,分区前部的大小不能改,否则K230无法进入系统,分区后部的大小可以按需调整,也可以1KB都不留
调整完毕后,SD卡插入K230连接电脑,可以看到,扩容成功:
注意,我的K230扩容后,连接电脑有概率蓝屏,不知道是不是我电脑的bug,欢迎大家帮我测试
Note, attempting to resizing has a hidden catch…
The disk image from 01studio has both GPT and classic partition tables, and this can cause great confusion.
I did the following with the linux running in vmware, or cygwin under windows it changes to eg /dev/sdc because cygwin assigned sda and sdb to existing drives, whereas vmware left them as /dev/nvmw* or /dev/hd* for me… may be different for you … check for the partitions with the ‘p’ for print command… )
( A 3rd possibility would be to use the K230 itself, but its got too many problems to list here… eg the binaries for fdisk , and a usb drive mounted to store the filed that cant be kept of the sd card. )
This ASSUME /dev/sda is the target drive, completely unmounted.
mkdir /mnt/K230_FAT32
mkdir ~/K230_FAT32_files
mount /dev/sda3 /mnt/K230_FAT32
cp prd /mnt/K230_FAT32/* ~/K230_FAT32_files/
umount /dev/sda3
( or " mount -o loop ~/archive/K230_FAT32 K230_FAT32 " if you have the image of the sda3 backed up with ‘dd’. eg dd if=/dev/sda3 of=~/archive/K230_FAT32 )
fdisk /dev/sda # defaults to GPT table
e
3 # grow partition 3 to max
w # writes the GPT and exits. or q to exit
q # if needed
fdisk /dev/sda # defaults to GPT table
M # switch to classic partition table
e
1 # grow partition 1 to max … NOTE YES, The classic partition table has this at location 1 !!! that is not a typo … I dont know if difference MUST be preserved. but it does no harm. (I dont know if itis hard coded to use /dev/sda1 or if that can change to any partition number ? 1 to 4 ? )
w # writes the classic partition table.
q # exit
mkfs.vfat /dev/sda3 (linux uses the gpt table, so partition 3. )
mkdir /mnt/sda3
mount /dev/sda3 /mnt/sda3
cp -prd ~/K230_FAT32_files/* /mnt/sda3 # copy the files back in !.
umount /mnt/sda3
sync