From robert.clift at navy.mil Fri Jan 4 19:22:40 2013 From: robert.clift at navy.mil (Clift, Tom CIV NSWCDD, K55) Date: Fri, 4 Jan 2013 14:22:40 -0500 Subject: adding to fstab Message-ID: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> All, I have created a new partition on a spare drive and want to add it to the fstab. I basically see three(3) different ways to do it. All work but what is the preferred way. 1. Use Blkid 2. Use Label 3. Use physical device (/dev/sdb1) All seem to work fine.Any preference? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmitry at athabascau.ca Fri Jan 4 19:44:54 2013 From: dmitry at athabascau.ca (Dmitry Makovey) Date: Fri, 04 Jan 2013 12:44:54 -0700 Subject: adding to fstab In-Reply-To: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> References: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> Message-ID: <50E73136.4010003@athabascau.ca> On 01/04/2013 12:22 PM, Clift, Tom CIV NSWCDD, K55 wrote: > > All, I have created a new partition on a spare drive and want to add it to the fstab. I basically see three(3) different ways to do it. All work but what is the preferred way. > > 1. Use Blkid > 2. Use Label > 3. Use physical device (/dev/sdb1) > > All seem to work fine.Any preference? judging from recent discussions on Fedora forums and couple of other places it sounds like preference would be with blkid. However from experience, during recoveries you'd appreciate something shorter and concise (like physical device name)... Locating labels for devices when your system is half-broken was slightly more complicated for me (well, depending on RHEL release...) not sure if it helps any... -- Dmitry Makovey Web Systems Administrator Athabasca University (780) 675-6245 --- Confidence is what you have before you understand the problem Woody Allen When in trouble when in doubt run in circles scream and shout http://www.wordwizard.com/phpbb3/viewtopic.php?f=16&t=19330 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 253 bytes Desc: OpenPGP digital signature URL: From Thomas.Mehrkam at iongeo.com Fri Jan 4 19:48:06 2013 From: Thomas.Mehrkam at iongeo.com (Thomas Mehrkam) Date: Fri, 4 Jan 2013 13:48:06 -0600 Subject: adding to fstab In-Reply-To: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> References: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> Message-ID: I use physical device names for internal drives. For external raids etc. Things that may be swapped out I use the Label. From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Clift, Tom CIV NSWCDD, K55 Sent: Friday, January 04, 2013 1:23 PM To: redhat-sysadmin-list at redhat.com Subject: adding to fstab All, I have created a new partition on a spare drive and want to add it to the fstab. I basically see three(3) different ways to do it. All work but what is the preferred way. 1. Use Blkid 2. Use Label 3. Use physical device (/dev/sdb1) All seem to work fine.Any preference? ________________________________ This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify the sender and delete the original. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chad.Truhn at bowheadsupport.com Fri Jan 4 19:52:38 2013 From: Chad.Truhn at bowheadsupport.com (Truhn, Chad) Date: Fri, 4 Jan 2013 19:52:38 +0000 Subject: adding to fstab In-Reply-To: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> References: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> Message-ID: <8D8992C91E495A4FBD67801BAD24175D6529@UTSEXMB1.UIC.com> I would say "It depends". I am not an expert here, just my own opinion from my experiences. The benefit of using the label is that you are not 'hard coding' the system to mount a disk at a specified location or can be used as an alias of sorts. Using a label can be more flexible in dynamic environments where things can change. For example: There could be an environment where USB storage is randomly inserted in the system and rather than have the user's work through fdisk and decide which drive is which, label each partition with a label and have them mount it that way. I have seen FC attached drives from a SAN go a bit crazy with which device name they show up as that day (sdX, sdY, sdZ) due to the order they were loaded in and labels can also help in that scenario (though that is just a workaround to the 'real' issue). If you are on a desktop system and don't notice any problems I would say that you can use whatever your heart desires. I'm interested to hear if anyone else has other things to say as well since I have never really had a reason to use blkid. Chad ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [redhat-sysadmin-list-bounces at redhat.com] on behalf of Clift, Tom CIV NSWCDD, K55 [robert.clift at navy.mil] Sent: Friday, January 04, 2013 2:22 PM To: redhat-sysadmin-list at redhat.com Subject: adding to fstab All, I have created a new partition on a spare drive and want to add it to the fstab. I basically see three(3) different ways to do it. All work but what is the preferred way. 1. Use Blkid 2. Use Label 3. Use physical device (/dev/sdb1) All seem to work fine.Any preference? -------------- next part -------------- An HTML attachment was scrubbed... URL: From root at nachtmaus.us Sat Jan 5 04:10:34 2013 From: root at nachtmaus.us (david) Date: Fri, 4 Jan 2013 22:10:34 -0600 Subject: adding to fstab In-Reply-To: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> References: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> Message-ID: <01ea01cdeafa$9c85f240$d591d6c0$@nachtmaus.us> Using labels allows flexibility, and prevents you from getting "surprised" if your disks or disk slices get renumbered (for example, if you added a new device to the middle of a SCSI bus or LUNs on a SAN were scanned in in a different order). Additionally, labels help make your vfstab more self-documenting. Even better, don't deal with raw disk slices; give the disk over to a volume manager like Linux LVM or VxVM and give yourself the ability to grow and migrate filesystems as needed, and to maintain a consistent abstraction layer. -DTK From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Clift, Tom CIV NSWCDD, K55 Sent: Friday, January 04, 2013 1:23 PM To: redhat-sysadmin-list at redhat.com Subject: adding to fstab All, I have created a new partition on a spare drive and want to add it to the fstab. I basically see three(3) different ways to do it. All work but what is the preferred way. 1. Use Blkid 2. Use Label 3. Use physical device (/dev/sdb1) All seem to work fine.Any preference? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz45 at googlemail.com Sat Jan 5 20:43:54 2013 From: mschulz45 at googlemail.com (Martin Schulz) Date: Sat, 05 Jan 2013 21:43:54 +0100 Subject: adding to fstab In-Reply-To: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> References: <02CF0DE3-26BC-4BB1-9AF7-5B8ED1127654@mimectl> Message-ID: <50E8908A.1060906@googlemail.com> On 04.01.2013 20:22, Clift, Tom CIV NSWCDD, K55 wrote: > > All, I have created a new partition on a spare drive and want to add > it to the fstab. I basically see three(3) different ways to do it. All > work but what is the preferred way. > > 1. Use Blkid > 2. Use Label > 3. Use physical device (/dev/sdb1) > > All seem to work fine.Any preference? > > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list 5.1.2013 Hello Tom, I recommend you to go by UUID's (blkid as root) as on a particular disk this identifier won't change in case you alte your HD-setup, otherwise with devicenames (dev/sdXX) you can have an issue, as they will change if you regroup our harddisks. The UUID is unique for each drive. Have stable fun, DasEi, Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: