• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Problem mit systemd und zwei Partitionen

Burke

Newbie
Hi,
seitdem mir vor kurzem mal meine Festplatte abgeraucht ist und ich alles einigermaßen wieder hergestellt habe, habe ich ein kleines Problem.

Jeder Bootvorgang wird irgendwann unterbrochen. Wenn systemd eine meiner beiden Windows-Partitionen einhängen möchte, bekomme ich nur:
Code:
Starting /windows/D...
Starting /dev/disk-by-id/ata-ST[ usw.] [FAILED]
:

sowie

Code:
:
Dependency failed. Aborted start of /home
Dependency failed. Aborted start of File System Check on /dev/disk-by-id/ata-ST[ usw.]
:

Ich lande dann im emergency mode, gebe mein root-passwort ein, mounte manuell besagte Windows-Partition und /home und setze dann mit 'systemctl default' den Start wie gewohnt fort. Sonst funktioniert auch alles reibungslos.

im Syslog hab ich dazu das hier gefunden:

Code:
[   19.545072] swapon[794]: swapon: /dev/sda8: read swap header failed: Das Argument ist ungültig
[   19.545377] systemd[1]: dev-disk-by\x2did-ata\x2dST9320325AS_6VD3CGGR\x2dpart8.swap swap process exited, code=exited status=255
[   19.552259] systemd[1]: Unit dev-disk-by\x2did-ata\x2dST9320325AS_6VD3CGGR\x2dpart8.swap entered failed state.
[   19.851210] fuse init (API version 7.17)
[   20.158401] mount[786]: NTFS signature is missing.
[   20.239172] systemd[1]: windows-D.mount mount process exited, code=exited status=12
[   20.239299] mount[786]: Failed to mount '/dev/sda5': Das Argument ist ungültig
[   20.239309] mount[786]: The device '/dev/sda5' doesn't seem to have a valid NTFS.
[   20.239316] mount[786]: Maybe the wrong device is used? Or the whole disk instead of a
[   20.239324] mount[786]: partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
[   20.246248] systemd[1]: Job remote-fs-pre.target/start failed with result 'dependency'.
[   20.246258] systemd[1]: Job local-fs.target/start failed with result 'dependency'.
[   20.246264] systemd[1]: Triggering OnFailure= dependencies of local-fs.target.
[   20.246591] systemd[1]: Job home.mount/start failed with result 'dependency'.
[   20.246671] systemd[1]: Job fsck@dev-disk-by\x2did-ata\x2dST9320325AS_6VD3CGGR\x2dpart9.service/start failed with result 'dependency'.
[   20.247380] systemd[1]: Unit windows-D.mount entered failed state.
[   20.567290] systemd[1]: Startup finished in 7s 169ms 861us (kernel) + 13s 397ms 312us (userspace) = 20s 567ms 173us.

fdisk -l zeigt mir alle meine Partitionen m.W. korrekt an:

Code:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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
Disk identifier: 0x00045e21

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    40965749    20482843+  1c  Hidden W95 FAT32 (LBA)
/dev/sda2        40965750   197245565    78139908    7  HPFS/NTFS/exFAT
/dev/sda3       197249024   412730240   107740608+   7  HPFS/NTFS/exFAT
/dev/sda4       412741980   625153409   106205715    f  W95 Ext'd (LBA)
/dev/sda5       417902592   422123503     2110456   82  Linux swap / Solaris
/dev/sda6       422125568   464068607    20971520   83  Linux
/dev/sda7       464072704   506032127    20979712   83  Linux
/dev/sda8       506034176   625121279    59543552   83  Linux

Chkdsk unter Windows findet ebenfalls nichts, die Partition funktioniert Fehlerfrei. Auch sehr merkwürdig ist, dass meine Swap-Partition eine NTFS-Partition sein soll. Was könnte los sein?
 

Spielwurm

Advanced Hacker
Was mir sofort auffällt:
das System versucht /dev/sda8 als swap zu mounten und fdisk sagt swap ist /dev/sda5,
genauso: System versucht /dev/sda5 mit ntfs, aber /dev/sda5 ist lt. fdisk die /swap-Partition

Unter dem usw. der Platten verbirgt sich übrigends die wichtige Info, welchen Part der Platten das System gerade abarbeitet ...
 
OP
B

Burke

Newbie
josef-wien schrieb:
fstab ist fehlerhaft.

Ah stimmt, klar. Hab ich nicht dran gedacht, dass ich die noch anpassen muss. Danke!


Spielwurm schrieb:
Was mir sofort auffällt:
das System versucht /dev/sda8 als swap zu mounten und fdisk sagt swap ist /dev/sda5,
genauso: System versucht /dev/sda5 mit ntfs, aber /dev/sda5 ist lt. fdisk die /swap-Partition

Unter dem usw. der Platten verbirgt sich übrigends die wichtige Info, welchen Part der Platten das System gerade abarbeitet ...

Ja. Inzwischen scheint mir aber, dass beim Rekonstruieren von Testdisk nicht alles glatt lief. Zwar sind die Datten, soweit ich das sehe, alle wieder da, aber die Partitionen weißen einige merkwürdige abstände zwischendurch auf und haben eine Reihe von komischen Grenzen.

Hier mal das Ergebnis eines Durchlaufs des Bootinfoscripts:

Code:
                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the 
    same drive in partition #7 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 7: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /boot/bcd

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe 
                       /grldr.mbr

sda3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  According to the info in the boot sector, sda3 starts 
                       at sector 2048. But according to the info from fdisk, 
                       sda3 starts at sector 197249024.
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  Grub Legacy
    Boot sector info:  Grub Legacy (v0.97) is installed in the boot sector 
                       of sda5 and looks at sector 502912120 of the same hard 
                       drive for the stage2 file.  A stage2 file is at this 
                       location on /dev/sda.  Stage2 looks on partition #6 
                       for /boot/grub/menu.lst.

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Welcome to openSUSE 11.3 "Teal" 
                       - Kernel ().
    Boot files:        /boot/grub/menu.lst /etc/fstab

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Welcome to openSUSE 12.1 
                       "Asparagus" - Kernel ().
    Boot files:        /boot/grub/menu.lst /etc/fstab

sda8: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb: ___________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.06 2012-10-23
    Boot sector info:  Syslinux looks at sector 61082 of /dev/sdb for its 
                       second stage. SYSLINUX is installed in the  directory. 
                       The integrity check of the ADV area failed. No errors 
                       found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /syslinux/syslinux.cfg /ldlinux.sys

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 Köpfe, 63 Sektoren/Spur, 38913 Zylinder, zusammen 625142448 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *             63    40,965,749    40,965,687  1c Hidden W95 FAT32 (LBA)
/dev/sda2          40,965,750   197,245,565   156,279,816   7 NTFS / exFAT / HPFS
/dev/sda3         197,249,024   412,730,240   215,481,217   7 NTFS / exFAT / HPFS
/dev/sda4         412,741,980   625,153,409   212,411,430   f W95 Extended (LBA)
/dev/sda5         417,902,592   422,123,503     4,220,912  82 Linux swap / Solaris
/dev/sda6         422,125,568   464,068,607    41,943,040  83 Linux
/dev/sda7         464,072,704   506,032,127    41,959,424  83 Linux
/dev/sda8         506,034,176   625,121,279   119,087,104  83 Linux

/dev/sda4 ends after the last sector of /dev/sda

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        3E5F-3A2B                              vfat       RECOVERY
/dev/sda2        D29417E39417C8BD                       ntfs       OS
/dev/sda3        C6101D88101D809B                       ntfs       DATA
/dev/sda5        1739158e-a3fc-466c-9e20-fa09e92f8001   swap       
/dev/sda6        536aac0c-12b6-43df-8b1a-6c761c15070d   ext4       
/dev/sda7        80f9b9e4-ab75-40e6-9a98-0780bf1ed4d7   ext4       
/dev/sda8        ff649340-d2ac-4ecd-a69f-d02c76696df5   ext4       
/dev/sdb         1F17-195D                              vfat       PENDRIVE

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdb         /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


=========================== sda6/boot/grub/menu.lst: ===========================

--------------------------------------------------------------------------------
# Modified by YaST2. Last modification on So Okt 31 22:21:28 CET 2010
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 0
timeout 8
gfxmenu (hd0,6)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.3
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part7 resume=/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part6 splash=silent quiet showopts vga=0x317
    initrd /boot/initrd-2.6.34-12-desktop

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
    rootnoverify (hd0,1)
    chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.3
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part7 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x317
    initrd /boot/initrd-2.6.34-12-desktop
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part6 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part7 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part8 /home                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part2 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part5 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
--------------------------------------------------------------------------------

=================== sda6: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/menu.lst                             1

=========================== sda7/boot/grub/menu.lst: ===========================

--------------------------------------------------------------------------------
# Modified by YaST2. Last modification on Do Dez 27 22:48:38 CET 2012
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader

default 0
timeout 8
gfxmenu (hd0,6)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 12.1 - 3.1.10-1.16
    root (hd0,6)
    kernel /boot/vmlinuz-3.1.10-1.16-desktop root=/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part7 resume=/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part8 splash=silent quiet showopts acpi_backlight=vendor vga=0x318
    initrd /boot/initrd-3.1.10-1.16-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.1 - 3.1.10-1.16
    root (hd0,6)
    kernel /boot/vmlinuz-3.1.10-1.16-desktop root=/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part7 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
    initrd /boot/initrd-3.1.10-1.16-desktop

###Don't change this comment - YaST2 identifier: Original name:  openSUSE 11.3 (/dev/sda6)###
title openSUSE 11.3 (/dev/sda6)
    root (hd0,5)
    configfile /boot/grub/menu.lst

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows 7
    rootnoverify (hd0,1)
    chainloader +1
--------------------------------------------------------------------------------

=============================== sda7/etc/fstab: ================================

--------------------------------------------------------------------------------
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part5 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part7 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part8 /home                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part2 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,umask=0002,locale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_6VD3CGGR-part3 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,umask=0002,locale=de_DE.UTF-8 0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
--------------------------------------------------------------------------------

