[Gelöst] Dateisystem (Verständnis?)Problem

Begonnen von Tedious, 25 November 2016, 11:25:04

Vorheriges Thema - Nächstes Thema

Tedious

Hallo zusammen,

ich habe ein kleines Problem mit dem Dateisystem. Ich musste gestern notgedrungen wegen einem Hardwarefehler FHEM umziehen. Da im Zuge des Umbaus in der Küche, die recht zentral liegt, ein Pi3 mit Max2Play-Image läuft habe ich FHEM dorthin migriert. Ich hab mich nicht wirklich mit dem Pi befasst, Image drauf, läuft, bietet FHEM-Unterstützung - prima. Bietet auch die Möglichkeit das Dateisystem zu expandieren, aber dabei muss irgendwas schiefgelaufen sein was ich nicht mitbekommen habe... es "fehlen" irgendwie 14GB. Ist mir natürlich erst aufgefallen als FHEM konfiguriert war...

Debug liefert:

#### FILESYSTEM ####
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2857028 2369760 343240 88% /
devtmpfs 493900 0 493900 0% /dev
tmpfs 498232 0 498232 0% /dev/shm
tmpfs 498232 6984 491248 2% /run
tmpfs 5120 4 5116 1% /run/lock
tmpfs 498232 0 498232 0% /sys/fs/cgroup
/dev/mmcblk0p1 61384 21472 39912 35% /boot
tmpfs 99648 4 99644 1% /run/user/1000


Die Shell sagt aber:

pi@FHEM:~ $ sudo blkid -o list -w /dev/null
device fs_type label mount point UUID
————————————————————————————————————————————-
/dev/mmcblk0p1 vfat boot /boot DF8E-C7AE
/dev/mmcblk0p2 ext4 / cea0b7ae-2fbc-4f01-8884-3cb5884c8bb7
/dev/mmcblk0 (in use)


und

pi@FHEM:~ $ sudo lsblk -o NAME,UUID,FSTYPE,SIZE,LABEL,MOUNTPOINT
NAME UUID FSTYPE SIZE LABEL MOUNTPOINT
mmcblk0 14,5G
├─mmcblk0p1 DF8E-C7AE vfat 60M boot /boot
├─mmcblk0p2 cea0b7ae-2fbc-4f01-8884-3cb5884c8bb7 ext4 14,2G /
└─mmcblk0p3 195,3M

Bin jetzt kein Linux-Spezialist, aber wo sind denn die fehlenden GB hin verschwunden? Sysmon in FHEM liefert auch nur

Filesystem /boot: Total: 60 MB, Used: 21 MB, 35 %, Available: 39 MB at /boot
Root: Total: 2791 MB, Used: 2312 MB, 88 %, Available: 338 MB at /
File System: fs Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at fs (not available)


Hat jemand einen Tip für mich? Würde das ungerne unbedacht bei irgendwelchen frickeleien eleminieren, bin froh dass wieder alles Läuft - der WAF halt...

Rätselnde Grüße

Sascha
FHEM auf Proxmox-VM (Intel NUC) mit 4xMapleCUN (433,3x868) und Jeelink, HUE, MiLight, Max!, SonOff, Zigbee, Alexa, uvm...

sledge

Es sieht so aus als wäre dein FS nicht korrekt gemounted.

Prüfe doch einfach mal mit "mount" oder "df".

FHEM: debian Intel-NUC / 25 x MAX!, 15 x HM-bidcos, MQTT, 3 x 1wire, 20 x Shelly, 20 x Tasmota, 12 x Yeelight, Opentherm-GW, Espeasy, alexa-fhem, kodi, unifi, musiccast, ...

Frank_Huber

Konsole --> "Raspi-config" --> expand filesystem.

Die Image sind meist auf 2GB SD ausgelegt. ist ganz normal.

Tedious

