Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running into a very odd problem: When I resume Mint 14 from suspend, one of my drives (/dev/sdc) changes letter / device file name (to /dev/sdd). fdisk -l shows that it has the same partitions, but anything mounted to it becomes inaccessible (even though they are mounted by UUID).

This started happening after I installed another drive, which ended up becoming /dev/sda.

Any ideas what's going on?

share|improve this question
    
Is sdc a normal SATA drive or a USB drive? –  Hauke Laging Feb 25 '13 at 0:59
    
@HaukeLaging It's a SATA drive. –  Jeremy Feb 25 '13 at 1:13
    
Can you provide dmesg output after resuming? Just enough to include messages from when the system was going into suspend, and then after waking. –  Patrick Oct 8 '13 at 12:30
add comment

1 Answer 1

For a very long time now, device names aren't stable. Many times they seem to be (because by chance they get asigned the same name each time, as the device enumeration is mostly deterministic).

Just live with it, mount your devices by UUID.

share|improve this answer
4  
I am afraid you have to read better what he wrote. –  Hauke Laging Feb 25 '13 at 1:00
    
@HaukeLaging, I did read what OP wrote. When the kernel starts, it enumerates the devices, and they show up in the order in which they "wake up" (and get asigned names in that order). Clear now? –  vonbrand Feb 25 '13 at 1:04
    
@vonbrand I don't actually care that it changes letter, but I can't read anything mounted on that drive after this happens (even though it's mounted by UUID). –  Jeremy Feb 25 '13 at 1:12
4  
@vonbrand Hard to believe. You tell the OP to mount by UUID though he told us that he did right that. Changing major/minor numbers after suspend is inacceptable in all cases and obviously a kernel bug. –  Hauke Laging Feb 25 '13 at 1:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.