Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Hardware
  4. USB-Speicher-Stick für History, wie ? Linux Profi gesucht!

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    857

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    647

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    1.1k

USB-Speicher-Stick für History, wie ? Linux Profi gesucht!

Geplant Angeheftet Gesperrt Verschoben Hardware
history usb
12 Beiträge 3 Kommentatoren 874 Aufrufe 2 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • HumidorH Humidor

    Hallo Gemeinde,

    möchte euch fragen wie das am Raspi funktioniert, ich habe leider kein Wissen zu Linux.
    Muss dieser Stick vorbereitet werden (mount, formatiert) ?
    wie lautet dann das Ablageverzeichnis für die History?

    Vielen Danke!

    paul53P Offline
    paul53P Offline
    paul53
    schrieb am zuletzt editiert von paul53
    #2

    @Humidor
    Anleitung. USB-Sticks sind in der Regel mit FAT32 formatiert, was beibehalten werden kann.

    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
    Produktiv: Asus PN 42 / N100 / 8 GB / 500 GB

    1 Antwort Letzte Antwort
    1
    • HumidorH Online
      HumidorH Online
      Humidor
      schrieb am zuletzt editiert von
      #3

      bis dahin komme ich:
      Zum Testen einen USB-Stick einstecken, folgende Datei erzeugen und speichern.

      nano /media/usb/test.txt

      ich habe keine Rechte zu speichern ?

      BG

      paul53P 1 Antwort Letzte Antwort
      0
      • HumidorH Humidor

        bis dahin komme ich:
        Zum Testen einen USB-Stick einstecken, folgende Datei erzeugen und speichern.

        nano /media/usb/test.txt

        ich habe keine Rechte zu speichern ?

        paul53P Offline
        paul53P Offline
        paul53
        schrieb am zuletzt editiert von
        #4

        @Humidor sagte:

        ich habe keine Rechte zu speichern ?

        Poste mal die Ausgabe von

        cat /etc/usbmount/usbmount.conf
        

        in Code tags </>. Reboot ist erfolgt ?

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: Asus PN 42 / N100 / 8 GB / 500 GB

        1 Antwort Letzte Antwort
        0
        • HumidorH Online
          HumidorH Online
          Humidor
          schrieb am zuletzt editiert von
          #5

          @paul53 sagte in USB-Speicher-Stick für History, wie ?:

          cat /etc/usbmount/usbmount.conf

          pi@humidor:~ $ cat /etc/usbmount/usbmount.conf
          # Configuration file for the usbmount package, which mounts removable
          # storage devices when they are plugged in and unmounts them when they
          # are removed.
          
          # Change to zero to disable usbmount
          ENABLED=1
          
          # Mountpoints: These directories are eligible as mointpoints for
          # removable storage devices.  A newly plugged in device is mounted on
          # the first directory in this list that exists and on which nothing is
          # mounted yet.
          MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
                       /media/usb4 /media/usb5 /media/usb6 /media/usb7"
          
          # Filesystem types: removable storage devices are only mounted if they
          # contain a filesystem type which is in this list.
          FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus"
          
          #############################################################################
          # WARNING!                                                                  #
          #                                                                           #
          # The "sync" option may not be a good choice to use with flash drives, as   #
          # it forces a greater amount of writing operating on the drive. This makes  #
          # the writing speed considerably lower and also leads to a faster wear out  #
          # of the disk.                                                              #
          #                                                                           #
          # If you omit it, don't forget to use the command "sync" to synchronize the #
          # data on your disk before removing the drive or you may experience data    #
          # loss.                                                                     #
          #                                                                           #
          # It is highly recommended that you use the pumount command (as a regular   #
          # user) before unplugging the device. It makes calling the "sync" command   #
          # and mounting with the sync option unnecessary---this is similar to other  #
          # operating system's "safely disconnect the device" option.                 #
          #############################################################################
          # Mount options: Options passed to the mount command with the -o flag.
          # See the warning above regarding removing "sync" from the options.
          MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime"
          
          # Filesystem type specific mount options: This variable contains a space
          # separated list of strings, each which the form "-fstype=TYPE,OPTIONS".
          #
          # If a filesystem with a type listed here is mounted, the corresponding
          # options are appended to those specificed in the MOUNTOPTIONS variable.
          #
          # For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" would add
          # the options "gid=floppy,dmask=0007,fmask=0117" when a vfat filesystem
          # is mounted.
          FS_MOUNTOPTIONS="-fstype=vfat,gid=users,dmask=0007,fmask=0117"
          
          # If set to "yes", more information will be logged via the syslog
          # facility.
          VERBOSE=no
          
          

          BG

          paul53P 1 Antwort Letzte Antwort
          0
          • HumidorH Humidor

            @paul53 sagte in USB-Speicher-Stick für History, wie ?:

            cat /etc/usbmount/usbmount.conf

            pi@humidor:~ $ cat /etc/usbmount/usbmount.conf
            # Configuration file for the usbmount package, which mounts removable
            # storage devices when they are plugged in and unmounts them when they
            # are removed.
            
            # Change to zero to disable usbmount
            ENABLED=1
            
            # Mountpoints: These directories are eligible as mointpoints for
            # removable storage devices.  A newly plugged in device is mounted on
            # the first directory in this list that exists and on which nothing is
            # mounted yet.
            MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
                         /media/usb4 /media/usb5 /media/usb6 /media/usb7"
            
            # Filesystem types: removable storage devices are only mounted if they
            # contain a filesystem type which is in this list.
            FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus"
            
            #############################################################################
            # WARNING!                                                                  #
            #                                                                           #
            # The "sync" option may not be a good choice to use with flash drives, as   #
            # it forces a greater amount of writing operating on the drive. This makes  #
            # the writing speed considerably lower and also leads to a faster wear out  #
            # of the disk.                                                              #
            #                                                                           #
            # If you omit it, don't forget to use the command "sync" to synchronize the #
            # data on your disk before removing the drive or you may experience data    #
            # loss.                                                                     #
            #                                                                           #
            # It is highly recommended that you use the pumount command (as a regular   #
            # user) before unplugging the device. It makes calling the "sync" command   #
            # and mounting with the sync option unnecessary---this is similar to other  #
            # operating system's "safely disconnect the device" option.                 #
            #############################################################################
            # Mount options: Options passed to the mount command with the -o flag.
            # See the warning above regarding removing "sync" from the options.
            MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime"
            
            # Filesystem type specific mount options: This variable contains a space
            # separated list of strings, each which the form "-fstype=TYPE,OPTIONS".
            #
            # If a filesystem with a type listed here is mounted, the corresponding
            # options are appended to those specificed in the MOUNTOPTIONS variable.
            #
            # For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" would add
            # the options "gid=floppy,dmask=0007,fmask=0117" when a vfat filesystem
            # is mounted.
            FS_MOUNTOPTIONS="-fstype=vfat,gid=users,dmask=0007,fmask=0117"
            
            # If set to "yes", more information will be logged via the syslog
            # facility.
            VERBOSE=no
            
            
            paul53P Offline
            paul53P Offline
            paul53
            schrieb am zuletzt editiert von
            #6

            @Humidor
            Das sieht OK aus. Der Stick ist FAT32 formatiert ?

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: Asus PN 42 / N100 / 8 GB / 500 GB

            HumidorH 1 Antwort Letzte Antwort
            0
            • paul53P paul53

              @Humidor
              Das sieht OK aus. Der Stick ist FAT32 formatiert ?

              HumidorH Online
              HumidorH Online
              Humidor
              schrieb am zuletzt editiert von
              #7

              @paul53
              exFat, sollich auf Fat32 formatieren?

              BG

              paul53P 1 Antwort Letzte Antwort
              0
              • HumidorH Humidor

                @paul53
                exFat, sollich auf Fat32 formatieren?

                paul53P Offline
                paul53P Offline
                paul53
                schrieb am zuletzt editiert von
                #8

                @Humidor sagte:

                sollich auf Fat32 formatieren?

                Ich habe keine Ahnung, ob usbmount mit exFat umgehen kann.

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: Asus PN 42 / N100 / 8 GB / 500 GB

                1 Antwort Letzte Antwort
                0
                • HumidorH Online
                  HumidorH Online
                  Humidor
                  schrieb am zuletzt editiert von
                  #9

                  habe ihn jetzt fat32 formatiert

                  wieder das selbe, keine Berechtigung...

                  BG

                  paul53P M 2 Antworten Letzte Antwort
                  0
                  • HumidorH Humidor

                    habe ihn jetzt fat32 formatiert

                    wieder das selbe, keine Berechtigung...

                    paul53P Offline
                    paul53P Offline
                    paul53
                    schrieb am zuletzt editiert von
                    #10

                    @Humidor sagte:

                    keine Berechtigung...

                    Dann muss ein Linux-Profi ran. Ich befolge auch nur Anleitungen.

                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                    Produktiv: Asus PN 42 / N100 / 8 GB / 500 GB

                    1 Antwort Letzte Antwort
                    0
                    • HumidorH Humidor

                      habe ihn jetzt fat32 formatiert

                      wieder das selbe, keine Berechtigung...

                      M Offline
                      M Offline
                      marwell
                      schrieb am zuletzt editiert von
                      #11

                      @Humidor

                      Hallo! Ich bin mir nicht ganz sicher, als welcher Benutzer iobroker auf dem Raspi läuft. Sollte aber der Benutzer "iobroker" sein. Der braucht dann die Berechtigung auf den USB-Stick zu schreiben. Der wird aber vermutlich den Benutzer "pi" haben. Das kommt alles darauf an, wie das System eingerichtet ist. Man kann die Rechte des USB-Sticks oder auch seines Mountpoints mit

                      ls -ldh /Pfad/Datei
                      

                      abfragen. Wichtig dabei ist zu wissen, dass Linux alles als Datei handhabt. Geräte sind auch nur Dateien.

                      Wenn der USB-Stick dauerhaft am Raspberry angeschlossen ist und nur für iobroker verwendet wird, dann kann man als admin mit dem Befehl

                      chown iobroker /Pfad/(Datei-als-das-der-USB-Stick-gemountet ist)
                      

                      die "Datei" USB-Stick an den Benutzer "iobroker" vergeben. Dann kann der darauf schreiben.

                      Eine ganz gute Erklärung der Rechte unter Linux findet sich hier.

                      Dumme Frage: Warum das Ganze? Wieso schreibst du nicht auf die SD-Karte? Hat die weniger Lese-Schreib-Zyklen als ein USB-Stick?

                      M 1 Antwort Letzte Antwort
                      0
                      • M marwell

                        @Humidor

                        Hallo! Ich bin mir nicht ganz sicher, als welcher Benutzer iobroker auf dem Raspi läuft. Sollte aber der Benutzer "iobroker" sein. Der braucht dann die Berechtigung auf den USB-Stick zu schreiben. Der wird aber vermutlich den Benutzer "pi" haben. Das kommt alles darauf an, wie das System eingerichtet ist. Man kann die Rechte des USB-Sticks oder auch seines Mountpoints mit

                        ls -ldh /Pfad/Datei
                        

                        abfragen. Wichtig dabei ist zu wissen, dass Linux alles als Datei handhabt. Geräte sind auch nur Dateien.

                        Wenn der USB-Stick dauerhaft am Raspberry angeschlossen ist und nur für iobroker verwendet wird, dann kann man als admin mit dem Befehl

                        chown iobroker /Pfad/(Datei-als-das-der-USB-Stick-gemountet ist)
                        

                        die "Datei" USB-Stick an den Benutzer "iobroker" vergeben. Dann kann der darauf schreiben.

                        Eine ganz gute Erklärung der Rechte unter Linux findet sich hier.

                        Dumme Frage: Warum das Ganze? Wieso schreibst du nicht auf die SD-Karte? Hat die weniger Lese-Schreib-Zyklen als ein USB-Stick?

                        M Offline
                        M Offline
                        marwell
                        schrieb am zuletzt editiert von
                        #12

                        @Humidor

                        Noch was: Wenn ich auf einem System Linux laufen habe, würde ich den USB-Stick, wenn er nur da verwendet wird, auch mit einem der Standard-Dateisysteme von Linux formatieren. Die können alle Rechte handhaben. Das sind z.B. ext 2, ext3 oder ext4. Windows-Dateisysteme können Linux-Benutzer und -Rechte nicht richtig handhaben.

                        Was anderes wäre es, wenn du mit einem USB-Stick Dateien zwischen Linux und Windows transportieren wolltest.

                        1 Antwort Letzte Antwort
                        0

                        Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                        Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                        Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                        Registrieren Anmelden
                        Antworten
                        • In einem neuen Thema antworten
                        Anmelden zum Antworten
                        • Älteste zuerst
                        • Neuste zuerst
                        • Meiste Stimmen


                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        463

                        Online

                        32.8k

                        Benutzer

                        82.9k

                        Themen

                        1.3m

                        Beiträge
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Anmelden

                        • Du hast noch kein Konto? Registrieren

                        • Anmelden oder registrieren, um zu suchen
                        • Erster Beitrag
                          Letzter Beitrag
                        0
                        • Home
                        • Aktuell
                        • Tags
                        • Ungelesen 0
                        • Kategorien
                        • Unreplied
                        • Beliebt
                        • GitHub
                        • Docu
                        • Hilfe