On 08/29/2013 09:26 AM, Greg Woods wrote:
<>
If the file system is ext2, ext3, or ext4, then the UUID for a file
system on a physical or LVM device can be printed with UUID:
# tune2fs -l /dev/sda1
or
# tune2fs -l /dev/mapper/ROOT-ROOT
(change device names as appropriate for your system)
you reminded me of what i did not recall and after running command, i recall
why i do not use it. :=(
[geo@localhost Documents]$ tune2fs -l /dev/sdb3
tune2fs 1.41.12 (17-May-2010)
tune2fs: Permission denied while trying to open /dev/sdb3
Couldn't find valid filesystem superblock.
[geo@localhost Documents]$ tune2fs -l /dev/sdb5
tune2fs 1.41.12 (17-May-2010)
tune2fs: Permission denied while trying to open /dev/sdb5
Couldn't find valid filesystem superblock.
[geo@localhost Documents]$ ls /dev/mapper
control
[geo@localhost Documents]$ dfs
/dev/sdb3 10317860 7525200 2687852 74% /
/dev/sdb5 21931908 20208072 609676 98% /home
[geo@localhost Documents]$
"dfs" is a script i built to get a clean view of drives.
#!/bin/sh
#### fn= dfs .2008.1223.2341
## use= show disk usage in dev order
df -B 1024|grep /dev/sd|sort
and;
[geo@localhost Documents]$ ll /dev/sd[ab]?
brw-rw----. 1 root disk 8, 1 Aug 26 09:45 /dev/sda1
brw-rw----. 1 root disk 8, 2 Aug 26 09:45 /dev/sda2
brw-rw----. 1 root disk 8, 17 Aug 26 09:45 /dev/sdb1
brw-rw----. 1 root disk 8, 18 Aug 26 09:45 /dev/sdb2
brw-rw----. 1 root disk 8, 19 Aug 26 09:45 /dev/sdb3
brw-rw----. 1 root disk 8, 20 Aug 26 09:45 /dev/sdb4
brw-rw----. 1 root disk 8, 21 Aug 26 09:45 /dev/sdb5
brw-rw----. 1 root disk 8, 22 Aug 26 09:45 /dev/sdb6
[geo@localhost Documents]$
--Greg
--
peace out.
in a world with out fences, who needs gates.
sl6.3 linux
tc.hago.
g
.