You are not logged in.

#1 2006-10-16 10:03:17

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

New HOWTO: Persistant block device naming

Hey folks,

I created a new howto for you to make your system more reliable in the future and/or make use of some fancy new udev features. Read the new Persistant block device naming HOWTO.

Have fun.

Offline

#2 2006-10-16 19:08:35

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: New HOWTO: Persistant block device naming

Read it. Good stuff, thanks.

One question, though - do I need to do something to get /dev/disk/by-label? At the moment, I have this:

$ ll /dev/disk/
total 0
drwxr-xr-x  5 root root 0 2006-10-16 21:34 .
drwxr-xr-x 19 root root 0 2006-10-16 19:36 ..
drwxr-xr-x  2 root root 0 2006-10-16 21:34 by-id
drwxr-xr-x  2 root root 0 2006-10-16 21:34 by-path
drwxr-xr-x  2 root root 0 2006-10-16 21:34 by-uuid

Offline

#3 2006-10-16 19:12:57

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: New HOWTO: Persistant block device naming

There has to be at least one disk with a label for by-label to show up.

BTW, don't add the new names to the bootloader yet. I thought klibc-udev was fixed to support it, but right now it isn't. I hope I can get the proper fixes into 101-3.

Offline

#4 2006-10-16 19:36:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: New HOWTO: Persistant block device naming

brain0 wrote:

There has to be at least one disk with a label for by-label to show up.

BTW, don't add the new names to the bootloader yet. I thought klibc-udev was fixed to support it, but right now it isn't. I hope I can get the proper fixes into 101-3.

Did I break it? :oops:

Offline

#5 2006-10-16 19:36:31

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: New HOWTO: Persistant block device naming

Thanks - that makes sense.

Offline

#6 2006-10-16 19:55:30

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: New HOWTO: Persistant block device naming

xfs_admin -L label <device> works for xfs, reiserfstune -l label <device> for reiserfs and jfs_tune -L label <device> for jfs.

Offline

#7 2006-10-16 20:24:41

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: New HOWTO: Persistant block device naming

@lucke: thanks, added it. btw, it's a wiki, you could have added the commands yourself
@phrakture: yes, you did smile

klibc-udev 101-3 should work with by-uuid and by-label now, I'll test myself later.
EDIT: Okay, tested, works now.

Offline

#8 2006-10-16 21:05:56

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

Re: New HOWTO: Persistant block device naming

SUCCESS!!!  I got it to work, just don't be dumb like me and forget to rebuild for initrd images.

Offline

Board footer

Powered by FluxBB