Nur eine Partition einer externen HDD wird gemounted

Hallo,

vor kurzem habe ich mir eine neue Festplatte zugelegt und die alte in ein externes Gehäuse eingebaut. Auf der alten ist SLED 11 SP1 installiert und ich hatte mit gparted die Partitionen über ein openSuse 13.2 Live System geprüft. Es ist egal, ob ich versuche die Partitionen auf der neuen HDD im OS auf der alten HDD zu mounten, oder die alte HDD in das externe Gehäuse einbaue und versuche es “über” (also durch das OS auf der neuen HDD) die neue HDD zu mounten. Letzteres erzeugt diese Ausgabe:


 journalctl -f
-- Logs begin at Di 2015-09-15 19:40:02 CEST. --
Nov 17 20:24:04 linux-u799.site gnome-session[1140]: (gnome-shell:1559): mutter-WARNING **: STACK_OP_LOWER_BELOW: window 0x3800020 (JavaEmbedd) not in stack
Nov 17 20:24:04 linux-u799.site gnome-session[1140]: (gnome-shell:1559): mutter-WARNING **: STACK_OP_LOWER_BELOW: window 0x3800020 (JavaEmbedd) not in stack
Nov 17 20:24:04 linux-u799.site gnome-session[1140]: (gnome-shell:1559): mutter-WARNING **: STACK_OP_LOWER_BELOW: window 0x3800020 (JavaEmbedd) not in stack
Nov 17 20:24:04 linux-u799.site gnome-session[1140]: (gnome-shell:1559): mutter-WARNING **: STACK_OP_LOWER_BELOW: window 0x3800020 (JavaEmbedd) not in stack
Nov 17 20:24:04 linux-u799.site org.gnome.Caribou.Daemon[1195]: ** (caribou:1614): WARNING **: AT-SPI: Error in GetItems, sender=org.freedesktop.DBus, error=The name :1.19 was not provided by any .service files
Nov 17 20:24:04 linux-u799.site gnome-session[1140]: (gnome-shell:1559): mutter-WARNING **: STACK_OP_LOWER_BELOW: window 0x3800020 (JavaEmbedd) not in stack
Nov 17 20:24:10 linux-u799.site su[2809]: The gnome keyring socket is not owned with the same credentials as the user login: /run/user/1000/keyring/control
Nov 17 20:24:10 linux-u799.site su[2809]: gkr-pam: couldn't unlock the login keyring.
Nov 17 20:24:10 linux-u799.site su[2809]: (to root) markus on pts/0
Nov 17 20:24:10 linux-u799.site su[2809]: pam_unix(su:session): session opened for user root by markus(uid=1000)
Nov 17 20:24:37 linux-u799.site kernel: usb 1-2: new high-speed USB device number 2 using ehci-pci
Nov 17 20:24:37 linux-u799.site kernel: usb 1-2: New USB device found, idVendor=13fd, idProduct=3940
Nov 17 20:24:37 linux-u799.site kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 17 20:24:37 linux-u799.site kernel: usb 1-2: Product: INIC-3609
Nov 17 20:24:37 linux-u799.site kernel: usb 1-2: Manufacturer: Initio
Nov 17 20:24:37 linux-u799.site kernel: usb 1-2: SerialNumber: 39303830303030303030303030303030
Nov 17 20:24:37 linux-u799.site mtp-probe[2857]: checking bus 1, device 2: "/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2"
Nov 17 20:24:37 linux-u799.site mtp-probe[2857]: bus: 1, device: 2 was not an MTP device
Nov 17 20:24:37 linux-u799.site kernel: usb-storage 1-2:1.0: USB Mass Storage device detected
Nov 17 20:24:37 linux-u799.site kernel: scsi2 : usb-storage 1-2:1.0
Nov 17 20:24:37 linux-u799.site kernel: usbcore: registered new interface driver usb-storage
Nov 17 20:24:37 linux-u799.site kernel: usbcore: registered new interface driver uas
Nov 17 20:24:38 linux-u799.site kernel: scsi 2:0:0:0: Direct-Access     Initio   INIC-3609        0205 PQ: 0 ANSI: 6
Nov 17 20:24:38 linux-u799.site kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0
Nov 17 20:24:38 linux-u799.site kernel: sd 2:0:0:0: [sdb] 625142447 512-byte logical blocks: (320 GB/298 GiB)
Nov 17 20:24:38 linux-u799.site kernel: sd 2:0:0:0: [sdb] Write Protect is off
Nov 17 20:24:38 linux-u799.site kernel: sd 2:0:0:0: [sdb] Mode Sense: 1f 00 10 08
Nov 17 20:24:38 linux-u799.site kernel: sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
Nov 17 20:24:38 linux-u799.site kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Nov 17 20:24:38 linux-u799.site kernel: sdb: p4 size 547545776 extends beyond EOD, enabling native capacity
Nov 17 20:24:38 linux-u799.site kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Nov 17 20:24:38 linux-u799.site kernel: sdb: p4 size 547545776 extends beyond EOD, truncated
Nov 17 20:24:38 linux-u799.site kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
Nov 17 20:24:40 linux-u799.site kernel: EXT4-fs (sdb3): mounting ext3 file system using the ext4 subsystem
Nov 17 20:24:40 linux-u799.site kernel: EXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: (null)
Nov 17 20:24:40 linux-u799.site kernel: EXT4-fs (sdb4): mounting ext3 file system using the ext4 subsystem
Nov 17 20:24:40 linux-u799.site kernel: EXT4-fs (sdb4): bad geometry: block count 68443222 exceeds size of device (68443221 blocks)
Nov 17 20:24:40 linux-u799.site udisksd[1562]: Mounted /dev/sdb3 at /run/media/markus/801dc67f-5765-4b7f-9ca9-f34f31f1039f on behalf of uid 1000
Nov 17 20:24:40 linux-u799.site org.gtk.Private.UDisks2VolumeMonitor[1195]: disc.c:350: error opening file BDMV/index.bdmv
Nov 17 20:24:40 linux-u799.site org.gtk.Private.UDisks2VolumeMonitor[1195]: disc.c:350: error opening file BDMV/BACKUP/index.bdmv
Nov 17 20:24:40 linux-u799.site gnome-session[1140]: Gjs-Message: JS LOG: Unable to mount volume Datenträger 280 GB: Gio.IOErrorEnum: Error mounting /dev/sdb4 at /run/media/markus/9b796de6-cf86-4ef2-985f-2d335cf1f79e: Command-line `mount -t "ext3" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb4" "/run/media/markus/9b796de6-cf86-4ef2-985f-2d335cf1f79e"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
Nov 17 20:24:40 linux-u799.site gnome-session[1140]: missing codepage or helper program, or other error
Nov 17 20:24:40 linux-u799.site gnome-session[1140]: In some cases useful info is found in syslog - try
Nov 17 20:24:40 linux-u799.site gnome-session[1140]: dmesg | tail or so.
^C
linux-u799:/home/markus # fdisk -l

Festplatte /dev/sda: 465,8 GiB, 500107862016 Bytes, 976773168 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 4096 Bytes
E/A-Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0x0008420e

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048   4196351   4194304     2G 82 Linux swap / Solaris
/dev/sda2  *      4196352 127076351 122880000  58,6G 83 Linux
/dev/sda3       127076352 782436351 655360000 312,5G 83 Linux
/dev/sda4       782436352 976773119 194336768  92,7G  7 HPFS/NTFS/exFAT

Festplatte /dev/sdb: 298,1 GiB, 320072932864 Bytes, 625142447 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0xb03e7563

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sdb1           2048  20973567  20971520    10G 12 Compaq diagnostics
/dev/sdb2       20973568  25167871   4194304     2G 82 Linux swap / Solaris
/dev/sdb3  *    25167872  77596671  52428800    25G 83 Linux
/dev/sdb4       77596672 625142447 547545776 261,1G 83 Linux



Vielen Dank schonmal!

Wie sieht denn die Fstab aus?

Ein Betriebssystem auf einer externen Festplatte zu installieren ist keine gute Idee.

Wenn es um Datensicherheit geht, dann eben eine verschlüsselte (Hardware Verschlüsselung der Festplatte, per Dateisystem oder eben per zusätzlicher Verschlüsselung durch Dmcrypt) interne Hotswap Festplatte (SSD oder HDD) verwenden.

Danke für die Antwort, aber ich wollte nicht das OS auf die externe Festplatte installieren. Meine externe war nämlich vorher meine interne😀

Was in der Fstab drinsteht kopieren ich morgen, aber ich finde es schon verwunderlich, das die Geometrie nicht mehr stimmen soll, wenn die HDD extern betrieben wird.

Hä?

Ich kann wohl ncht zwischen einer internen und einer externen Festplatte unterscheiden.

Poste einmal:

mount
cat /etc/fstab
fdisk -l

(ich weiss, ist schon oben gepostet)
Aber bitte in 3 separaten Code-Blöcken.

Danke nochmals. Hier die Ausgaben:

mount


mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=1815748k,nr_inodes=453937,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
/dev/sda2 on / type btrfs (rw,relatime,space_cache)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
/dev/sda2 on /.snapshots type btrfs (rw,relatime,space_cache)
/dev/sda2 on /var/tmp type btrfs (rw,relatime,space_cache)
/dev/sda2 on /var/spool type btrfs (rw,relatime,space_cache)
/dev/sda2 on /var/opt type btrfs (rw,relatime,space_cache)
/dev/sda2 on /var/lib/pgsql type btrfs (rw,relatime,space_cache)
/dev/sda2 on /var/log type btrfs (rw,relatime,space_cache)
/dev/sda2 on /var/lib/named type btrfs (rw,relatime,space_cache)
/dev/sda2 on /var/lib/mailman type btrfs (rw,relatime,space_cache)
/dev/sda2 on /var/crash type btrfs (rw,relatime,space_cache)
/dev/sda2 on /usr/local type btrfs (rw,relatime,space_cache)
/dev/sda2 on /tmp type btrfs (rw,relatime,space_cache)
/dev/sda2 on /srv type btrfs (rw,relatime,space_cache)
/dev/sda2 on /opt type btrfs (rw,relatime,space_cache)
/dev/sda2 on /boot/grub2/x86_64-efi type btrfs (rw,relatime,space_cache)
/dev/sda2 on /boot/grub2/i386-pc type btrfs (rw,relatime,space_cache)
/dev/sda3 on /home type xfs (rw,relatime,attr2,inode64,noquota)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
none on /var/lib/ntp/proc type proc (ro,nosuid,nodev,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdb3 on /run/media/markus/801dc67f-5765-4b7f-9ca9-f34f31f1039f type ext3 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)

fstab


cat /etc/fstab
UUID=785017af-d000-4c4d-984c-66a6c025ed57 swap swap defaults 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 / btrfs defaults 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /boot/grub2/i386-pc btrfs subvol=boot/grub2/i386-pc 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /boot/grub2/x86_64-efi btrfs subvol=boot/grub2/x86_64-efi 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /opt btrfs subvol=opt 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /srv btrfs subvol=srv 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /tmp btrfs subvol=tmp 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /usr/local btrfs subvol=usr/local 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /var/crash btrfs subvol=var/crash 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /var/lib/mailman btrfs subvol=var/lib/mailman 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /var/lib/named btrfs subvol=var/lib/named 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /var/lib/pgsql btrfs subvol=var/lib/pgsql 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /var/log btrfs subvol=var/log 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /var/opt btrfs subvol=var/opt 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /var/spool btrfs subvol=var/spool 0 0
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /var/tmp btrfs subvol=var/tmp 0 0
UUID=7d475d49-71f4-4018-a715-c344d99d7334 /home xfs defaults 1 2
UUID=4ef1b6a7-7c45-4580-8bc1-5aac3e1197d0 /.snapshots btrfs subvol=.snapshots 0 0

fdisk -l


fdisk -l

Festplatte /dev/sda: 465,8 GiB, 500107862016 Bytes, 976773168 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 4096 Bytes
E/A-Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0x0008420e

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048   4196351   4194304     2G 82 Linux swap / Solaris
/dev/sda2  *      4196352 127076351 122880000  58,6G 83 Linux
/dev/sda3       127076352 782436351 655360000 312,5G 83 Linux
/dev/sda4       782436352 976773119 194336768  92,7G  7 HPFS/NTFS/exFAT

Festplatte /dev/sdb: 298,1 GiB, 320072932864 Bytes, 625142447 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0xb03e7563

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sdb1           2048  20973567  20971520    10G 12 Compaq diagnostics
/dev/sdb2       20973568  25167871   4194304     2G 82 Linux swap / Solaris
/dev/sdb3  *    25167872  77596671  52428800    25G 83 Linux
/dev/sdb4       77596672 625142447 547545776 261,1G 83 Linux