From: Osamu Aoki on
Hi,

Recent udev packges in squeeze/sid lack vol_id command since 22 Aug 2009
(146-1). What is the best way to obtain UUID of partition?

I could read it like ...

$ ls -l /dev/disk/by-uuid|grep sda4

Is this the best way? Any thoughts ?

Osamu


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100305123106.GA8376(a)osamu.debian.net
From: Constantine on
blkid

On Fri, Mar 5, 2010 at 3:31 PM, Osamu Aoki <osamu(a)debian.org> wrote:

> Hi,
>
> Recent udev packges in squeeze/sid lack vol_id command since 22 Aug 2009
> (146-1). What is the best way to obtain UUID of partition?
>
> I could read it like ...
>
> $ ls -l /dev/disk/by-uuid|grep sda4
>
> Is this the best way? Any thoughts ?
>
> Osamu
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster(a)lists.debian.org
> Archive: http://lists.debian.org/20100305123106.GA8376(a)osamu.debian.net
>
>
From: Arthur Marsh on
Constantine wrote, on 05/03/10 23:24:
> blkid
>
> On Fri, Mar 5, 2010 at 3:31 PM, Osamu Aoki <osamu(a)debian.org> wrote:
>
>> Hi,
>>
>> Recent udev packges in squeeze/sid lack vol_id command since 22 Aug 2009
>> (146-1). What is the best way to obtain UUID of partition?
>>
>> I could read it like ...
>>
>> $ ls -l /dev/disk/by-uuid|grep sda4
>>
>> Is this the best way? Any thoughts ?
>>
>> Osamu

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565124

man -k uuid

will *not* find the blkid man page )-:.

Also, how does one set the UUID of a currently in use swap partition
(such as one created before the mkswap command added a UUID by default)
*without* re-running mkswap?

Arthur.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/3ieh77-ct4.ln1(a)ppp121-45-136-118.lns11.adl6.internode.on.net
From: Ron Johnson on
On 2010-03-21 07:03, Arthur Marsh wrote:
> Constantine wrote, on 05/03/10 23:24:
>> blkid
>>
>> On Fri, Mar 5, 2010 at 3:31 PM, Osamu Aoki <osamu(a)debian.org> wrote:
>>
>>> Hi,
>>>
>>> Recent udev packges in squeeze/sid lack vol_id command since 22 Aug 2009
>>> (146-1). What is the best way to obtain UUID of partition?
>>>
>>> I could read it like ...
>>>
>>> $ ls -l /dev/disk/by-uuid|grep sda4
>>>
>>> Is this the best way? Any thoughts ?
>>>
>>> Osamu
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565124
>
> man -k uuid
>
> will *not* find the blkid man page )-:.
>
> Also, how does one set the UUID of a currently in use swap partition
> (such as one created before the mkswap command added a UUID by default)
> *without* re-running mkswap?
>

*You* should not need to set the UUID. It should just magically be
there.

$ /sbin/blkid -t TYPE=swap
/dev/sdb1: TYPE="swap" LABEL="swap1" \
UUID="c69f59ff-b928-4232-b44c-8da0f12c52db"


Or did my (regularly updated Sid) system "get what it needed" before
Aug-2009?

--
Obsession with "preserving cultural heritage" is a racist impediment
to moral, physical and intellectual progress.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BA61508.8060007(a)cox.net
From: Tom H on
>>>> Recent udev packges in squeeze/sid lack vol_id command since 22 Aug 2009
>>>> (146-1).  What is the best way to obtain UUID of partition?
>>>> I could read it like ...
>>>> $ ls -l /dev/disk/by-uuid|grep sda4
>>>> Is this the best way?  Any thoughts ?

>>> blkid

>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565124
>> man -k uuid
>> will *not* find the blkid man page )-:.

>> Also, how does one set the UUID of a currently in use swap partition (such
>> as one created before the mkswap command added a UUID by default) *without*
>> re-running mkswap?

> *You* should not need to set the UUID.  It should just magically be there.
> $ /sbin/blkid -t TYPE=swap
> /dev/sdb1: TYPE="swap" LABEL="swap1" \
> UUID="c69f59ff-b928-4232-b44c-8da0f12c52db"

You can cnahe the UUID of any ext partition with
tune2fs -U <uuid> /dev/...
but you then have to edit the fstab(s) that mount that partition with
a UUID and the menu.lst/grub.cfg that refers to that partition with a
UUID.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/6d4219cc1003210842h6f15734co48bba6691932a437(a)mail.gmail.com