Disk partition adding storage to /

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Disk partition adding storage to /

ソリューションへジャンプ
309件の閲覧回数
Cyriactoms
Contributor III

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 32M 0 disk
mmcblk2 179:0 0 29.1G 0 disk
|-mmcblk2p1 179:1 0 83.2M 0 part
`-mmcblk2p2 179:2 0 1.5G 0 part /
mmcblk2boot0 179:32 0 4M 1 disk
mmcblk2boot1 179:64 0 4M 1 disk   

i need to add 29G to / mount point i have added it using fdisk command and my lsblk is now showing

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 32M 0 disk
mmcblk2 179:0 0 29.1G 0 disk
|-mmcblk2p1 179:1 0 83.2M 0 part
`-mmcblk2p2 179:2 0 29G 0 part /
mmcblk2boot0 179:32 0 4M 1 disk
mmcblk2boot1 179:64 0 4M 1 disk   

29G is mounted with root but when i give df -h

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.4G 877M 440M 67% /
devtmpfs 2.3G 0 2.3G 0% /dev
tmpfs 2.8G 0 2.8G 0% /dev/shm
tmpfs 1.1G 9.1M 1.1G 1% /run
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
tmpfs 2.8G 60K 2.8G 1% /tmp
tmpfs 2.8G 16K 2.8G 1% /var/volatile
tmpfs 562M 4.0K 562M 1% /run/user/0  

what i am missing to add the storage for the device  is this the right approach to allocate memory for the system

0 件の賞賛
返信
1 解決策
304件の閲覧回数
Cyriactoms
Contributor III
fdisk /dev/mmcblk2



Welcome to fdisk (util-linux 2.37.4).

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.





Command (m for help): p



Disk /dev/mmcblk2: 29.12 GiB, 31268536320 bytes, 61071360 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: 0x88bc4c84



Device Boot Start End Sectors Size Id Type

/dev/mmcblk2p1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)

/dev/mmcblk2p2 196608 3246773 3050166 1.5G 83 Linux



Command (m for help): d

Partition number (1,2, default 2): 2



Partition 2 has been deleted.



Command (m for help): n

Partition type

p primary (1 primary, 0 extended, 3 free)

e extended (container for logical partitions)

Select (default p): p

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

First sector (2048-61071359, default 2048): 196608

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



Created a new partition 2 of type 'Linux' and of size 29 GiB.

Partition #2 contains a ext4 signature.



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



Command (m for help): w



The partition table has been altered.

Syncing disks.

元の投稿で解決策を見る

1 返信
305件の閲覧回数
Cyriactoms
Contributor III
fdisk /dev/mmcblk2



Welcome to fdisk (util-linux 2.37.4).

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.





Command (m for help): p



Disk /dev/mmcblk2: 29.12 GiB, 31268536320 bytes, 61071360 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: 0x88bc4c84



Device Boot Start End Sectors Size Id Type

/dev/mmcblk2p1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)

/dev/mmcblk2p2 196608 3246773 3050166 1.5G 83 Linux



Command (m for help): d

Partition number (1,2, default 2): 2



Partition 2 has been deleted.



Command (m for help): n

Partition type

p primary (1 primary, 0 extended, 3 free)

e extended (container for logical partitions)

Select (default p): p

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

First sector (2048-61071359, default 2048): 196608

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



Created a new partition 2 of type 'Linux' and of size 29 GiB.

Partition #2 contains a ext4 signature.



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



Command (m for help): w



The partition table has been altered.

