Can't figure out where MicroSD space is - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Pinebook Pro Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=116) +--- Thread: Can't figure out where MicroSD space is (/showthread.php?tid=11605) |
Can't figure out where MicroSD space is - kendew - 09-23-2020 In trying to troubleshoot an unusable PPB I've just received, I bought a 64G MicroSD card to boot the Fedora 32 Xfce image. I'm partial to Fedora, and wanted something different from the Manjaro or KDE that is pre-installed for testing purposes. With dd the install was easy and Fedora booted like a charm. I've added only apps I needed, like Firefox and Geany to keep it simple. But even so, the operating system seems to think I have no space left on the MicroSD. We have lsblk showing the MicroSD disk, mmcblk2, essentially full: Code: $ lsblk Code: df -h Code: $ sudo du -sh * Your counting may be better than mine, but that doesn't look like much more than 10G. At the moment, the OS complains of lack of space, which limits my ability to do much. What am I missing here? Any ideas much appreciated. Kendew RE: Can't figure out where MicroSD space is - wdt - 09-23-2020 >What am I missing here? This distro did not expand the file system for you, notice size blk1p2 so, sudo cfdisk /dev/mmcblk1, move highlight to p2, expand, write, type "yes" Then sudo resize2fs /dev/mmcblk1p2, it may ask for a fsck first RE: Can't figure out where MicroSD space is - Dendrocalamus64 - 09-23-2020 If mmcblk2 is the SD, then mmcblk1 is the eMMC. According to df, only mmcblk1's two partitions are mounted, and you're running from those. sudo mount /dev/mmcblk2p2 /mnt and then see what df says. lsblk isn't showing that it's full, it's showing that all the blocks are assigned to partitions. Before attempting to edit the partition table of either disk or resize its filesystems, make sure you're booted & running from the other disk. Also, how sure are you that mmcblk2 is the SD? When I boot Manjaro from SD, it ends up as mmcblk1 and the eMMC ends up as mmcblk2. Device name assignments for block devices aren't necessarily the same across reboots depending on things like kernel & where you booted from, which is why it's preferred to use UUIDs to specify what gets mounted where in /etc/fstab. RE: Can't figure out where MicroSD space is - wdt - 09-23-2020 from post #1 seems to think I have no space left on the MicroSD. /dev/mmcblk1p2 11G 9.8G 201M 99% / I am assuming this is a boot from SD If so, sd is blk1 and emmc blk2 Yes, it gets quite confusing when both sd and emmc are 64G Mounting is irrelevant for changing mbr from the manpage for resize2fs If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel and the file system supports on-line resizing. But, if it wants a fsck (about 1/2 the time), yes that should be done on an unmounted fs For that matter, a fsck is good practice, never hurts And, another point,,, I have never seen boot0 or boot1 on a SD card, only on emmc I think this is an android remenent (there is little info about this),,, and not used by linux --edit-- If you have more than a few uSD cards, it can be annoying, what is on this card? No room for a (physical) label I have 15,, yes you can 'root through' /etc and find out, and then forget tomorrow cd / (of SD) ; sudo touch This-is-$(DISTRO-VERSION)-SD quick and easy,, if you say, "no good" and burn another distro, directory entry is gone, do a new one RE: Can't figure out where MicroSD space is - Paulie420 - 09-23-2020 (09-23-2020, 04:25 PM)kendew Wrote: In trying to troubleshoot an unusable PPB I've just received, I bought a 64G MicroSD card to boot the Fedora 32 Xfce image. I'm partial to Fedora, and wanted something different from the Manjaro or KDE that is pre-installed for testing purposes. With dd the install was easy and Fedora booted like a charm. I've added only apps I needed, like Firefox and Geany to keep it simple. But even so, the operating system seems to think I have no space left on the MicroSD. You need to expand the filesystem [SD Card] so that the OS can see all of its available space. I'd google 'expanding SD card file system linux' and you'll find the info you need - I don't know the commands, but know this is normal behaviour. Simply have to expand the filesystem on your SD card. |