RM新时代网站-首页

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

【昉·星光 2(VisionFive 2)RISC-V單板計(jì)算機(jī)】根目錄擴(kuò)容-愉快的install大型軟件

嵌入式USB開發(fā) ? 來源:嵌入式USB開發(fā) ? 作者:嵌入式USB開發(fā) ? 2023-07-18 07:20 ? 次閱讀

問題

install安裝程序

提示/usr/下空間不夠

Unpacking cpp-13 (13.1.0-8) ...

dpkg: error processing archive /var/cache/apt/archives/cpp-13_13.1.0-8_riscv64.deb (--unpack):

cannot copy extracted data for './usr/libexec/gcc/riscv64-linux-gnu/13/cc1' to '/usr/libexec/gcc/riscv64-linux-gnu/13/cc1.dpkg-new': failed to write (No space left on device)

Preparing to unpack .../gcc-13_13.1.0-8_riscv64.deb ...

Unpacking gcc-13 (13.1.0-8) ...

dpkg: error processing archive /var/cache/apt/archives/gcc-13_13.1.0-8_riscv64.deb (--unpack):

cannot copy extracted data for './usr/libexec/gcc/riscv64-linux-gnu/13/lto1' to '/usr/libexec/gcc/riscv64-linux-gnu/13/lto1.dpkg-new': failed to write (No space left on device)

Errors were encountered while processing:

/var/cache/apt/archives/cpp-13_13.1.0-8_riscv64.deb

/var/cache/apt/archives/gcc-13_13.1.0-8_riscv64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

查看分區(qū)

*df -h*

查看/目錄使用了96%

root@starfive:~# df -h

Filesystem      Size  Used Avail Use% Mounted on

udev            1.7G  117M  1.6G   7% /dev

tmpfs           390M  3.2M  387M   1% /run

**/dev/mmcblk1p4  2.5G  2.3G  123M  96% /**

tmpfs           2.0G     0  2.0G   0% /dev/shm

tmpfs           5.0M   12K  5.0M   1% /run/lock

tmpfs           390M   60K  390M   1% /run/user/110

tmpfs           390M   20K  390M   1% /run/user/0

root@starfive:~#

查看存儲

*fdisk -l*

有28.85G,/即**/dev/mmcblk1p4 **只使用了2.5G左右

root@starfive:~# fdisk -l

Disk /dev/mtdblock0: 256 KiB, 262144 bytes, 512 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

Disk /dev/mtdblock1: 3 MiB, 3145728 bytes, 6144 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

Disk /dev/mtdblock2: 1 MiB, 1048576 bytes, 2048 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

GPT PMBR size mismatch (5529599 != 60506111) will be corrected by write.

**Disk /dev/mmcblk1: 28.85 GiB, 30979129344 bytes, 60506112 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: gpt

Disk identifier: E05DB137-41F7-47A6-B1C1-E9BE91A4BC0E

Device          Start     End Sectors  Size Type

/dev/mmcblk1p1   4096    8191    4096    2M HiFive BBL

/dev/mmcblk1p2   8192   16383    8192    4M HiFive FSBL

/dev/mmcblk1p3  16384  221183  204800  100M EFI System

/dev/mmcblk1p4 221184 5527518 5306335  2.5G Linux filesystem

root@starfive:~#

創(chuàng)建分區(qū)

原來是刪除原來的/目錄的分區(qū),然后重新創(chuàng)建分區(qū),注意刪除/所在的分區(qū)時先不要w保存,最后創(chuàng)建新的分區(qū)再保存。

*fdisk mmcbllk1*

root@starfive:~# fdisk mmcbllk1

Welcome to fdisk (util-linux 2.38.1).

Changes will remain in memory only, until you decide to write them.

Be careful before using the write command.

fdisk: cannot open mmcbllk1: No such file or directory

root@starfive:~# fdisk /dev/mmcblk1

Welcome to fdisk (util-linux 2.38.1).

Changes will remain in memory only, until you decide to write them.

Be careful before using the write command.

This disk is currently in use - repartitioning is probably a bad idea.

It's recommended to umount all file systems, and swapoff all swap

partitions on this disk.

*輸入p查看*

Command (m for help): p

Disk /dev/mmcblk1: 28.85 GiB, 30979129344 bytes, 60506112 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: gpt

Disk identifier: E05DB137-41F7-47A6-B1C1-E9BE91A4BC0E

Device           Start      End  Sectors  Size Type

/dev/mmcblk1p1    4096     8191     4096    2M HiFive BBL

/dev/mmcblk1p2    8192    16383     8192    4M HiFive FSBL

/dev/mmcblk1p3   16384   221183   204800  100M EFI System

/dev/mmcblk1p4  221184  5527518  5306335  2.5G Linux filesystem

*輸入d,然后輸入4刪除分區(qū)4*

Command (m for help): d

Partition number (1-4, default 4): 4

Partition 4 has been deleted.

*輸入n然后輸入4重新創(chuàng)建分區(qū)4,后面都直接回車按照默認(rèn)參數(shù)*