Danke für die Info. Wie gesagt, bei Linux sind die Kentnisse eher basal, ich komme aus der Win-Welt - hier ist Diskpart und Co zwar mein Freund, aber bei Linux :(

Mount liefert

[b]/dev/mmcblk0p2 on / type ext4 (rw,noatime,data=ordered)[/b]
devtmpfs on /dev type devtmpfs (rw,relatime,size=493900k,nr_inodes=123475,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=99648k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)



Ist doch an sich gemountet, oder? Vergleiche ich das mit

NAME UUID FSTYPE SIZE LABEL MOUNTPOINT
mmcblk0 14,5G
├─mmcblk0p1 DF8E-C7AE vfat 60M boot /boot
├─[b]mmcblk0p2 cea0b7ae-2fbc-4f01-8884-3cb5884c8bb7 ext4 14,2G /[/b]
└─mmcblk0p3 195,3M


verstehe ich die Differenz zu

Root: Total: 2791 MB, Used: 2312 MB, 88 %, Available: 338 MB at /

nicht wirklich?
FHEM auf Proxmox-VM (Intel NUC) mit 4xMapleCUN (433,3x868) und Jeelink, HUE, MiLight, Max!, SonOff, Zigbee, Alexa, uvm...

Tedious

Zitat von: Frank_Huber am 25 November 2016, 13:40:27
Konsole --> "Raspi-config" --> expand filesystem.

Die Image sind meist auf 2GB SD ausgelegt. ist ganz normal.

Jau, das war mein erster Gedanke auch - sorry, hätte ich oben schreiben sollen :( Liefert aber nur ein lapidares

mmcblk0p2 is not the last partition. Don't know how to expand 
FHEM auf Proxmox-VM (Intel NUC) mit 4xMapleCUN (433,3x868) und Jeelink, HUE, MiLight, Max!, SonOff, Zigbee, Alexa, uvm...

Frank_Huber

dann ist wohl beim Image aufspielen irgend etwas schiefgelaufen.
dann müssen die Linux Profis ran,ich bin raus. ;)

mahowi

Zitat von: Tedious am 25 November 2016, 13:43:28 mmcblk0p2 is not the last partition. Don't know how to expand 

Deine root Partition ist nicht die letzte auf der Karte. Das sagt auch Deine Ausgabe von lsblk: └─mmcblk0p3 195,3M

Du mußt die Partition "mmcblk0p3" löschen und danach noch mal "resize filesystem" in raspi-config. Dann sollte es gehen.
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

Tedious

Danke schon mal für den Tip. Bekomme aber eine Fehlermeldung:

root@FHEM:/home/pi# fdisk /dev/mmcblk0p3

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x2f651215.

Command (m for help): p
Disk /dev/mmcblk0p3: 195,3 MiB, 204799488 bytes, 399999 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: 0x2f651215



Command (m for help): d
No partition is defined yet!
Could not delete partition 81165


Wo liegt mein Fehler?
FHEM auf Proxmox-VM (Intel NUC) mit 4xMapleCUN (433,3x868) und Jeelink, HUE, MiLight, Max!, SonOff, Zigbee, Alexa, uvm...

hckoe

Bearbeiten der Partitionstabelle: # fdisk /dev/mmcblk0

Gruß
Helmut
# CT mit Debian Buster / FHEM aktuell / EnOcean TCM310 / Eltako FSA12, FUD12NPN, FSB12, FRW, FSRP-230V
# Permundo PCS234, Nodon NO-SIN-2-2-00, GTAGS

Tedious

Hallo Helmut,

prima, das war es. Danke, da hatte ich nen Knoten! Ich editiere mal den Betreff in gelöst, falls noch jemand so ein Problem haben sollte.

Root: Total: 14525 MB, Used: 2365 MB, 17 %, Available: 11546 MB at /

Danke nochmal an alle

Grüße

Sascha
FHEM auf Proxmox-VM (Intel NUC) mit 4xMapleCUN (433,3x868) und Jeelink, HUE, MiLight, Max!, SonOff, Zigbee, Alexa, uvm...