[opensuse] inserting an old ATA Hard Disk prevents booting system
Hello List - in case of interest : my root partition is on SATA Hard Disk /dev/sda1 & home partition is on SATA Hard Disk /dev/sda2 ............... whereas until now, all booted normally, this week when i insert an old ATA Hard Disk for a weekly backup, it causes booting to be unable to mount home partition on SATA Hard Disk /dev/sda2 ................... - have had a look at BIOS which sees old ATA Hard Disk all right - maybe this prevention of booting system is a side-effect of old ATA disk's demise? ............ regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 18/02/14 12:57, ellanios82 wrote:
Hello List
- in case of interest :
my root partition is on SATA Hard Disk /dev/sda1 & home partition is on SATA Hard Disk /dev/sda2
...............
whereas until now, all booted normally, this week when i insert an old ATA Hard Disk for a weekly backup, it causes booting to be unable to mount home partition on SATA Hard Disk /dev/sda2
...................
- have had a look at BIOS which sees old ATA Hard Disk all right
What "mode" does the SATA interface use? It could be AHCI or IDE Compatibility - changing from one to the other is likely to cause boot problems, as can having an IDE device attached when in AHCI mode.
- maybe this prevention of booting system is a side-effect of old ATA disk's demise?
Or maybe the presence of the old HDD changes the device enumeration - does the BIOS enumerate IDE before or after SATA, for example. Dylan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2014-02-18 13:57, ellanios82 wrote:
Hello List
- in case of interest :
my root partition is on SATA Hard Disk /dev/sda1 & home partition is on SATA Hard Disk /dev/sda2
...............
whereas until now, all booted normally, this week when i insert an old ATA Hard Disk for a weekly backup, it causes booting to be unable to mount home partition on SATA Hard Disk /dev/sda2
Only home fails? Is your home mounted by label or uuid? Do you have the same partition label or uuid on that old backup disk? Collision :-) - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlMDY1gACgkQja8UbcUWM1wS6gD9Hofo0yLnqE+u46m/u7uKvhxM BJPFu7sKZC5+iH4APtcA/i2TGbXg1iMhiAe6XeKXMn2tsKrrepdTN8nhQlwy+khb =9rAt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-02-18 14:42 (GMT+0100) Carlos E. R. composed:
ellanios82 wrote:
- in case of interest :
my root partition is on SATA Hard Disk /dev/sda1 & home partition is on SATA Hard Disk /dev/sda2
whereas until now, all booted normally, this week when i insert an old ATA Hard Disk for a weekly backup, it causes booting to be unable to mount home partition on SATA Hard Disk /dev/sda2
Only home fails?
Is your home mounted by label or uuid? Do you have the same partition label or uuid on that old backup disk?
Collision :-)
IOW, OP should fix his fstab so that all partition entries are completely unique, preferably without using device names. Unique labels on the partitions is typically the humanly easiest to manage, memorable, unlike UUIDs. e.g. traditional syntax: LABEL=sata01root / ext4 ... LABEL=sata03home /home ext4 ... LABEL=pata01oldroot /media/oldroot ext3 ... LABEL=pata03oldhome /media/oldhome ext3 ... newer syntax: /dev/disk/by-label/sata01root / ext4 ... /dev/disk/by-label/sata03home /home ext4 ... /dev/disk/by-label/pata01oldroot /media/oldroot ext3 ... /dev/disk/by-label/pata03oldhome /media/oldhome ext3 ... -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/19/2014 05:51 AM, Felix Miata wrote:
newer syntax: /dev/disk/by-label/sata01root / ext4 ... /dev/disk/by-label/sata03home /home ext4 ... /dev/disk/by-label/pata01oldroot /media/oldroot ext3 ... /dev/disk/by-label/pata03oldhome /media/oldhome ext3 ...
___________ am unsure if i have syntax correct : do i need to write "by-label" or does the following syntax look all right ?? " ................ /dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root / ext4 defaults 1 1 /dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata02home /home ext4 acl,user_xatttr 1 2 .................... thanks -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2014-02-20 14:48, ellanios82 wrote:
am unsure if i have syntax correct : do i need to write "by-label" or does the following syntax look all right ?? "
................
/dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root / ext4 defaults 1 1 /dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata02home /home ext4 acl,user_xatttr 1 2
....................
Does "/dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root" exist? Check yourself, it answers your question :-) - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlMGC3IACgkQja8UbcUWM1wQEgD9EDIM2fxnQUw70Eexn593E3vy egfUxG0L9vqZ1aJ/S9YA/3scmpEk8D2Pm0moFTZQafhBLB+tdUgMegckKZZbDnVk =Yxmq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/20/2014 04:04 PM, Carlos E. R. wrote:
Does "/dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root" exist?
- what please is the command to determine what exists ? thanks -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/20/2014 10:00 AM, ellanios82 pecked at the keyboard and wrote:
On 02/20/2014 04:04 PM, Carlos E. R. wrote:
Does "/dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root" exist?
- what please is the command to determine what exists ?
thanks
ll /dev/disk/by-id/ -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2014-02-20 16:00, ellanios82 wrote:
On 02/20/2014 04:04 PM, Carlos E. R. wrote:
Does "/dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root" exist?
- what please is the command to determine what exists ?
Just a directory listing. How do you get them? Use nautilus, for instance. Or dolphin. Or: ls -l /dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root Do you get the file, or an error? - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlMGRakACgkQja8UbcUWM1xEcgEAmXExz2u/Sf8s7yOSJCQY4DAU Wr33zlQ5JvdH1fyyz9IA/iT0zMC826RGv3W6ly+fjfyo1CeqIJUbM/ANyD6Ox+JV =1euI -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-02-20 17:00 (GMT+0200) ellanios82 composed:
Carlos E. R. wrote:
Does "/dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root" exist?
- what please is the command to determine what exists ?
Presumably you are trying to do this from a shell prompt instead of using a file manager in X, correct? You should try using an O.F.M. (e.g. midnight commander) to emulate a GUI file manager. So, the command would be: mc If this generates a command not found, then first do zypper in mc Now after starting mc, you navigate to /dev/disk/ using either normal shell cd/navigation syntax, or "graphically" using keyboard <enter> and navigation keys, where you will see: by-id by-label by-path by-uuid Any of the names ending with a number found in those 4 directories will be valid labels in fstab, as long as you remember to prepend the path to the name you see in each list. If the quantity of names in by-label is shorter than in the others, it likely means volume labels have not been assigned to all volumes. You can assign names to filesystems listed in the other three using the YaST partitioner, or if using EXT2/3/4 filesystems using the tune2fs command, or for other filesystems using the tool appropriate for the filesystem. e.g. for a 2TB samsung HD you might assign a label thus: # tune2fs -L smsg2t02home /dev/sda2 Then your fstab entry could be /dev/disk/by-label/smsg2t02home /home ext4 relatime,acl 1 2 Because you get to chose labels, you can remember and type them much easier than the much longer entries in by-id, by-path or by-uuid. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/20/2014 08:17 PM, Felix Miata wrote:
On 2014-02-20 17:00 (GMT+0200) ellanios82 composed:
Carlos E. R. wrote:
Does "/dev/disk/scsi-1ATA_ST1000DM003-1CH162_Z1D8B9WD/sata01root" exist?
- what please is the command to determine what exists ?
Presumably you are trying to do this from a shell prompt instead of using a file manager in X, correct? You should try using an O.F.M. (e.g. midnight commander) to emulate a GUI file manager. So, the command would be:
mc
If this generates a command not found, then first do
zypper in mc
Now after starting mc, you navigate to /dev/disk/ using either normal shell cd/navigation syntax, or "graphically" using keyboard <enter> and navigation keys, where you will see:
by-id by-label by-path by-uuid
Any of the names ending with a number found in those 4 directories will be valid labels in fstab, as long as you remember to prepend the path to the name you see in each list.
If the quantity of names in by-label is shorter than in the others, it likely means volume labels have not been assigned to all volumes. You can assign names to filesystems listed in the other three using the YaST partitioner, or if using EXT2/3/4 filesystems using the tune2fs command, or for other filesystems using the tool appropriate for the filesystem.
e.g. for a 2TB samsung HD you might assign a label thus:
# tune2fs -L smsg2t02home /dev/sda2
Then your fstab entry could be
/dev/disk/by-label/smsg2t02home /home ext4 relatime,acl 1 2
Because you get to chose labels, you can remember and type them much easier than the much longer entries in by-id, by-path or by-uuid.
- many thanks regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Carlos E. R.
-
Dylan
-
ellanios82
-
Felix Miata
-
Ken Schneider - openSUSE