[linux-l] gelocktes Dateisystem

Georg Kamata georg.kamata at belug.de
Mi Aug 14 11:38:17 CEST 2019


Hallo Liste,

Hallo Thomas,



Gestern habe ich folgenden Fehler, betreffened der



/dev/sda5: PARTUUID="5a8cda5a-05" gefxit.

Jetzt bekommt man folgendes, wenn man ein blkid eingibt.
blkid
/dev/sda1: UUID="4892fc51-dfa3-412f-a6c1-deb4ee05da2a" TYPE="ext4" PARTUUID="5a8cda5a-01"
/dev/sda5: UUID="0bf81ead-5977-4ebe-a866-9c3147c92ccd" TYPE="swap" PARTUUID="5a8cda5a-05"

Die fstab habe jetzt so umgeschrieben.

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
#UUID=4892fc51-dfa3-412f-a6c1-deb4ee05da2a /               ext4    errors=remount-ro 0       1
UUID=4892fc51-dfa3-412f-a6c1-deb4ee05da2a /               ext4    errors=continue 0       1
# swap was on /dev/sda5 during installation
#UUID=a6cdd01f-6544-4bda-83d3-78659b0a064e none            swap    sw              0       0
UUID=0bf81ead-5977-4ebe-a866-9c3147c92ccd none            swap    sw              0       0
Also die UUID war noch die alte in der fstab.



Außerdem fehlte die Swap partition in wenn mann ein lsblk ausführte.

Mitlerweile sieht das jetzt, so aus.



lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk
├─sda1   8:1    0 927.6G  0 part /
├─sda2   8:2    0     1K  0 part
└─sda5   8:5    0   3.9G  0 part [SWAP]



Dann habe ich noch wieder versucht ein fsck zu provozieben in den ich deine datei die

'forcefsck' heist und ins root verzeichnis plaziert habe.



Außerdem haben ich mit der Hilfe von Matthias einen Befehl gefunden, mit welche man sich die fsck Statisktiken sich ausgeben kann.

Laut diesen logs, wurde die Platte zu letzt vor Monaten geprüft.

Eigene Notitzen.



Muß mir von Matthias noch mal den Befehl für die Statisktiken, geben lassen.





-----Ursprüngliche Nachricht-----
Von: Thomas Osterried <thomas at osterried.de>
Gesendet: Montag 12 August 2019 18:43
An: Georg Kamata <georg.kamata at belug.de>
CC: linux-l at mlists.in-berlin.de
Betreff: Re: [linux-l] gelocktes Dateisystem





> Am 12.08.2019 um 13:45 schrieb Georg Kamata <gkamata at belug.de>:
> 
> sudo blkid
> [sudo] password for blub:
> /dev/sda1: UUID="4892fc51-dfa3-412f-a6c1-deb4ee05da2a" TYPE="ext4"
> PARTUUID="5a8cda5a-01"
> /dev/sda5: PARTUUID="5a8cda5a-05"
> 
> Die UUIDs stimmen miteinander überein,

Oh schade. Ich hatte gehofft dass dort der Fehler liegt.

Bitte versuche es noch auf die harte tour:
Statt UUID
   UUID=4892fc51-dfa3-412f-a6c1-deb4ee05da2a /               ext4 defaults 0       1
die Platte+Partition direkt angeben:
   /dev/sda1 /               ext4 errors=remount-ro 0       1


Was mir noch auffällt ist, daß Deine SWAP Partition keine UUID hat. mkswap generiert aber normalerweise eine UUID.
Deine fstab referenziert für swap eine UUID. Daher kommen durch update-initramfs die warnings "W: initramfs-tools configuration sets RESUME=UUID=b65c6809-ae65-44e0-958e-a6fab805b5c7W: but no matching swap device is available."

=> somit liege ich hoffentlich wenigstens bei dieser Vermutung richtig, daß Deine SWAP Partition nicht genutzt wird (erkennbar mit free -> "Swap:             0           0           0).


> allerdings sehe ich jetzt eine
> differenz zwischen PARTUUIDs
> 
> "5a8cda5a-01" vs "5a8cda5a-05"
> 
> könnte da vielleicht der fehler herkommen ?

PARTUUID ist eine andere Geschichte und haben hiermit nichts zu tun. PARTUUIDs können sich bei mbr sogar auch ändern, wenn man Partitionen verändert. PARTUUIDs waren für mich bisher nie in irgendeiner weise relevant.

   https://wiki.archlinux.org/index.php/Persistent_block_device_naming
      .. MBR does not support partition UUIDs, but Linux[4] and software using libblkid[5] (e.g. udev[6]) are capable of generating pseudo PARTUUIDs for MBR partitions. The format is SSSSSSSS-PP, where SSSSSSSS is a zero-filled 32-bit MBR disk signature, and PP is a zero-filled partition number in hexadecimal form. Unlike a regular PARTUUID of a GPT partition, MBR's pseudo PARTUUID can change if the partition number changes.

=> Das Suffix "-01" vs "-05" ist die Partitonsnummer.   

Viele Grüße,
   - Thomas

_______________________________________________
linux-l mailing list
linux-l at mlists.in-berlin.de
Die Mailingliste der BeLUG (Berliner Linux User Group)

Wenn du diese Mailingliste  abbestellen willst, gehe bitte auf
https://mlists.in-berlin.de/mailman/listinfo/linux-l-mlists.in-berlin.de
und trage dich dort bitte aus


Mehr Informationen über die Mailingliste linux-l