Find UUID & mount the file system
acb:~ # blkid
/dev/sdk1: UUID="57c5a0f3-ba9c-40bb-ab13-1520a7667d5f" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda1: UUID="e446ceab-b704-4b22-91d1-b5eb84c4f4b5" TYPE="swap"
/dev/sdi1: UUID="1b8c1063-4fdd-4606-859a-44e840935cf4" TYPE="ext3"
/dev/sda2: UUID="19e8e2fb-1eb3-4376-8c0f-9b646969c75a" TYPE="ext3"
/dev/sdd1: UUID="97f10709-c33e-4232-8235-6b26eb4ec185" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc1: UUID="1b8c1063-4fdd-4606-859a-44e840935cf4" TYPE="ext3"
/dev/sdf1: UUID="1b8c1063-4fdd-4606-859a-44e840935cf4" TYPE="ext3"
/dev/sdg1: UUID="97f10709-c33e-4232-8235-6b26eb4ec185" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdj1: UUID="97f10709-c33e-4232-8235-6b26eb4ec185" SEC_TYPE="ext2" TYPE="ext3"
You have new mail in /var/mail/root
acb:~ # ls -l ../../sda2
ls: cannot access ../../sda2: No such file or directory
acb:~ # ls -l /dev/sda2
brw-rw---- 1 root disk 8, 2 Jul 24 18:02 /dev/sda2
acb:~ # ln -s /dev/disk/by-uuid/57c5a0f3-ba9c-40bb-ab13-1520a7667d5f /dev/sdk1
ln: creating symbolic link `/dev/sdk1': File exists
acb:~ # ln -s /dev/sdk1 /dev/disk/by-uuid/57c5a0f3-ba9c-40bb-ab13-1520a7667d5f
acb:~ # mount /dev/disk/by-uuid/57c5a0f3-ba9c-40bb-ab13-1520a7667d5f /mnt/hmc
Second way to do mount
UUID=57c5a0f3-ba9c-40bb-ab13-1520a7667d5f /mnt/test ext3 defaults 0 0
/dev/sdk1: UUID="57c5a0f3-ba9c-40bb-ab13-1520a7667d5f" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda1: UUID="e446ceab-b704-4b22-91d1-b5eb84c4f4b5" TYPE="swap"
/dev/sdi1: UUID="1b8c1063-4fdd-4606-859a-44e840935cf4" TYPE="ext3"
/dev/sda2: UUID="19e8e2fb-1eb3-4376-8c0f-9b646969c75a" TYPE="ext3"
/dev/sdd1: UUID="97f10709-c33e-4232-8235-6b26eb4ec185" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc1: UUID="1b8c1063-4fdd-4606-859a-44e840935cf4" TYPE="ext3"
/dev/sdf1: UUID="1b8c1063-4fdd-4606-859a-44e840935cf4" TYPE="ext3"
/dev/sdg1: UUID="97f10709-c33e-4232-8235-6b26eb4ec185" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdj1: UUID="97f10709-c33e-4232-8235-6b26eb4ec185" SEC_TYPE="ext2" TYPE="ext3"
You have new mail in /var/mail/root
acb:~ # ls -l ../../sda2
ls: cannot access ../../sda2: No such file or directory
acb:~ # ls -l /dev/sda2
brw-rw---- 1 root disk 8, 2 Jul 24 18:02 /dev/sda2
acb:~ # ln -s /dev/disk/by-uuid/57c5a0f3-ba9c-40bb-ab13-1520a7667d5f /dev/sdk1
ln: creating symbolic link `/dev/sdk1': File exists
acb:~ # ln -s /dev/sdk1 /dev/disk/by-uuid/57c5a0f3-ba9c-40bb-ab13-1520a7667d5f
acb:~ # mount /dev/disk/by-uuid/57c5a0f3-ba9c-40bb-ab13-1520a7667d5f /mnt/hmc
Second way to do mount
Comments
Post a Comment