-   Linux - Hardware (
-   -   appropiate fstab entries -- How to use labels (

jimieee 10-30-2003 11:10 AM

appropiate fstab entries -- How to use labels

I'm about to do a major 'reshuffle' of the partitions on my Compaq (Proliant DL360 G2) server with a scsi raid (cciss). I'm mostly happy with the procedure from reading the parted manuals, but I'm not sure how to update my fstab afterwards, I'd better use some examples to explain:

At the moment partition entries in my fstab are identified by labels, for example:

LABEL=/home /home ext3 usrquota,grpquota,defaults 1 2

However, in parted I have no identifiers for the corresponding partitions. For example (I only included the same partition here):

Minor Start End Type Filesystem Flags
5 11865.484 16718.437 logical ext3

However if I do 'df -h' disks are identified 'normally' - in /dev/ E.g:

Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p5 4.7G 2.9G 1.6G 64% /home

I'd like to just use labels again, as it'll make life a bit easier. My worry is, how will I know which partitions have which labels? The desired result I want involves deleting some of the labelled partitions and I'm not sure what exactly will happen if Linux tries to load my swap as a root partition, or such like, but I'm pretty sure will give me a headache!



TheOneKEA 10-30-2003 11:15 AM

Use the e2label(8) command to display the labels on the interesting partitions. For example,

[user@JamesBox user]$ e2label /dev/cciss/c0d0p5
[user@JamesBox user]$

(That may not be its output; I've never used this program)

Here's the man page:

jimieee 10-31-2003 04:29 AM

Wooo groovy little command, had a play with it and now I'm happy.



All times are GMT -5. The time now is 01:43 PM.