Re: [SLE] partition labels



Carlos E. R. wrote:

>> Carlos, try e2label. I did some googling - mostly because I didn't
>> really know anything about partition labelling - and labelling seems
>> to be tied into ext2/3 somehow?
>
> I know, that's what I use to create them on ext2/3 parts. But not on
> xfs, nor on reiserfs. Fortunately, yast does that fine.

Hmm, I wonder how it's done for other filesystems.

> What I wanted was a simple way to list all labels later. I use labels
> because in fstab I list labels instead of devices: this way, if I
> insert o remove a part., or move the disk, I don't have to edit fstab.

Yes, I'm beginning to understand the advantage. Well, how about
something like this:

while read maj min blks name rest
do
e2label /dev/$name
done < /proc/partitions

OK, you need to skip to two header lines, but I'm sure you can write a
fairly simple script starting with the above.


/Per Jessen, Zürich


--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: [SLE] partition labels
    ... > really know anything about partition labelling - and labelling seems to ... What I wanted was a simple way to list all labels later. ... remove a part., or move the disk, I don't have to edit fstab. ... Carlos Robinson ...
    (SuSE)
  • Re: [SLE] partition labels
    ... >> Perhaps a small expect script would do what you want. ... Carlos, try e2label. ... really know anything about partition labelling - and labelling seems to ... http://www.spamchek.com/ - managed anti-spam and anti-virus solution. ...
    (SuSE)