-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Is there a program or method to display the labels of all partitions, regardless of partition type? For example, cfdisk does show them, but I don't want to enter the menu to get that info (rather, having to press a key to get out). - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD1PJHtTMYHG2NR9URAmIWAJ9JHYu2fl4zkjEwihEXRysFOsHbiACglsMt 89pQy7djfdUeC+Sj8f8WiSA= =zz3d -----END PGP SIGNATURE-----
On 1/23/06, Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
Is there a program or method to display the labels of all partitions, regardless of partition type?
For example, cfdisk does show them, but I don't want to enter the menu to get that info (rather, having to press a key to get out).
Are you looking for 'cfdisk -P srt <device>' ?
\Steve
--
Steve Graegert
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2006-01-23 at 16:35 +0100, Steve Graegert wrote:
Are you looking for 'cfdisk -P srt <device>' ?
It doesn't print the volume labels, either :-( - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD1XLotTMYHG2NR9URAgUNAJ4s3jc7J8eDyXl59rJbag81nGlgIgCgkxs2 9+pXWqecOabcrga+Ro2llo4= =9dzo -----END PGP SIGNATURE-----
Carlos E. R. wrote:
Is there a program or method to display the labels of all partitions, regardless of partition type?
For example, cfdisk does show them, but I don't want to enter the menu to get that info (rather, having to press a key to get out).
Maybe sfdisk instead? I use that for unattended partitioning etc. /Per Jessen, Zürich (-4.07 °C) -- http://www.spamchek.com/ - managed anti-spam and anti-virus solution. Let us analyse your spam- and virus-threat - up to 2 months for free.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2006-01-23 at 16:46 +0100, Per Jessen wrote:
Maybe sfdisk instead? I use that for unattended partitioning etc.
It doesn't print the labels. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD1XI2tTMYHG2NR9URAvWnAJ9swV176nUrb65dnN6vWkcXomGblACfbADx ZEmKieZOYmAbScg7DSymOTA= =wVuR -----END PGP SIGNATURE-----
Dear Per Jessen, I beleive what you are looking for is "parted" - If you use Yast2 partioning, you will see and be able to edit youir partition labels - no matter what type of File-System and whether Mount-ed or not. Yast2 partioning uses, I believe, QParted - the qt3-ed version of parted. For further information, please see "man parted" or "man qparted" --- also the wonders of /usr/share/doc/packages/parted/**. Hope this helps. Regards, Pim Dennendal, mailto:p.dennendal@scarlet.nl On Monday 23 January 2006 4:46 pm, Per Jessen wrote:
Carlos E. R. wrote:
Is there a program or method to display the labels of all partitions, regardless of partition type?
For example, cfdisk does show them, but I don't want to enter the menu to get that info (rather, having to press a key to get out).
Maybe sfdisk instead? I use that for unattended partitioning etc.
/Per Jessen, Zürich (-4.07 °C)
-- http://www.spamchek.com/ - managed anti-spam and anti-virus solution. Let us analyse your spam- and virus-threat - up to 2 months for free.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-01-24 at 11:46 +0100, Pim Dennendal wrote:
I beleive what you are looking for is "parted" - If you use Yast2 partioning, you will see and be able to edit youir partition labels - no matter what type of File-System and whether Mount-ed or not.
Yast does indeed show the labels, true. But I just tried "parted", and the print command doesn't print the labels. It even understand by "labels" as something very different than what I'm looking for: | mklabel label-type | Creates a new disklabel (partition table) of label-type. | label-type should be one of "bsd", "dvh", "gpt", "loop", | "mac", "mips", "msdos", "pc98" or "sun".
Yast2 partioning uses, I believe, QParted - the qt3-ed version of parted. For further information, please see "man parted" or "man qparted" --- also the wonders of /usr/share/doc/packages/parted/**.
There is no qparted file anywhere on SuSE 9.3 cfdisk does print the labels, but not when in command line mode ("cfdisk - -P r" or "cfdisk -P t") - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD1rQRtTMYHG2NR9URAi3xAJ4lFsZ4Ya90Jk8lKrodftNvfK8ZcACfZh5W c7SL56SWO90s0R+ipIHguEo= =qVC2 -----END PGP SIGNATURE-----
* Carlos E. R.
There is no qparted file anywhere on SuSE 9.3
I believe that he is referring to QTParted which is a qt graphical front end for parted. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-01-24 at 20:44 -0500, Patrick Shanahan wrote:
There is no qparted file anywhere on SuSE 9.3
I believe that he is referring to QTParted which is a qt graphical front end for parted.
I thought so, I also searched for that name; there is no such thing in the 9.3 DVD. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD1uZBtTMYHG2NR9URAnNkAJ99oaPHH3+1VYI0R5IVwqdIJGBdJQCfVTC8 syJTUZmMjCfXcarVZ+A0jaU= =JZXf -----END PGP SIGNATURE-----
* Carlos E. R.
I thought so, I also searched for that name; there is no such thing in the 9.3 DVD.
No, I am trying to build it for 9.0 atm, but am stopped: checking for lrelease... missing configure: error: *** lrelease (Qt translation compiler) not found. Please, reinstall Qt time marches on.... -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-01-24 at 22:46 -0500, Patrick Shanahan wrote:
* Carlos E. R.
[01-24-06 21:47]: I thought so, I also searched for that name; there is no such thing in the 9.3 DVD.
No, I am trying to build it for 9.0 atm, but am stopped: checking for lrelease... missing configure: error: *** lrelease (Qt translation compiler) not found. Please, reinstall Qt
I think it should be in qt3-devel-tools...rpm; at least it is in 9.3, acording to pin. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD2A64tTMYHG2NR9URAiTbAJ0aLscL+SbCXf0BgsKZsLUt3ckKHQCffN04 T9Hz48d7fwdonCHXQCOnCjc= =FfPO -----END PGP SIGNATURE-----
On Wed, 2006-01-25 at 03:45 +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Tuesday 2006-01-24 at 20:44 -0500, Patrick Shanahan wrote:
There is no qparted file anywhere on SuSE 9.3
I believe that he is referring to QTParted which is a qt graphical front end for parted.
I thought so, I also searched for that name; there is no such thing in the 9.3 DVD.
Perhaps a small expect script would do what you want. It does have a learn mode to create the script. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-01-24 at 23:19 -0500, Ken Schneider wrote:
Perhaps a small expect script would do what you want. It does have a learn mode to create the script.
Umm! Not worth the time... I hopped there would be a simple way to get that info, but not so. I can make do with cfdisk. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD2A88tTMYHG2NR9URAu9WAJ9E1qG62PJnuVZMUG+3YN88o0RcbACcCwWd NJXc1HeNVJY4wZ8TBeF3MCg= =qxjm -----END PGP SIGNATURE-----
Carlos E. R. wrote:
The Tuesday 2006-01-24 at 23:19 -0500, Ken Schneider wrote:
Perhaps a small expect script would do what you want. It does have a learn mode to create the script.
Umm! Not worth the time... I hopped there would be a simple way to get that info, but not so. I can make do with cfdisk.
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? For others to read up on, I found this short explanation: http://www.lissot.net/partition/ext2fs/labels.html /Per Jessen, Zürich (-1.19 °C) -- http://www.spamchek.com/ - managed anti-spam and anti-virus solution. Let us analyse your spam- and virus-threat - up to 2 months for free.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2006-01-26 at 08:32 +0100, Per Jessen 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. 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.
For others to read up on, I found this short explanation: http://www.lissot.net/partition/ext2fs/labels.html
I'll have a look. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD2M8/tTMYHG2NR9URAg9JAJ4zvs13lYwdk1y3E6NRVqv1jL748gCfaF6F T+LKvV/BMT3CDF/QasUy7KQ= =DJDq -----END PGP SIGNATURE-----
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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2006-01-26 at 16:48 +0100, Per Jessen wrote:
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.
Well, for xfs, "xfs-admin -l /dev/device" prints the label: nimrodel:~ # xfs_admin -l /dev/hdd8 label = "big_home" For reiserfs, it is included in the output of "debugreiserfs": nimrodel:~ # debugreiserfs /dev/hdd9 debugreiserfs 3.6.18 (2003 www.namesys.com) ... UUID: efbc7cab-455b-4b59-b37e-9d6b819725c3 LABEL: big_xtr
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.
Previously, I'd had to determine the partition type (file -s device), and then use a different command for each one. Too complex... I'm too lazy, I'll let it go. O:-) As I said, I can get the info with cfdisk with one extra keystroke. Thinking... The label must be stored in some standard place at the beginning of the partition, very easy to find by the "mount" command. Maybe with "dd" I could get it out, once I find out where that place is. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD2S2XtTMYHG2NR9URAugBAJsEWLHkDhfcSiQq3d+Ol6YT9SOk6ACfTRcC 3RhK1evjBcuTLBhTnxmbwrs= =mShd -----END PGP SIGNATURE-----
On Tue, 2006-01-24 at 11:46 +0100, Pim Dennendal wrote:
Dear Per Jessen,
I beleive what you are looking for is "parted" - If you use Yast2 partioning, you will see and be able to edit youir partition labels - no matter what type of File-System and whether Mount-ed or not.
Yast2 partioning uses, I believe, QParted - the qt3-ed version of parted. For further information, please see "man parted" or "man qparted" --- also the wonders of /usr/share/doc/packages/parted/**.
Yast partitioning seems crippled compared to PM. QTparted looks good but one feature lacking no conversion of logical to primary. Which do you prefer knoppix or Ubuntu for handling qtparted? -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
participants (7)
-
Carl William Spitzer IV
-
Carlos E. R.
-
Ken Schneider
-
Patrick Shanahan
-
Per Jessen
-
Pim Dennendal
-
Steve Graegert