Odp: terminal WYSE cx0 pomoc w uruchomieniu Lede
uruchom fdiska, wyrówanaj partycję do pełnej wielkości nośnika, restartuj. Zrób firstboota, zrestartuj. I zobacz co będzie.
Wieć tak to wygląda - i raczej nic to niedało - na dole jest df -f przed i po firstboocie ale ciekawe jest że na samym początku pokazuje
size /dev/sda2 256M i wcześniej i za każdym razem tak pokazuje pomimo że flash mam 128 wszystkiego
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 512 33279 32768 16M 83 Linux
/dev/sda2 33792 558079 524288 256M 83 Linux
root@OpenWrt:~# disk -l /dev/sda
-ash: disk: not found
root@OpenWrt:~# fdisk -l /dev/sda
Disk /dev/sda: 122.13 MiB, 128057344 bytes, 250112 sectors
Disk model: 128MB ATA Flash
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: 0x741c6a88
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 512 33279 32768 16M 83 Linux
/dev/sda2 33792 558079 524288 256M 83 Linux
root@OpenWrt:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): d
Partition number (1,2, default 2): 2
Partition 2 has been deleted.
Command (m for help): p
Disk /dev/sda: 122.13 MiB, 128057344 bytes, 250112 sectors
Disk model: 128MB ATA Flash
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: 0x741c6a88
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 512 33279 32768 16M 83 Linux
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 (33280-250111, default 34816): 33792
Last sector, +/-sectors or +/-size{K,M,G,T,P} (33792-250111, default 250111):
Created a new partition 2 of type 'Linux' and of size 105.6 MiB.
Partition #2 contains a squashfs 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.
root@OpenWrt:~# fdisk -l /dev/sda
Disk /dev/sda: 122.13 MiB, 128057344 bytes, 250112 sectors
Disk model: 128MB ATA Flash
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: 0x741c6a88
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 512 33279 32768 16M 83 Linux
/dev/sda2 33792 250111 216320 105.6M 83 Linux
root@OpenWrt:~#
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.0M 3.0M 0 100% /rom
tmpfs 121.4M 868.0K 120.5M 1% /tmp
/dev/loop0 100.7M 22.8M 33.9M 40% /overlay
overlayfs:/overlay 100.7M 22.8M 33.9M 40% /
/dev/sda1 15.7M 3.9M 11.6M 25% /boot
/dev/sda1 15.7M 3.9M 11.6M 25% /boot
tmpfs 512.0K 0 512.0K 0% /dev
-------------------------------------------------------------------------------------------
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.0M 3.0M 0 100% /rom
tmpfs 121.4M 64.0K 121.3M 0% /tmp
/dev/loop0 100.7M 14.8M 41.9M 26% /overlay
overlayfs:/overlay 100.7M 14.8M 41.9M 26% /
/dev/sda1 15.7M 3.9M 11.6M 25% /boot
/dev/sda1 15.7M 3.9M 11.6M 25% /boot
tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:~#