LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
LinkBack Search this Thread
Old 10-30-2003, 10:10 AM   #1
jimieee
Member
 
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


Hi,

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!

Thanks,

~James~
 
Old 10-30-2003, 10:15 AM   #2
TheOneKEA
Member
 
Registered: Oct 2003
Location: Somewhere in Surrey
Distribution: Debian GNU/Linux 7.4.0 (amd64) w/kernel 3.13.0
Posts: 279

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
/home
[user@JamesBox user]$

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

Here's the man page:

http://node1.yo-linux.com/cgi-bin/ma...ommand=e2label(8)
 
Old 10-31-2003, 03:29 AM   #3
jimieee
Member
 
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.

Cheers,

James
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab file entries what do they mean? bgagnon Suse/Novell 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


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

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