LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-04-2008, 05:19 PM   #1
brianpbarnes
Member
 
Registered: Dec 2005
Posts: 143

Rep: Reputation: 15
Random device letters assigned on Ubuntu 8.04?


Hi,
I have 4 hard drive subsystems (not counting nfs, usb or cifs).
When I use /dev/sda etc. in /etc/fstab, any one of the 4 random drives gets assigned to /dev/sda. At boot time, it often crashes because it can't find the partitions.

I have to login in single user mode as root, look at gparted to find out where my devices wound up today and then edit /etc/fstab with the current device letters.

Then, I discovered vol_id which returns something like:
ID_FS_UUID=c06dd2cb-1a34-4133-8f74-582893877c42
Since I got rid of the /dev/sd?? convention in favor of the UUID scheme, the booting partitions and mounts have worked flawlessly.

However, I am trying to get suspend/hibernate to work and it complains that I don't have any valid swap devices. Swapon sees them.

Is it my BIOS, firmware, Ubuntu or gremlins which are monkeying with my device assignments? Is there a way to get s2both/s2disk to understand the weird UUID method of swap assignment?

Thank you,
BrianP


root@godzilla2:/tera/nt.snap# swapon -s
Filename Type Size Used Priority
/dev/sda3 partition 8393952 2811980 -1
/dev/sdb3 partition 8193140 0 -2
/dev/sdc3 partition 9084748 0 -3

root@godzilla2:/tera/nt.snap# grep swap /etc/fstab
UUID=7356e42c-2aa3-46ca-aacf-6efdd1cfec18 none swap sw 0 0
UUID=8e4a7444-6e14-49f7-81ee-190534eeacb5 none swap sw 0 0
UUID=9152f370-051a-497f-a4bf-3f5a679acb7e none swap sw 0 0

root@godzilla2:/tera/nt.snap# alias df; df
alias df='df -h | grep dev/sd | sort'
/dev/sda1 2.0G 128M 1.8G 7% /boot
/dev/sda2 40G 8.9G 29G 24% /
/dev/sda4 228G 65G 152G 31% /home
/dev/sdb1 20G 66M 20G 1% /mnt/ntsys
/dev/sdb2 293G 3.6G 290G 2% /mnt/ntdat
/dev/sdb4 274G 20G 241G 8% /home2
/dev/sdc1 39G 3.7G 34G 11% /sys3
/dev/sdc2 877G 166G 668G 20% /tera
/dev/sdd1 2.6T 487G 2.0T 20% /r5
 
Old 12-04-2008, 06:26 PM   #2
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I may be wrong but I think you need to specify a "resume=[UUID]" in your grub menu.lst.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB HD being assigned different device names neddis Linux - Hardware 1 11-11-2007 11:22 AM
random letters pixellany Programming 15 07-14-2007 08:05 AM
Cannot read CD - no device assigned? arobinson74 Linux - Hardware 2 01-16-2006 07:47 PM
Broken Fedora Version? (National letters get messed up, random times) blackman890 Fedora 1 06-27-2005 07:51 AM
Fuji M603, SCSI device not assigned via USB anotherlimey Linux - Laptop and Netbook 5 03-14-2004 02:13 AM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration