On 07/08/11 20:59, Andy Smith wrote:
Hi Martin,
On Sun, Aug 07, 2011 at 08:52:39PM +0100, Martin Halford wrote:
My question is regarding replacing labels by
UUID's. Output of cat
/etc/fstab:
LABEL=root / ext3 defaults,relatime 0 1
/var/lib/swapfile swap swap defaults 0 0
proc /proc proc defaults,noexec,nosuid 0 0
Output of blkid:
/dev/xvda1: LABEL="/" UUID="09dd100a-4bfa-47c5-9c3e-559068bafb2c"
TYPE="ext3"
/dev/xvda2: UUID="195f7eaf-ec5e-4e3c-92d3-c0171200ff00" TYPE="swap"
/dev/xvda: LABEL="root" UUID="814d97eb-aee6-4af0-bc94-eb56188b65b5"
TYPE="ext3"
I'm a bit confused by the fact that blkid sees both xvda
and xvda1,
and that it thinks there is swap on xvda2 and well as on a swap file.
What is the output of "cat /proc/mounts" please?
Cheers,
Andy
Andy,
cat /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,size=10240k,mode=755 0 0
/dev/disk/by-label/root / ext3 rw,relatime,errors=continue,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
Thanks, Martin