MAL - Memória Auxiliar do Lutieri

domingo, outubro 02, 2011

Managing File Systems

Volumes metadata:

# blkid
/dev/sda1: LABEL="Bootinho" UUID="7aa20f0f-49f4-4601-bd30-9067519bb6c5" TYPE="ext4"
/dev/sda2: UUID="sWPlWO-lcYm-SLk2-E5Ho-0a6T-kdBt-YZG79V" TYPE="LVM2_member"
/dev/mapper/vg_zeus-lv_root: UUID="0b494d0c-b2c2-4dbc-a73f-392bd4860ed4" TYPE="ext4"
/dev/mapper/vg_zeus-lv_swap: UUID="e6602180-14f2-4f22-811a-f9fedc7d0387" TYPE="swap"

Labeling a volume:


[root@zeus ~]# e2label /dev/sda1 Bootinho
OR
[root@zeus ~]# tune2fs -L booootinho /dev/sda1
tune2fs 1.41.12 (17-May-2010)
[root@zeus ~]# e2label /dev/sda1
booootinho
[root@zeus ~]#



Querying a volume's label
[root@zeus ~]# e2label /dev/sda1
Bootinho

Finding volumes with a specific name
[root@zeus ~]# findfs LABEL=Bootinho
/dev/sda1

Mount using volume's label

[root@zeus ~]# mount LABEL=Bootinho /boot/


Reparing an ext2/ext3/ext4 file system


[root@zeus ~]# umount /boot/
[root@zeus ~]# e2fsck -f /dev/sda1
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
booootinho: 38/128016 files (2.6% non-contiguous), 43796/512000 blocks


Resizing an ext2/ext3/ext4 file system
[root@zeus ~]# resize2fs -p /dev/sda1
resize2fs 1.41.12 (17-May-2010)
The filesystem is already 512000 blocks long.  Nothing to do!



0 Comentários:

Postar um comentário

<< Home



Chat with Lutieri G. B.

Subscribe in a reader