Syncing disks.
%3CLINGO-SUB%20id%3D%22lingo-sub-2186517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%2F%20%E3%81%AB%E3%82%B9%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B8%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%E3%83%91%E3%83%BC%E3%83%86%E3%82%A3%E3%82%B7%E3%83%A7%E3%83%B3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2186517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Elsblk%3CBR%20%2F%3E%E5%90%8D%E5%89%8D%20MAJ%3AMIN%20RM%20SIZE%20RO%20TYPE%20%E3%83%9E%E3%82%A6%E3%83%B3%E3%83%88%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88%3CBR%20%2F%3Emtdblock0%2031%3A0%200%2032M%200%20%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%3CBR%20%2F%3Emmcblk2%20179%3A0%200%2029.1G%200%20%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%3CBR%20%2F%3E%3CSTRONG%3E%7C-mmcblk2p1%20179%3A1%200%2083.2M%200%20%E3%83%91%E3%83%BC%E3%83%88%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%60-mmcblk2p2%20179%3A2%200%201.5G%200%20%E3%83%91%E3%83%BC%E3%83%84%20%2F%3C%2FSTRONG%3E%3CBR%20%2F%3E%20mmcblk2boot0%20179%3A32%200%204M%201%20%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%3CBR%20%2F%3Emmcblk2boot1%20179%3A64%200%204M%201%20%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%3C%2FP%3E%3CP%3E%2F%E3%83%9E%E3%82%A6%E3%83%B3%E3%83%88%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88%E3%81%AB29G%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82fdisk%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E8%BF%BD%E5%8A%A0%E3%81%97%E3%80%81lsblk%E3%81%8C%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3Elsblk%3CBR%20%2F%3E%E5%90%8D%E5%89%8D%20MAJ%3AMIN%20RM%20SIZE%20RO%20TYPE%20%E3%83%9E%E3%82%A6%E3%83%B3%E3%83%88%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88%3CBR%20%2F%3Emtdblock0%2031%3A0%200%2032M%200%20%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%3CBR%20%2F%3Emmcblk2%20179%3A0%200%2029.1G%200%20%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%3CBR%20%2F%3E%3CSTRONG%3E%7C-mmcblk2p1%20179%3A1%200%2083.2M%200%20%E3%83%91%E3%83%BC%E3%83%88%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%60-mmcblk2p2%20179%3A2%200%2029G%200%20%E3%83%91%E3%83%BC%E3%83%84%20%2F%3C%2FSTRONG%3E%3CBR%20%2F%3E%20mmcblk2boot0%20179%3A32%200%204M%201%20%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%3CBR%20%2F%3Emmcblk2boot1%20179%3A64%200%204M%201%20%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%3C%2FP%3E%3CP%3E29G%E3%81%AF%E3%83%AB%E3%83%BC%E3%83%88%E3%81%A7%E3%83%9E%E3%82%A6%E3%83%B3%E3%83%88%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81df%20-h%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B%E3%81%A8%3C%2FP%3E%3CP%3Edf%20-h%3CBR%20%2F%3E%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%82%B5%E3%82%A4%E3%82%BA%20%E4%BD%BF%E7%94%A8%E6%B8%88%E3%81%BF%20%E4%BD%BF%E7%94%A8%E5%8F%AF%E8%83%BD%E4%BD%BF%E7%94%A8%E7%8E%87%20%E3%83%9E%E3%82%A6%E3%83%B3%E3%83%88%E5%85%88%3CBR%20%2F%3E%3CSTRONG%3E%2Fdev%2Froot%201.4G%20877M%20440M%2067%25%20%2F%3C%2FSTRONG%3E%3CBR%20%2F%3E%20devtmpfs%202.3G%200%202.3G%200%25%20%2Fdev%3CBR%20%2F%3E%20tmpfs%202.8G%200%202.8G%200%25%20%2Fdev%2Fshm%3CBR%20%2F%3E%20tmpfs%201.1G%209.1M%201.1G%201%25%20%2F%E5%AE%9F%E8%A1%8C%3CBR%20%2F%3Etmpfs%204.0M%200%204.0M%200%25%20%2Fsys%2Ffs%2Fcgroup%3CBR%20%2F%3E%20tmpfs%202.8G%2060K%202.8G%201%25%20%2Ftmp%3CBR%20%2F%3E%20tmpfs%202.8G%2016K%202.8G%201%25%20%2Fvar%2Fvolatile%3CBR%20%2F%3E%20tmpfs%20562M%204.0K%20562M%201%25%20%2Frun%2F%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%2F0%3C%2FP%3E%3CP%3E%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%81%AE%E3%82%B9%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B8%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AB%E7%A7%81%E3%81%8C%E8%A6%8B%E9%80%83%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%AF%E3%80%81%E3%81%93%E3%82%8C%E3%81%8C%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%81%AB%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%92%E5%89%B2%E3%82%8A%E5%BD%93%E3%81%A6%E3%82%8B%E6%AD%A3%E3%81%97%E3%81%84%E3%82%A2%E3%83%97%E3%83%AD%E3%83%BC%E3%83%81%E3%81%A7%E3%81%82%E3%82%8B%E3%81%8B%E3%81%A9%E3%81%86%E3%81%8B%E3%81%A7%E3%81%99%3C%2FP%3E%3C%2FLINGO-BODY%3E