Command (m for help): n

Partition number (4-128, default 4): 4

First sector (34-60506078, default 221184):

Last sector, +/-sectors or +/-size{K,M,G,T,P} (221184-60506078, default 60504063):

Created a new partition 4 of type 'Linux filesystem' and of size 28.7 GiB.

Partition #4 contains a ext4 signature.

*如下提示輸入y*

Do you want to remove the signature? [Y]es/[N]o: y

The signature will be removed by a write command.

*輸入w寫入分區(qū)*

Command (m for help): w

The partition table has been altered.

Syncing disks.

*通知內(nèi)核同步**partprobe /dev/mmcblk1*

root@starfive:~# partprobe /dev/mmcblk1

*再次查看分區(qū)lsblk,可以看到根目錄/增加到了28.7G*

root@starfive:~# lsblk

NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS

mtdblock0    31:0    0  256K  0 disk

mtdblock1    31:1    0    3M  0 disk

mtdblock2    31:2    0    1M  0 disk

mmcblk1     179:0    0 28.9G  0 disk

├─mmcblk1p1 179:1    0    2M  0 part

├─mmcblk1p2 179:2    0    4M  0 part

├─mmcblk1p3 179:3    0  100M  0 part

└─mmcblk1p4 179:4    0 28.7G  0 part /

*擴(kuò)容** resize2fs /dev/mmcblk1p4*

root@starfive:~# resize2fs /dev/mmcblk1p4

`resize2fs 1.46.6-rc1 (12-Sep-202[ 1019.864399] EXT4-fs (mmcblk1p4): resizing filesystem from 663291 to 7535360 blocks`

2) 

Filesystem at /dev/mmcblk1p4 is mounted on /; on-line resizing required

old_desc_blocks = 1, new_desc_blocks = 4

[ 1020.838282] EXT4-fs (mmcblk1p4): resized filesystem to 7535360

The filesystem on /dev/mmcblk1p4 is now 7535360 (4k) blocks long.

總結(jié)

通過闡述分區(qū)在重新創(chuàng)建分區(qū),最后resize2fs擴(kuò)展文件系統(tǒng)大小。

擴(kuò)容后此時根目錄就夠用了,可以愉快的install程序了。

審核編輯:湯梓紅

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • 計(jì)算機(jī)
    +關(guān)注

    關(guān)注

    19

    文章

    7488

    瀏覽量

    87848
  • 軟件
    +關(guān)注

    關(guān)注

    69

    文章

    4921

    瀏覽量

    87392
  • 程序
    +關(guān)注

    關(guān)注

    117

    文章

    3785

    瀏覽量

    81000
  • RISC-V
    +關(guān)注

    關(guān)注

    45

    文章

    2270

    瀏覽量

    46124