=================== sda7: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/menu.lst                             1
               =                boot/grub/stage2                               1
               =                boot/initrd                                    2
               =                boot/initrd-3.1.10-1.16-desktop                2
               =                boot/vmlinuz                                   1
               =                boot/vmlinuz-3.1.10-1.16-desktop               1

========================== sdb/syslinux/syslinux.cfg: ==========================

--------------------------------------------------------------------------------
# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
ui gfxboot bootlogo
--------------------------------------------------------------------------------

================== sdb: Location of files loaded by Syslinux: ==================

           GiB - GB             File                                 Fragment(s)

            ?? = ??             ldlinux.sys                                    1
            ?? = ??             syslinux/chain.c32                             1
            ?? = ??             syslinux/gfxboot.c32                           1
            ?? = ??             syslinux/menu.c32                              1
            ?? = ??             syslinux/syslinux.cfg                          1
            ?? = ??             syslinux/vesamenu.c32                          1

=============== sdb: Version of COM32(R) files used by Syslinux: ===============

 syslinux/chain.c32                 :  COM32R module (v4.xx)
 syslinux/gfxboot.c32               :  COM32R module (v4.xx)
 syslinux/menu.c32                  :  COM32R module (v4.xx)
 syslinux/vesamenu.c32              :  COM32R module (v4.xx)

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000  30 00 2e 00 31 00 36 00  33 00 38 00 35 00 2e 00  |0...1.6.3.8.5...|
00000010  63 00 61 00 74 00 7c 00  1c 00 7f c7 aa e3 44 e8  |c.a.t.|.......D.|
00000020  a5 99 28 09 cf 10 1c c1  c1 e4 45 74 09 6c da 0a  |..(.......Et.l..|
00000030  7d 00 00 00 00 04 00 80  04 00 14 00 c7 aa e3 44  |}..............D|
00000040  e8 a5 99 28 cf 10 1c c1  c1 e4 45 74 6c da 0a 7d  |...(......Etl..}|
00000050  00 01 04 40 01 4d 00 69  00 63 00 72 00 6f 00 73  |...@.M.i.c.r.o.s|
00000060  00 6f 00 66 00 74 00 2d  00 57 00 69 00 6e 00 64  |.o.f.t.-.W.i.n.d|
00000070  00 6f 00 77 00 73 00 2d  00 53 00 6e 00 69 00 70  |.o.w.s.-.S.n.i.p|
00000080  00 70 00 69 00 6e 00 67  00 54 00 6f 00 6f 00 6c  |.p.i.n.g.T.o.o.l|
00000090  00 2d 00 50 00 61 00 63  00 6b 00 61 00 67 00 65  |.-.P.a.c.k.a.g.e|
000000a0  00 7e 00 33 00 31 00 62  00 66 00 33 00 38 00 35  |.~.3.1.b.f.3.8.5|
000000b0  00 36 00 61 00 64 00 33  00 36 00 34 00 65 00 33  |.6.a.d.3.6.4.e.3|
000000c0  00 35 00 7e 00 61 00 6d  00 64 00 36 00 34 00 7e  |.5.~.a.m.d.6.4.~|
000000d0  00 65 00 73 00 2d 00 45  00 53 00 7e 00 36 00 2e  |.e.s.-.E.S.~.6..|
000000e0  00 31 00 2e 00 37 00 36  00 30 00 30 00 2e 00 31  |.1...7.6.0.0...1|
000000f0  00 36 00 33 00 38 00 35  00 2e 00 63 00 61 00 74  |.6.3.8.5...c.a.t|
00000100  00 7c 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |.|..............|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  f1 00 3f 27 f1 00 00 fe  |..........?'....|
000001c0  ff ff 82 fe ff ff a4 be  4e 00 f0 67 40 00 00 fe  |........N..g@...|
000001d0  ff ff 05 fe ff ff 30 2e  8f 00 74 00 80 02 00 00  |......0...t.....|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


========= Devices which don't seem to have a corresponding hard drive: =========

sdc 

=============================== StdErr Messages: ===============================

awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
File descriptor 3 (/usr/share/bash-completion/completions) leaked on lvscan invocation. Parent PID 7882: /bin/bash
File descriptor 4 (/usr/share/bash-completion/completions) leaked on lvscan invocation. Parent PID 7882: /bin/bash
File descriptor 5 (/usr/share/bash-completion/completions) leaked on lvscan invocation. Parent PID 7882: /bin/bash
File descriptor 6 (/usr/share/bash-completion/completions) leaked on lvscan invocation. Parent PID 7882: /bin/bash
File descriptor 7 (/usr/share/bash-completion/completions) leaked on lvscan invocation. Parent PID 7882: /bin/bash
File descriptor 8 (/usr/share/bash-completion/completions) leaked on lvscan invocation. Parent PID 7882: /bin/bash
  No volume groups found
./bootinfoscript: Zeile 1646: [: 2.73495e+09: Ganzzahliger Ausdruck erwartet.
 
Oben