Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 10-30-2003, 10:10 AM   #1
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Rep: Reputation: 15
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!


Old 10-30-2003, 10:15 AM   #2
Registered: Oct 2003
Distribution: Debian GNU/Linux buster 10.4 (amd64) w/kernel 5.7.5
Posts: 298

Rep: Reputation: 30
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:
Old 10-31-2003, 03:29 AM   #3
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Original Poster
Rep: Reputation: 15
Wooo groovy little command, had a play with it and now I'm happy.




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
fstab file entries what do they mean? bgagnon SUSE / openSUSE 2 11-12-2004 02:23 PM
Entries in /etc/fstab kamransoomro84 Linux - General 6 05-05-2004 09:32 AM
If I move hd labels, what changes? fstab, grub.conf... soloist Linux - General 6 03-16-2004 10:31 AM
LABELs in /etc/fstab and grub.conf juggler Red Hat 1 09-28-2003 04:10 PM
Installing new harddisks...Questions about filesystems, labels and fstab needamiracle Linux - Hardware 5 09-23-2002 10:35 AM > Forums > Linux Forums > Linux - Hardware

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

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