[YLUG] fstab
Harry Mills
mail at hjmills.co.uk
Mon Jan 26 01:31:30 UTC 2009
Hi,
You can find the UUID of a volume using the vol_id command. For example,
to find the UUID of /dev/sda1 on my system I do the following:
$ sudo vol_id /dev/sda1
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=0b3eb0fe-d708-4427-a0bb-cd3249e45070
ID_FS_UUID_ENC=0b3eb0fe-d708-4427-a0bb-cd3249e45070
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=
So I can see the UUID I need to use in /etc/fstab is
"0b3eb0fe-d708-4427-a0bb-cd3249e45070". Note that for other filesystems
this number may be quite different, for example NTFS drives will look
more like:
ID_FS_USAGE=filesystem
ID_FS_TYPE=ntfs
ID_FS_VERSION=3.1
ID_FS_UUID=BE507CCB507C8BC1
ID_FS_UUID_ENC=BE507CCB507C8BC1
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=
Regards,
On Sun, 2009-01-25 at 18:49 +0000, Patrick Dupre wrote:
> With fedora 10, my /etc/fstab file is changed to a new one sometime
> and I do not have the control.
> Typically, I setup:
> /dev/sda4 / ext3 defaults 1 1
>
> and it becomes:
>
> UUID=6fd6f636-bc27-4caf-a9b4-f36fb78f281b / ext3 defaults 1
> 1
>
> It may be due because I am using lvm.
>
> How can I generate a new /etc/fstab with the UUID= from a /dev/sdax ?
> It may also be related to initrd because it look like that initrd
> contains also the te UUID for swap and /
>
> Thank
>
> --
> ---
> ==========================================================================
> Patrick DUPRÉ | |
> Department of Chemistry | | Phone: (44)-(0)-1904-434384
> The University of York | | Fax: (44)-(0)-1904-432516
> Heslington | |
> York YO10 5DD United Kingdom | | email: pd520 at york.ac.uk
> ==========================================================================
> _______________________________________________ York mailing list York at lists.lug.org.uk https://mailman.lug.org.uk/mailman/listinfo/york
--
Harry Mills <mail at hjmills.co.uk>
More information about the York
mailing list