hallo erstmal,
mein problem ist, dass meine festplatten seit kurzem in der 'falschen' reihenfolge erkannt und benannt werden. dh. was eigentlich immer /dev/sda war, ist jetzt plötzlich /dev/sdb, und /dev/sdb ist /dev/sda. dass passiert aber scheinbaar zufällig, manchmal ist es richtig, manchmal falsch. wenns falsch ist komme ich in den emergency mode. journalctl gibt dann das hier aus:
# journalctl -xb | tail -n 503 | head -n 64
-- Subject: Unit dev-sda1.device has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dev-sda1.device has finished starting up.
--
-- The start-up result is done.
Apr 06 15:31:54 ritka systemd[1]: Starting File System Check on /dev/sda1...
-- Subject: Unit systemd-fsck@dev-sda1.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-fsck@dev-sda1.service has begun starting up.
Apr 06 15:31:54 ritka systemd-fsck[428]: /sbin/fsck.ntfs doesn't exist, not checking file system.
Apr 06 15:31:54 ritka systemd[1]: Started File System Check on /dev/sda1.
-- Subject: Unit systemd-fsck@dev-sda1.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-fsck@dev-sda1.service has finished starting up.
--
-- The start-up result is done.
Apr 06 15:31:54 ritka systemd[1]: Mounting /boot...
-- Subject: Unit boot.mount has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit boot.mount has begun starting up.
Apr 06 15:31:54 ritka mount[431]: mount: wrong fs type, bad option, bad superblock on /dev/sda1,
Apr 06 15:31:54 ritka mount[431]: missing codepage or helper program, or other error
Apr 06 15:31:54 ritka mount[431]: In some cases useful info is found in syslog - try
Apr 06 15:31:54 ritka mount[431]: dmesg | tail or so.
Apr 06 15:31:54 ritka kernel: EXT4-fs (sda1): VFS: Can't find ext4 filesystem
Apr 06 15:31:54 ritka systemd[1]: boot.mount mount process exited, code=exited status=32
Apr 06 15:31:54 ritka systemd[1]: Failed to mount /boot.
-- Subject: Unit boot.mount has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit boot.mount has failed.
--
usw ...
fdisk -l sagt:
# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0x000afacc
Device Boot Start End Blocks Id System
/dev/sda1 63 971473929 485736933+ 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xd97ad97a
Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 979964 489951 83 Linux
/dev/sdb2 979965 16611209 7815622+ 82 Linux swap / Solaris
/dev/sdb3 16611210 211929479 97659135 83 Linux
/dev/sdb4 211931134 976771071 382419969 5 Extended
/dev/sdb5 211931136 504897535 146483200 83 Linux
Disk /dev/sdc: 232.9 GiB, 250059350016 bytes, 488397168 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
Disklabel type: dos
Disk identifier: 0x000d8b47
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 204799999 102398976 7 HPFS/NTFS/exFAT
/dev/sdc2 204800000 488396799 141798400 7 HPFS/NTFS/exFAT
abder mein /etc/fstab sieht eigentlich so aus:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 /boot ext4 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 0 1
/dev/sda5 /home ext4 defaults 0 1
/home/.ecryptfs/ritka/.Private /home/ritka ecryptfs rw,user,relatime,noauto,exec,ecryptfs_fnek_sig=b3328a3cb84e2beb,ecryptfs_sig=b3328a3cb84e2beb,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough,ecryptfs_unlink_sigs 0 0
was also eigentlich /dev/sda sein sollte ist hier /dev/sdb
deshalb meine frage: kann ich irgendwie festlegen, dass meine systemplatte (sda) auch immer sda ist? oder gibt es noch andere lösungen?
danke schonmal und viele grüße,
ritka