收藏 人收藏

    評論

    相關(guān)推薦

    ·星光 2VisionFive 2RISC-V單板計(jì)算機(jī)】嘗試玩3D賽車-幀率有點(diǎn)低

    ·星光 2VisionFive 2RISC-V單板計(jì)
    的頭像 發(fā)表于 07-21 09:05 ?1173次閱讀
    【<b class='flag-5'>昉</b>·<b class='flag-5'>星光</b> <b class='flag-5'>2</b>(<b class='flag-5'>VisionFive</b> <b class='flag-5'>2</b>)<b class='flag-5'>RISC-V</b><b class='flag-5'>單板計(jì)算機(jī)</b>】嘗試玩3D賽車-幀率有點(diǎn)低

    ·星光 2VisionFive 2RISC-V單板計(jì)算機(jī)】SDL開發(fā)

    ·星光 2VisionFive 2RISC-V單板計(jì)
    的頭像 發(fā)表于 07-21 09:08 ?1374次閱讀
    【<b class='flag-5'>昉</b>·<b class='flag-5'>星光</b> <b class='flag-5'>2</b>(<b class='flag-5'>VisionFive</b> <b class='flag-5'>2</b>)<b class='flag-5'>RISC-V</b><b class='flag-5'>單板計(jì)算機(jī)</b>】SDL開發(fā)

    ·星光 2 高性能RISC-V單板計(jì)算機(jī)體驗(yàn)】+3、系統(tǒng)功能測試

    ·星光 2 高性能RISC-V單板計(jì)算機(jī)體驗(yàn)】+3、系統(tǒng)功能測試
    的頭像 發(fā)表于 07-26 08:59 ?1312次閱讀
    【<b class='flag-5'>昉</b>·<b class='flag-5'>星光</b> <b class='flag-5'>2</b> 高性能<b class='flag-5'>RISC-V</b><b class='flag-5'>單板計(jì)算機(jī)</b>體驗(yàn)】+3、系統(tǒng)功能測試

    ·星光單板計(jì)算機(jī)正式發(fā)售,加速RISC-V生態(tài)發(fā)展

    RISC-V Summit 2021大會上,賽科技(簡稱“賽”)作為中國RISC-V軟硬件生態(tài)的領(lǐng)導(dǎo)者,宣布“·
    發(fā)表于 12-09 09:22 ?1291次閱讀
    <b class='flag-5'>昉</b>·<b class='flag-5'>星光</b><b class='flag-5'>單板計(jì)算機(jī)</b>正式發(fā)售,加速<b class='flag-5'>RISC-V</b>生態(tài)發(fā)展

    ·星光 2 高性能RISC-V單板計(jì)算機(jī)體驗(yàn)】VisionFive2開箱+安裝Ubuntu

    ·星光 2 高性能RISC-V單板計(jì)算機(jī)體驗(yàn)】VisionFive2開箱+安裝Ubuntu
    發(fā)表于 02-21 17:49

    科技·星光RISC-V單板計(jì)算機(jī)首發(fā)試用

    ·星光VisionFive全球第一代高性價比的可運(yùn)行Linux的RISC-V單板計(jì)算機(jī),采用64位RI
    發(fā)表于 04-12 10:14

    RISC-V專題】賽科技·星光RISC-V單板計(jì)算機(jī)首發(fā)試用

    ! 上海賽科技作為此次活動的合作廠商,同步上線·星光RISC-V單板計(jì)算機(jī)VisionFive
    發(fā)表于 04-14 15:17

    RISC-V VisionFive星光單板計(jì)算機(jī))系列課程

    利用賽科技VisionFive單板計(jì)算機(jī)學(xué)習(xí)Linux系統(tǒng)第一期:交叉編譯是什么第二期:學(xué)習(xí)和使用RISC-V(第一部分)第三期:在VisionF
    發(fā)表于 04-15 15:01

    RISC-V專題】·星光 2VisionFive 2RISC-V單板計(jì)算機(jī)免費(fèi)試用

    VisionFive 2是全球首款集成3D GPU的高性能量產(chǎn)RISC-V 單板計(jì)算機(jī) 。與上一代相比,VisionFive
    發(fā)表于 05-16 11:26

    ·星光 2 高性能RISC-V單板計(jì)算機(jī)體驗(yàn)】2更換Debian操作系統(tǒng)

    接上兩篇:【·星光 2 高性能RISC-V單板計(jì)算機(jī)體驗(yàn)】1初識賽科技StarFive -
    發(fā)表于 08-31 00:03

    RISC-V + OpenCV 計(jì)算機(jī)視覺】用 VisionFive 2 ·星光 2 進(jìn)行物體識別

    廣泛應(yīng)用于視頻監(jiān)控、自動駕駛等領(lǐng)域。 基于Debain操作系統(tǒng)和OpenCV框架,賽科技在VisionFive 2·星光
    發(fā)表于 09-08 11:42

    歐拉開源操作系統(tǒng)成功適配VisionFive RISC-V單板計(jì)算機(jī)

    近日,歐拉開源操作系統(tǒng)在賽科技的·星光 RISC-V 單板計(jì)算機(jī) VisionFive 上成
    的頭像 發(fā)表于 05-12 11:20 ?1572次閱讀
    歐拉開源操作系統(tǒng)成功適配<b class='flag-5'>VisionFive</b> <b class='flag-5'>RISC-V</b><b class='flag-5'>單板計(jì)算機(jī)</b>

    ·星光2 RISC-V單板計(jì)算機(jī)體驗(yàn)(一) - 開箱

    ·星光2 RISC-V單板計(jì)算機(jī)體驗(yàn)(一) - 開箱 一、開箱 ·
    的頭像 發(fā)表于 02-21 10:10 ?710次閱讀
    <b class='flag-5'>昉</b>·<b class='flag-5'>星光</b><b class='flag-5'>2</b> <b class='flag-5'>RISC-V</b><b class='flag-5'>單板計(jì)算機(jī)</b>體驗(yàn)(一) - 開箱

    ·星光2 RISC-V單板計(jì)算機(jī)體驗(yàn)(二) - 系統(tǒng)環(huán)境

    ·星光2 RISC-V單板計(jì)算機(jī)體驗(yàn)(二) - 系統(tǒng)環(huán)境 一、官方資料 RISC-V官網(wǎng): [
    的頭像 發(fā)表于 02-21 10:15 ?649次閱讀
    <b class='flag-5'>昉</b>·<b class='flag-5'>星光</b><b class='flag-5'>2</b> <b class='flag-5'>RISC-V</b><b class='flag-5'>單板計(jì)算機(jī)</b>體驗(yàn)(二) - 系統(tǒng)環(huán)境

    ·星光2 RISC-V單板計(jì)算機(jī)體驗(yàn)(三) - SSH連接

    ·星光2 RISC-V單板計(jì)算機(jī)體驗(yàn)(三) - SSH連接 一、官方資料 RISC-V官網(wǎng):
    的頭像 發(fā)表于 02-21 10:21 ?492次閱讀
    <b class='flag-5'>昉</b>·<b class='flag-5'>星光</b><b class='flag-5'>2</b> <b class='flag-5'>RISC-V</b><b class='flag-5'>單板計(jì)算機(jī)</b>體驗(yàn)(三) - SSH連接
    RM新时代网站-首页