티스토리 뷰
728x90
출처
eMMC에 OS 설치
이미지 복원이 완료되면 SD 메모리를 제거하고 재부팅
$ sudo nand-sata-install
SD 확장 (OrangePi_plus2e_ubuntu_xenial_desktop_linux5.3.5_v1.0.img 이미지 사용시)
SD 확장전 용량확인
$ df -h Filesystem Size Used Avail Use% Mounted on udev 923M 0 923M 0% /dev tmpfs 199M 8.0M 191M 5% /run /dev/mmcblk0p2 2.7G 2.5G 66M 98% / tmpfs 991M 104K 990M 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 991M 0 991M 0% /sys/fs/cgroup /dev/mmcblk0p1 50M 17M 33M 35% /boot tmpfs 199M 20K 198M 1% /run/user/110 tmpfs 199M 0 199M 0% /run/user/1000
SD FDisk
orangepi@OrangePi:~$ sudo fdisk /dev/mmcblk0 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/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 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: 0x3c2615d3 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 40960 143359 102400 50M c W95 FAT32 (LBA) /dev/mmcblk0p2 143360 5976063 5832704 2.8G 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-31116287, default 2048): 143360 Last sector, +sectors or +size{K,M,G,T,P} (143360-31116287, default 31116287): [Enter] Created a new partition 2 of type 'Linux' and of size 14.8 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8). orangepi@OrangePi:~$ sudo shutdown -r now
SD 확장
$ sudo resize2fs /dev/mmcblk0p2 resize2fs 1.42.13 (17-May-2015) Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 2 The filesystem on /dev/mmcblk0p2 is now 3871616 (4k) blocks long.
SD 확장 확인
$ df -h Filesystem Size Used Avail Use% Mounted on udev 923M 0 923M 0% /dev tmpfs 199M 8.0M 191M 5% /run /dev/mmcblk0p2 15G 2.5G 12G 18% / tmpfs 991M 104K 990M 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 991M 0 991M 0% /sys/fs/cgroup /dev/mmcblk0p1 50M 17M 33M 35% /boot tmpfs 199M 16K 198M 1% /run/user/110 tmpfs 199M 0 199M 0% /run/user/1000
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- sas2009
- SAS
- ffmpeg
- MySQL
- android
- 지스타2007
- 튜닝쇼 2008
- 일본여행
- Delphi Tip
- Delphi
- Java
- ubuntu
- Mac
- 레이싱모델 익스트림 포토 페스티벌
- 동경
- BPI-M4
- JavaScript
- Spring MVC
- 서울오토살롱
- Spring
- KOBA
- 전예희
- Xcode
- koba2010
- ble
- NDK
- Linux
- 송주경
- flex
- oracle
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함