SCIENTIFIC-LINUX-USERS Archives

December 2013

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Konstantin Olchanski <[log in to unmask]>
Reply To:
Konstantin Olchanski <[log in to unmask]>
Date:
Mon, 9 Dec 2013 11:58:27 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
On Mon, Dec 09, 2013 at 11:35:03AM -0800, ToddAndMargo wrote:
> 
> Bug 836696 has been driving me nuts for years.  This is
> where you drop to fsck on boot for the backup drive,
> but you can't do anything with the drive when you get
> to maintenance mode.
> 
> And, I finally figured out what is causing this.  My
> OS and my backup drive's devices are randomly reversing
> themselves at boot.  For details, see comment #37:
> 
>     https://bugzilla.redhat.com/show_bug.cgi?id=836696#c37
> 
> Hope no one else has to figure this one out the hard way,
> as I did.
> 

Doh! This linux "feature" bites rookie and wizard all the same.

Linux assigns the sdN names in the order that devices are discovered
and this order is not deterministic - SCSI, SATA and USB may all be scanned
at the same time mixing up all the names each time. Mr. Torvalds cares
about this not one bit, he has only a single drive inside his mac air
and no usb ports to accidentally confuse things by leaving a usb drive
connected during reboot.

Therefore, on linux, you cannot put "/dev/sda1" & co into /etc/fstab.
You have to mount filesystems by UUID or by label. This was true and
worked quite well for ages now. (Even with IDE disks, the /dev/hda, /dev/hdb, etc
assignement was not super fixed - it depended on the order that IDE
host adapters were initialized and this order has been known to change
between different linux releases).

-- 
Konstantin Olchanski
Data Acquisition Systems: The Bytes Must Flow!
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada

ATOM RSS1 RSS2