K.S. Bhaskar on 8 Dec 2007 22:51:18 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Ubuntu & Drive Order

  • From: "K.S. Bhaskar" <bhaskar@bhaskars.com>
  • To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] Ubuntu & Drive Order
  • Date: Sat, 8 Dec 2007 17:51:12 -0500
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=xY0noUvE6zUOphzXTuMVBsk8CQwq99XGaPF9tgIP7Uc=; b=uzPDjMJQY0Y1T/6j/X8U7I3ip2fnoG6Qh3+E4HQOKmRWRFtZkP3c6Lo8RMTQbVsJ5YX920NmMSQiTH7XfmydeYgOpDImTASAdXraMtuhoIh+JIVqzzAJcshDaiIMicfTarfe7cRYhxnjszLLdiNO0+CvIGh/w3Jjf3H7jQJ221o=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

When you have a drive mounted, you can use vol_id to identify the UUID
of the file system.  Then modify the /etc/fstab entry for that file
system to identify it by UUID rather than by device+partition, e.g.:

kbhaskar@bhaskark:~$ sudo vol_id --uuid /dev/sda1
4dd1d683-189c-4ff1-91a9-f8b9e315022b
kbhaskar@bhaskark:~$ grep -i 4dd1d683-189c-4ff1-91a9-f8b9e315022b /etc/fstab
UUID=4dd1d683-189c-4ff1-91a9-f8b9e315022b /               jfs
defaults,errors=remount-ro 0       1

(Look out for line breaks - there are exactly 4 lines in the block above.)

-- Bhaskar

On Dec 8, 2007 5:19 PM,  <jazzman@exdomain.org> wrote:
> Sorry, this is new to me... how do I relate that to any given drive?
> Everytime I make a hardware change and reboot the drives get new /dev/sdX
> designations... Occasionally I'll also have a drive appear in the /dev/sdX
> listing but not be accessible...
>
> Any ideas? If this keeps reordering drives I don't think this raid array
> idea is going to work...
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug