[ale] How to see and minipulate partition labels

Ryan Matteson matty91 at bellsouth.net
Sat Oct 5 10:43:50 EDT 2002


Does anyone happen to know how the kernel figures out
which label to use? If I have two disks, and I do a
dd if=/dev/hda of=/dev/hdb bs=1024, the labels should 
be identical on both drives. I am curious how it chooses 
/dev/hda1 over /dev/hdb2.

Thanks for any insight,
Ryan


On Fri, 2002-10-04 at 19:58, Keith Hopkins wrote:
> Michael D. Hirsch wrote:
> > I've noticed that recent distributions (RH 7.3, for instance) don't 
> > mount partitions in /etc/fstab acconding to the device, but by label.  
> > So, for instance, I have a line like:
> > LABEL=/var              /var                    ext3    defaults     1 2
> > in my /etc/fstab.
> > 
> > I can't figure out how to create labels, or even how to read them.  Is 
> > it a secret thing in fdisk or parted?  Which FM should I R?
> > 
> 
> ReiserFS also supports LABELS (and UUID) with their v3.6 disk format/toolset.
> 
> <-------------reiserfstune, 2002------------->
> reiserfsprogs 3.6.3
> 
> reiserfstune: Usage: reiserfstune [options]  device [block-count]
> 
> Options:
> 
>    -j | --journal-device file
>    --journal-new-device file
>    -o | --journal-new-offset N
>    -s | --journal-new-size N
>    -t | --transaction-max-size N
>    --no-journal-available
>    --make-journal-standard
>    -u | --uuid UUID|random
>    -l | --label LABEL
>    -f | --force
> 
> 
> -- 
> Lost in Tokyo,
>    Keith
> 
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
-- 
Ryan Matteson - UNIX Administrator
GPG ID: 7F89FE25 Ryan Matteson (Matty-GPG-2002) <matty91 at bellsouth.net>
Digitally Signed Public Key: http://www.daemons.net/~matty/public.txt
Fingerprint = 71D1 BA91 0F75 E79B BEFA  EC23 A02E D4C9 7F89 FE25

 This is a digitally signed message part




More information about the Ale mailing list