3 TB HD / EFI / GUID Partition Table

    • 3 TB HD / EFI / GUID Partition Table

      Hallo zusammen,

      ich möchte gerne eine 3TB-Platte (WD30EZRX) in meiner DM8000 verbauen.

      ich habe hierzu an verschiedenen Stellen im Forum gelesen, das EFI im Kernel von Newnigma2 deaktiviert ist und ich daher keine Festplatten mit GUID verwenden kann (was ja für 3TB notwendig ist).

      Kann ich den EFI-Support selbst aktivieren oder besteht die Möglichkeit, EFI im nächsten Release oder einer Unstable-Version zu aktivieren?

      Schonmal vielen Dank für eure Hilfe und Gruß,
      Klauenro

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von klaurenro ()

    • Das ist schon im unstable aktiviert.
      Die Festplatte muss aber manuell partitioniert, formatiert und gemountet werden und wenn du die Enigma eigene Festplatten Verwaltung aufrufst dann stürzt vermutlich e2 ab.

      DMM hat das aber schon gefixt, das kommt dann alles mit dem nächsten E2 Update.
    • Hallo,

      danke für den Tipp. Hatte die besagte Platte günstig geschossen.

      Hab jetzt aber ein anderes Problem: Hab die Platte auf einem Linuxrechner mit GUID partitioniert und ext3 formatiert.

      Die Dreambox meldet nun in dmseg:

      [4294678.919000] Vendor: ATA Model: WDC WD30EZRX-00M Rev: 80.0
      [4294678.919000] Type: Direct-Access ANSI SCSI revision: 05
      [4294678.920000] sde: too big for this kernel. Use a kernel compiled with support for large block devices.
      [4294678.920000] SCSI device sde: 0 512-byte hdwr sectors (0 MB)
      [4294678.921000] sde: Write Protect is off
      [4294678.921000] sde: Mode Sense: 00 3a 00 00

      Kann ich den Large block device Support per Modul hinzuschalten oder muss das auch in den Kernel? Oder habt ihr vielleicht eine andere Idee?

      VG,
      Klauenro
    • Müsste fertig sein.

      Edit:

      Achso, wie gesagt wenn du die Enigma2 eigene Festplatten-Verwaltung aufrufst dann gibt es einen GreenScreen wegen dem GPT (noch).
      Du kannst die Festplatte aber über die /etc/fstab mounten:

      Quellcode

      1. /dev/sda1 /media/hdd auto defaults 0 0


      Oder über "/dev/disk/by-uuid/"
    • Hallo und ein frohes neues Jahr!

      Vielen Dank für das Image, habe die Version von heute Morgen (1.1., 7:29) geladen.
      Die Festplatte wird als externe USB-Platte korrekt erkannt, allerdings meldet er in dmesg, dass die Partitionstabelle nicht erkannt wurde:

      [ 1295.868000] usb-storage: waiting for device to settle before scanning
      [ 1300.871000] Vendor: WD Model: Ext HDD 1021 Rev: 2021
      [ 1300.871000] Type: Direct-Access ANSI SCSI revision: 04
      [ 1300.873000] SCSI device sdf: 732566016 4096-byte hdwr sectors (3000590 MB)
      [ 1300.876000] sdf: Write Protect is off
      [ 1300.876000] sdf: Mode Sense: 17 00 10 08
      [ 1300.876000] sdf: assuming drive cache: write through
      [ 1300.878000] SCSI device sdf: 732566016 4096-byte hdwr sectors (3000590 MB)
      [ 1300.880000] sdf: Write Protect is off
      [ 1300.880000] sdf: Mode Sense: 17 00 10 08
      [ 1300.880000] sdf: assuming drive cache: write through
      [ 1300.880000] sdf: unknown partition table
      [ 1300.888000] sd 6:0:0:0: Attached scsi disk sdf
      [ 1300.889000] sd 6:0:0:0: Attached scsi generic sg6 type 0

      Ich habe Testweise eine auf MBR umgestellt und eine kleine Partition angelegt. Diese wird richtig erkannt.

      Habt ihr eine Idee, woran das liegen kann?

      VG, klaurenro
    • Ich habe zwar keine 3TB Festplatte aber ein Stick den ich mit GPT partitioniert habe funktioniert hier ohne Probleme.

      Quellcode

      1. sparks@sparks:~$ dd if=/dev/zero of=/dev/sde bs=1MB count=100

      #die ersten paar MB genullt wo auch der MBR liegt.

      Quellcode

      1. sparks@sparks:~$ gdisk /dev/sde
      2. GPT fdisk (gdisk) version 0.5.1
      3. Partition table scan:
      4. MBR: not present
      5. BSD: not present
      6. Caution: invalid main GPT header, but valid backup; regenerating main header
      7. from backup!
      8. Warning! One or more CRCs don't match. You should repair the disk!
      9. APM: not present
      10. GPT: damaged
      11. Found invalid MBR and corrupt GPT. What do you want to do? (Using the
      12. GPT MAY permit recovery of GPT data.)
      13. 1 - GPT
      14. 2 - Create blank GPT
      Alles anzeigen

      Your answer: 2

      Quellcode

      1. Creating new GPT entries.

      Command (? for help): n
      Partition number (1-128, default 1): 1
      First sector (34-15630302, default = 34) or {+-}size{KMGT}:
      Last sector (34-15630302, default = 15630302) or {+-}size{KMGT}:
      Current type is 'Unused entry'
      Hex code (L to show codes, 0 to enter raw code): L

      Quellcode

      1. 0700 Linux/Windows data 0c01 Microsoft Reserved 2700 Windows RE
      2. 4200 Windows LDM data 4201 Windows LDM metadat 8200 Linux swap
      3. 8301 Linux Reserved 8e00 Linux LVM a500 FreeBSD disklabel
      4. a501 FreeBSD boot a502 FreeBSD swap a503 FreeBSD UFS
      5. a504 FreeBSD ZFS a505 FreeBSD Vinum/RAID a800 Apple UFS
      6. a901 NetBSD swap a902 NetBSD FFS a903 NetBSD LFS
      7. a903 NetBSD RAID a904 NetBSD concatenated a905 NetBSD encrypted
      8. ab00 Apple boot af00 Apple HFS/HFS+ af01 Apple RAID
      9. af02 Apple RAID offline af03 Apple label af04 AppleTV recovery
      10. be00 Solaris boot bf00 Solaris root bf01 Solaris /usr & Mac
      11. bf02 Solaris swap bf03 Solaris backup bf04 Solaris /var
      12. bf05 Solaris /home bf05 Solaris EFI_ALTSCTR bf06 Solaris Reserved 1
      13. bf07 Solaris Reserved 2 bf08 Solaris Reserved 3 bf09 Solaris Reserved 4
      14. bf0a Solaris Reserved 5 c001 HP-UX data c002 HP-UX service
      15. ef00 EFI System ef01 MBR partition schem ef02 BIOS boot partition
      16. fd00 Linux RAID
      Alles anzeigen

      Hex code (L to show codes, 0 to enter raw code): 0700

      Quellcode

      1. Changed system type of partition to 'Linux/Windows data'

      Command (? for help): w

      Quellcode

      1. Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
      2. MBR PARTITIONS!! THIS PROGRAM IS BETA QUALITY AT BEST. IF YOU LOSE ALL YOUR
      3. DATA, YOU HAVE ONLY YOURSELF TO BLAME IF YOU ANSWER 'Y' BELOW!

      Do you want to proceed, possibly destroying your data? (Y/N) Y

      Quellcode

      1. OK; writing new GPT partition table.
      2. The operation has completed successfully.

      Quellcode

      1. sparks@sparks:~$ mkfs -t ext3 -m 0 /dev/sde1
      2. mke2fs 1.41.11 (14-Mar-2010)
      3. Dateisystem-Label=
      4. OS-Typ: Linux
      5. Blockgröße=4096 (log=2)
      6. Fragmentgröße=4096 (log=2)
      7. Stride=0 blocks, Stripe width=0 blocks
      8. 488640 Inodes, 1953783 Blöcke
      9. 0 Blöcke (0.00%) reserviert für den Superuser
      10. Erster Datenblock=0
      11. Maximale Dateisystem-Blöcke=2000683008
      12. 60 Blockgruppen
      13. 32768 Blöcke pro Gruppe, 32768 Fragmente pro Gruppe
      14. 8144 Inodes pro Gruppe
      15. Superblock-Sicherungskopien gespeichert in den Blöcken:
      16. 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
      17. Schreibe Inode-Tabellen: erledigt
      18. Erstelle Journal (32768 Blöcke): erledigt
      19. Schreibe Superblöcke und Dateisystem-Accountinginformationen: erledigt
      20. Das Dateisystem wird automatisch nach jeweils 25 Einhäng-Vorgängen bzw.
      21. alle 180 Tage überprüft, je nachdem, was zuerst eintritt. Veränderbar mit
      22. tune2fs -c oder -t .
      Alles anzeigen


      An der Box:

      Quellcode

      1. [ 9729.207000] usb 1-1.1: new high speed USB device using brcm-ehci and address 11
      2. [ 9729.294000] usb 1-1.1: configuration #1 chosen from 1 choice
      3. [ 9729.301000] scsi11 : SCSI emulation for USB Mass Storage devices
      4. [ 9729.307000] usb-storage: device found at 11
      5. [ 9729.307000] usb-storage: waiting for device to settle before scanning
      6. [ 9734.338000] Vendor: Verbatim Model: STORE N GO Rev: 5.00
      7. [ 9734.344000] Type: Direct-Access ANSI SCSI revision: 00
      8. [ 9737.744000] SCSI device sdd: 15630336 512-byte hdwr sectors (8003 MB)
      9. [ 9737.751000] sdd: Write Protect is off
      10. [ 9737.754000] sdd: Mode Sense: 23 00 00 00
      11. [ 9737.754000] sdd: assuming drive cache: write through
      12. [ 9737.761000] SCSI device sdd: 15630336 512-byte hdwr sectors (8003 MB)
      13. [ 9737.767000] sdd: Write Protect is off
      14. [ 9737.771000] sdd: Mode Sense: 23 00 00 00
      15. [ 9737.771000] sdd: assuming drive cache: write through
      16. [ 9737.775000] sdd: sdd1
      17. [ 9737.818000] sd 11:0:0:0: Attached scsi removable disk sdd
      18. [ 9737.823000] sd 11:0:0:0: Attached scsi generic sg7 type 0
      19. [ 9737.835000] usb-storage: device scan complete
      20. [ 9738.863000] kjournald starting. Commit interval 5 seconds
      21. [ 9740.091000] EXT3 FS on sdd1, internal journal
      22. [ 9740.095000] EXT3-fs: mounted filesystem with ordered data mode.
      Alles anzeigen


      Quellcode

      1. root@dm8000:~# fdisk -l /dev/sdd

      WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


      Quellcode

      1. Disk /dev/sdd: 8002 MB, 8002732032 bytes
      2. 255 heads, 63 sectors/track, 972 cylinders
      3. Units = cylinders of 16065 * 512 = 8225280 bytes
      4. Disk identifier: 0x00000000
      5. Device Boot Start End Blocks Id System
      6. /dev/sdd1 1 973 7815167+ ee GPT
      7. Partition 1 has different physical/logical beginnings (non-Linux?):
      8. phys=(0, 0, 1) logical=(0, 0, 2)
      9. Partition 1 has different physical/logical endings:
      10. phys=(1023, 254, 63) logical=(972, 240, 36)
      Alles anzeigen

      Quellcode

      1. root@dm8000:~# mount /dev/sdd1 /media/cf
      2. root@dm8000:~# mount
      3. /dev/sdd1 on /media/cf type ext3 (rw,data=ordered)

      Quellcode

      1. root@dm8000:~# blkid
      2. /dev/sdd1: UUID="a6a2f424-ee6c-4007-9f15-203797a3df60" TYPE="ext3"


      sdf: unknown partition table


      Ich denke mal da wird denn etwas nicht stimmen.

      Der Stick lies sich zwar auch erst nicht mount:

      Quellcode

      1. root@dm8000:~# mount /dev/sdd1 /media/cf
      2. mount: mounting /dev/sdd1 on /media/cf failed: Invalid argument


      Aber nach dem unstable Update und einem Neustart (der Stick war während des Neustart an der Box) ging es dann doch.

      Hier noch mal einige Informationen dazu: xfs.org/index.php/XFS_FAQ#Q:_W…sappear_when_I_reboot_.3F

      Das ist alles im Kernel aktiviert:
      CONFIG_PARTITION_ADVANCED=y
      CONFIG_EFI_PARTITION=y
      CONFIG_LBD=y

      Dann wäre noch die Frage nach dem LFS Support: suse.de/~aj/linux_lfs.html

      Quellcode

      1. Filesystem File Size Limit Filesystem Size Limit
      2. ext2/ext3 with 1 KiB blocksize 16448 MiB (~ 16 GiB) 2048 GiB (= 2 TiB)
      3. ext2/3 with 2 KiB blocksize 256 GiB 8192 GiB (= 8 TiB)
      4. ext2/3 with 4 KiB blocksize 2048 GiB (= 2 TiB) 8192 GiB (= 8 TiB)


      Die Festplatte hat 4k Blöcke = max 8TB

      Mehr geht dann auch nicht.

      Und eigentlich wolltest du die Festplatte in der Box verbauen:
      ich möchte gerne eine 3TB-Platte (WD30EZRX) in meiner DM8000 verbauen.


      Ich hoffe das du das Image im Flash installiert hast!

      mfg
    • Hallo,

      sparksofinsanity, erstmal vielen herzlichen Dank für deine ausführliche Hilfe und Anleitung.

      Zu deiner letzten Frage: Das Image liegt im Flash.

      Einen USB-Stick mit GUID habe ich nach deiner Anleitung ebenfalls problemlos ans laufen bekommen.

      Die Festplatte macht leider noch immer Probleme. Es ist richtig, dass ich die Platte einbauen will. Ich hatte bisher immer über USB gearbeitet, damit meine Familie weiter fernsehen konnte. Vermutlich war das ein Fehler.

      Via USB kann ich die Platte mit auf ca. 1,8 TB mit MBR formatieren und nutzen. Mit GUID anhand deiner Anleitung partitioniert und formatiert kommt allerdings weiterhin die Meldung "unknown partition table"

      [4294692.747000] Vendor: WD Model: Ext HDD 1021 Rev: 2021
      [4294692.747000] Type: Direct-Access ANSI SCSI revision: 04
      [4294692.751000] SCSI device sdf: 732566016 4096-byte hdwr sectors (3000590 MB)
      [4294692.753000] 12053 ms: 20
      [4294692.753000] sdf: Write Protect is off
      [4294692.753000] sdf: Mode Sense: 17 00 10 08
      [4294692.753000] sdf: assuming drive cache: write through
      [4294692.755000] SCSI device sdf: 732566016 4096-byte hdwr sectors (3000590 MB)
      [4294692.758000] sdf: Write Protect is off
      [4294692.758000] sdf: Mode Sense: 17 00 10 08
      [4294692.758000] sdf: assuming drive cache: write through
      [4294692.758000] sdf:11 ms: 21
      [4294692.771000] 7 ms: 22
      [4294692.772000] unknown partition table
      [4294692.772000] sd 4:0:0:0: Attached scsi disk sdf
      [4294692.773000] sd 4:0:0:0: Attached scsi generic sg6 type 0
      [4294692.780000] usb-storage: device scan complete

      Wenn ich die Platte am internen Controller anschließe, zeigt dmesg für die Festplatte das Folgende an (ebenfalls anhand deiner Anleitung partitioniert und formatiert):

      [4294678.000000] ata2: exception Emask 0x10 SAct 0x0 SErr 0x40000 action 0x42 frozen
      [4294678.722000] ata2: soft resetting port
      [4294678.726000] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl F0000)
      [4294678.757000] ATA: ata_busy_wait 0xD0 timeout spinup?!? 4960 msecs left
      [4294678.798000] ATA: ata_busy_wait 0xD0 timeout spinup?!? 4920 msecs left
      [4294678.840000] ATA: ata_busy_wait 0xD0 timeout spinup?!? 4880 msecs left
      [4294678.881000] ATA: ata_busy_wait 0xD0 timeout spinup?!? 4840 msecs left
      [4294678.909000] ata2.00: ATA-8, max UDMA/133, 5860533168 sectors: LBA48 NCQ (depth 0/32)
      [4294678.909000] ata2.00: ata2: dev 0 multi count 0
      [4294678.915000] ata2.00: configured for UDMA/133
      [4294678.915000] ata2: EH complete
      [4294678.916000] Vendor: ATA Model: WDC WD30EZRX-00M Rev: 80.0
      [4294678.916000] Type: Direct-Access ANSI SCSI revision: 05
      [4294678.917000] sde : very big device. try to use READ CAPACITY(16).
      [4294678.917000] sde : unsupported sector size -1548812288.
      [4294678.917000] SCSI device sde: 0 512-byte hdwr sectors (0 MB)
      [4294678.917000] sde: Write Protect is off
      [4294678.917000] sde: Mode Sense: 00 3a 00 00
      [4294678.918000] SCSI device sde: drive cache: write back
      [4294678.919000] sd 1:0:0:0: Attached scsi disk sde
      [4294678.919000] sd 1:0:0:0: Attached scsi generic sg5 type 0

      Auf dem Gastsystem, auf dem ich partitioniere und formatiere (Knoppix) funktioniert die Platte einwandfrei. Besteht die Möglichkeit, dass das Problem durch die verschiedenen Systemen entsteht? Könnte man das gdisk irgendwie auf die DM8000 bekommen und damit die Platte direkt auf der Box partitionieren? Hab im Netz dazu leider nichts gefunden. Oder liegt es doch eher an den Sektoren?

      Wie denkt ihr dazu? Bin für jede Hilfe dankbar!

      VG, klaurenro
    • Hi,

      also mit der zweiten Meldung am SATA kann ich schon mehr anfangen.
      Der USB-Controller in dem externen Gehäuse verhunzt da irgend etwas.

      Dann scheint das Laufwerk für den Kernel(Treiber) eindeutig zu groß zu sein.
      Wie gesagt da sind alle Möglichkeiten ausgeschöpft.

      Ghost hat gestern im IRC geschrieben das Anfang Januar vermutlich ein aktueller Kernel und passende Treiber kommen.
      Dann würde ich sagen abwarten.

      PS: der Fehler wird da beschrieben: docs.redhat.com/docs/en-US/Red…es/scsi-target-utils.html

      scsi-target-utils bug
      there was a problem with using very large (more than 2TB in size) hard disks with iSCSI. As a result, the iSCSI initiator failed with "very big device. try to use READ CAPACITY(16)" and "unsupported sector size" error messages. This bug has been fixed in this update so that using such hard disks with iSCSI now works as expected.