我正在使用 DE0-Nano-SoC / Atlas 板。与该板的连接是通过主机中运行的 Putty 进行的。我在增加根分区时遇到问题。
root@socfpga:~# fdisk -l
Disk /dev/mmcblk0: 7744 MB, 7744782336 bytes
4 heads, 16 sectors/track, 236352 cylinders, total 15126528 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 identifier: 0xd68e23ba
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2121728 3799447 838860 b W95 FAT32
/dev/mmcblk0p2 14336 2111487 1048576 83 Linux
/dev/mmcblk0p3 2048 4095 1024 a2 Unknown
/dev/mmcblk0p4 3799448 15126527 5663540 5 Extended
/dev/mmcblk0p5 3801496 15126527 5662516 83 Linux
分区表条目不按磁盘顺序排列。
root@socfpga:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 975.9M 221.1M 703.6M 24% /
devtmpfs 246.9M 4.0K 246.9M 0% /dev
tmpfs 503.0M 52.0K 503.0M 0% /var/volatile
tmpfs 503.0M 0 503.0M 0% /media/ram
目前定义的函数:
[, [[, ar, ash, awk, basename, bunzip2, bzcat, cat, chattr, chgrp,
chmod, chown, chroot, chvt, clear, cmp, cp, cpio, cut, date, dc, dd,
deallocvt, df, diff, dirname, dmesg, dnsdomainname, dpkg-deb, du,
dumpkmap, dumpleases, echo, egrep, env, expr, false, fbset, fdisk,
fgrep, find, flock, free, fsck, fsck.minix, fuser, grep, groups,
gunzip, gzip, halt, head, hexdump, hostname, hwclock, id, ifconfig,
ifdown, ifup, insmod, ip, kill, killall, klogd, less, ln, loadfont,
loadkmap, logger, logname, logread, losetup, ls, lsmod, md5sum,
microcom, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe,
more, mount, mv, nc, netstat, nohup, nslookup, od, openvt, patch,
pidof, ping, ping6, pivot_root, poweroff, printf, ps, pwd, rdate,
readlink, realpath, reboot, renice, reset, rm, rmdir, rmmod, route,
run-parts, sed, seq, setconsole, sh, sleep, sort, start-stop-daemon,
strings, stty, swapoff, swapon, switch_root, sync, sysctl, syslogd,
tail, tar, tee, telnet, test, tftp, time, top, touch, tr, traceroute,
true, tty, udhcpc, udhcpd, umount, uname, uniq, unzip, uptime, users,
usleep, vi, watch, wc, wget, which, who, whoami, xargs, yes, zcat
我想增加尺寸/dev/mmcblk0p2
尝试了两种方法:
- 此分区 p2 位于分区 p1 和 p3 之间,命令
resize2fs
损坏工作映像 - 分区表条目不按顺序排列。
fdisk
使用“t”选项来纠正此问题也会损坏工作图像。我不能超越这个。