Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Formatierung einer USB Platte am Pi5

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Formatierung einer USB Platte am Pi5

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators last edited by Homoran

      Frohe Weihnachten euch allen!

      Ich habe gestern einen Pi5 in Betrieb genommen und anschließend versucht eine .m2 in externem USB Gehäuse zu verbinden.

      Da ich mich mit Linux nur rudimentär auskenne habe ich über manpages und ubuntu help durchgekämpft und mit Parted versucht die Platte vorzubereiten.

      erst mit lsblk
      Screenshot_20231224-154024_JuiceSSH.jpg
      festegstellt, dass sie als /dev/sda erkannt wird.

      dann mit parted formatiert
      Screenshot_20231224-220016_JuiceSSH.jpg
      beim anschließenden Versuch sie zu mounten kam eine Meldung dass irgendein Fehler mit Dateisystem, Superblock oder ein sonstiger Fehler vorläge.

      Daraufhin nochmal nachgesehen und siehe da

      Screenshot_20231224-220128_JuiceSSH.jpg
      Filesystem und Flag sind futsch.

      Was muss ich tun?

      1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active last edited by

        @homoran sagte in Formatierung einer USB Platte am Pi5:

        festegstellt, dass sie als /dev/sda erkannt wird.

        wo steht das .. ??

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @arteck last edited by Homoran

          @arteck sagte in Formatierung einer USB Platte am Pi5:

          @homoran sagte in Formatierung einer USB Platte am Pi5:

          festegstellt, dass sie als /dev/sda erkannt wird.

          wo steht das .. ??

          äääähm, bei lsblk
          der Screenshot ist falsch

          pi@ioBrokerpi5:~ $ lsblk
          NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
          sda           8:0    0 465.8G  0 disk
          └─sda1        8:1    0 139.7G  0 part
          mmcblk0     179:0    0 238.3G  0 disk
          ├─mmcblk0p1 179:1    0   512M  0 part /boot/firmware
          └─mmcblk0p2 179:2    0 237.8G  0 part /
          pi@ioBrokerpi5:~ $
          

          hier mal alles

          pi@ioBrokerpi5:~ $ lsblk
          NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
          sda           8:0    0 465.8G  0 disk
          └─sda1        8:1    0 139.7G  0 part
          mmcblk0     179:0    0 238.3G  0 disk
          ├─mmcblk0p1 179:1    0   512M  0 part /boot/firmware
          └─mmcblk0p2 179:2    0 237.8G  0 part /
          pi@ioBrokerpi5:~ $ df -h
          Filesystem      Size  Used Avail Use% Mounted on
          udev            3.8G     0  3.8G   0% /dev
          tmpfs           806M  5.3M  801M   1% /run
          /dev/mmcblk0p2  235G  2.8G  220G   2% /
          tmpfs           4.0G     0  4.0G   0% /dev/shm
          tmpfs           5.0M   48K  5.0M   1% /run/lock
          /dev/mmcblk0p1  510M   61M  450M  12% /boot/firmware
          tmpfs           806M     0  806M   0% /run/user/1000
          pi@ioBrokerpi5:~ $ sudo parted /dev/sda print
          Model: CT500P3S SD8 (scsi)
          Disk /dev/sda: 500GB
          Sector size (logical/physical): 512B/4096B
          Partition Table: msdos
          Disk Flags:
          
          Number  Start   End    Size   Type     File system  Flags
           1      1049kB  150GB  150GB  primary
          
          pi@ioBrokerpi5:~ $
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Homoran last edited by

            @homoran

            sudo mkfs.ext4 /dev/sda1
            

            Und bitte keine Screenshots von Text aus der Konsole... 😉

            Homoran 1 Reply Last reply Reply Quote 1
            • JLeg
              JLeg last edited by

              @homoran …wenn du in parted etwas als ‚ext2‘ markierst, ersetzt das nicht eine Formatierung, d.h. du solltest da noch ein mkfs nachlegen, und vermutlich willst du da auch kein ext2 mehr haben wollen, sondern min. ext3. Und für alle Fälle 😉 - das Device zum Formatieren und mounten wäre als 1. primary dann /dev/sda1

              1 Reply Last reply Reply Quote 1
              • Homoran
                Homoran Global Moderator Administrators @Thomas Braun last edited by

                @thomas-braun sagte in Formatierung einer USB Platte am Pi5:

                Und bitte keine Screenshots von Text aus der Konsole...

                Aye!

                pi@ioBrokerpi5:~ $ sudo mkfs.ext4 /dev/sda1
                mke2fs 1.47.0 (5-Feb-2023)
                Found a dos partition table in /dev/sda1
                Proceed anyway? (y,N)
                

                proceeden?

                arteck Thomas Braun 2 Replies Last reply Reply Quote 0
                • arteck
                  arteck Developer Most Active @Homoran last edited by

                  @homoran sagte in Formatierung einer USB Platte am Pi5:

                  proceeden?

                  ne lass das so stehen.. mal schaun was vielleicht noch kommt....

                  ahhhh. JA

                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @arteck last edited by

                    @arteck sagte in Formatierung einer USB Platte am Pi5:

                    mal schaun was vielleicht noch kommt....

                    roceed anyway? (y,N) y
                    Creating filesystem with 36628736 4k blocks and 9158656 inodes
                    Filesystem UUID: 3d15831f-ff72-420f-a9c8-feb8e8f3a3f9
                    Superblock backups stored on blocks:
                            32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
                            4096000, 7962624, 11239424, 20480000, 23887872
                    
                    Allocating group tables: done
                    Writing inode tables: done
                    Creating journal (262144 blocks):
                    

                    ich fürchte da will er was von mir

                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Homoran last edited by

                      @homoran

                      Das ist ein altes Format für die Partitionstabelle. Gibt Probleme bei großen Datenträgern, weswegen man da eigentlich gpt (oder so ähnlich) verwenden sollte.

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @Thomas Braun last edited by

                        @thomas-braun mit gpt hab ich es auch nicht hin bekommen
                        das war für mich noch undurchsichtiger.

                        Hab dann irgendwo gelesen, dass gpt erst ab 2TB nötig wäre

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Homoran last edited by

                          @homoran

                          Okay. Ich hab die Vor- und Nachteile der einzelnen Partitionstabellen nicht präsent. Müsste ich auch nachlesen.

                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Thomas Braun last edited by

                            @thomas-braun

                            @homoran sagte in Formatierung einer USB Platte am Pi5:

                            ich fürchte da will er was von mir

                            hast du ne Ahnung was?

                            Thomas Braun JLeg 2 Replies Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Homoran last edited by

                              @homoran

                              Was soll die Kiste da von dir wollen?
                              Ich sehe keine Rückfrage.

                              Homoran 1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @Thomas Braun last edited by

                                @thomas-braun da war ein Doppepunkt.
                                ich dachte da müsse ich was eintragen.
                                Hat er aber nur ne künstlerische Pause eingelegt.

                                Proceed anyway? (y,N) y
                                Creating filesystem with 36628736 4k blocks and 9158656 inodes
                                Filesystem UUID: 3d15831f-ff72-420f-a9c8-feb8e8f3a3f9
                                Superblock backups stored on blocks:
                                        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
                                        4096000, 7962624, 11239424, 20480000, 23887872
                                
                                Allocating group tables: done
                                Writing inode tables: done
                                Creating journal (262144 blocks): done
                                Writing superblocks and filesystem accounting information: done
                                
                                pi@ioBrokerpi5:~ $
                                

                                jetzt ist er fertig.

                                muss mich dann noch in mount und fstab einlesen, damit ich die Platte so mounten kann, dass ich sie auch mal abziehen kann ohne dass der Pi streikt

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • JLeg
                                  JLeg @Homoran last edited by

                                  @homoran sagte in Formatierung einer USB Platte am Pi5:

                                  @thomas-braun

                                  @homoran sagte in Formatierung einer USB Platte am Pi5:

                                  ich fürchte da will er was von mir

                                  hast du ne Ahnung was?

                                  …das Prg sollte etwas rödeln und dann so wie in den Zeilen darüber ‚done‘ ausgeben. Tut es das nicht, klemmt evtl. deine Platte, bzw. das USB-Interface…

                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @JLeg last edited by Homoran

                                    @jleg scheint erledigt!

                                    siehe letzter Post

                                    DANKE euch allen

                                    Status jetzt:

                                    pi@ioBrokerpi5:~ $ sudo parted /dev/sda print
                                    Model: CT500P3S SD8 (scsi)
                                    Disk /dev/sda: 500GB
                                    Sector size (logical/physical): 512B/4096B
                                    Partition Table: msdos
                                    Disk Flags:
                                    
                                    Number  Start   End    Size   Type     File system  Flags
                                     1      1049kB  150GB  150GB  primary  ext4
                                    
                                    pi@ioBrokerpi5:~ $
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Homoran last edited by

                                      @homoran sagte in Formatierung einer USB Platte am Pi5:

                                      dass ich sie auch mal abziehen kann ohne dass der Pi streikt

                                      umount nicht vergessen. Dann erst abziehen.

                                      Homoran JLeg 2 Replies Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @Thomas Braun last edited by

                                        @thomas-braun

                                        im Moment mal eben manuell

                                        pi@ioBrokerpi5:~ $ sudo mount /dev/sda1 /media/usbplatte
                                        mount: (hint) your fstab has been modified, but systemd still uses
                                               the old version; use 'systemctl daemon-reload' to reload.
                                        pi@ioBrokerpi5:~ $ sudo systemctl daemon-reload
                                        pi@ioBrokerpi5:~ $ df -h
                                        Filesystem      Size  Used Avail Use% Mounted on
                                        udev            3.8G     0  3.8G   0% /dev
                                        tmpfs           806M  5.3M  801M   1% /run
                                        /dev/mmcblk0p2  235G  2.8G  220G   2% /
                                        tmpfs           4.0G     0  4.0G   0% /dev/shm
                                        tmpfs           5.0M   48K  5.0M   1% /run/lock
                                        /dev/mmcblk0p1  510M   61M  450M  12% /boot/firmware
                                        tmpfs           806M     0  806M   0% /run/user/1000
                                        /dev/sda1       137G   28K  130G   1% /media/usbplatte
                                        pi@ioBrokerpi5:~ $
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • JLeg
                                          JLeg @Thomas Braun last edited by

                                          @thomas-braun sagte in Formatierung einer USB Platte am Pi5:

                                          @homoran sagte in Formatierung einer USB Platte am Pi5:

                                          dass ich sie auch mal abziehen kann ohne dass der Pi streikt

                                          umount nicht vergessen. Dann erst abziehen.

                                          …oder ‚autofs‘ benutzen, (un)mountet automatisch…

                                          Homoran 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @JLeg last edited by

                                            @jleg sagte in Formatierung einer USB Platte am Pi5:

                                            @thomas-braun sagte in Formatierung einer USB Platte am Pi5:

                                            @homoran sagte in Formatierung einer USB Platte am Pi5:

                                            dass ich sie auch mal abziehen kann ohne dass der Pi streikt

                                            umount nicht vergessen. Dann erst abziehen.

                                            …oder ‚autofs‘ benutzen, (un)mountet automatisch…

                                            muss mich da noch in die Optionen einlesen.
                                            Hab keine Ahnung bisher.

                                            die fstab sieht im Moment so aus

                                            Screenshot_20231225-121254_JuiceSSH.jpg

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            636
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            36
                                            1123
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo