Disk Managment
Disk Managment
Disk Managment
Disk Partitioning:-
1. Primary Partition In any hard disk you can create only 4 primary
partition
2. Extended Partition
Logical Partition
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda
(Device or resource busy). As a result, it may not reflect all of your changes
until after reboot.
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
or
[root@server1 ~]# init 6 …….<PRESS ENTER>
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
100744 inodes, 401409 blocks
20079 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
49 block groups
8192 blocks per group, 8192 fragments per group
2056 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185
#
# /etc/fstab
# Created by anaconda on Tue Jan 1 09:37:27 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=aea71178-a303-4725-8854-0b065575865e / ext4 defaults 11
UUID=4c51ce83-4c2e-4f23-8fd1-cc0e7c384990 /boot ext4 defaults
12
UUID=2fe9c195-d708-447c-b18c-f43c14ff021e /home ext4 defaults
12
UUID=7617828f-bd14-4773-9bc9-2e8f2d68cd40 /tmp ext4 defaults 12
UUID=d239eeb0-3190-4423-b2c1-c88d7599e20e /usr ext4 defaults 12
UUID=6cd376da-5dab-4f57-8d6a-0293d494e009 /var ext4 defaults 12
UUID=0350a0d9-35e1-4741-b1b8-8c046499d992 swap swap defaults
00
UUID=33d2e7ba-f014-42bd-938b-0b05f6887033 /acl ext4 defaults 00
tmpfs /dev/shm tmpfs defaults 00
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 00
proc /proc proc defaults 00
/dev/sda10 /new ext4 defaults
00
<ESC>
:wq!
Right click on it
Or and select copy
Paste it into fstab
#
# /etc/fstab
# Created by anaconda on Tue Jan 1 09:37:27 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=aea71178-a303-4725-8854-0b065575865e / ext4 defaults 11
UUID=4c51ce83-4c2e-4f23-8fd1-cc0e7c384990 /boot ext4 defaults
12
UUID=2fe9c195-d708-447c-b18c-f43c14ff021e /home ext4 defaults
12
UUID=7617828f-bd14-4773-9bc9-2e8f2d68cd40 /tmp ext4 defaults 12
UUID=d239eeb0-3190-4423-b2c1-c88d7599e20e /usr ext4 defaults 12
UUID=6cd376da-5dab-4f57-8d6a-0293d494e009 /var ext4 defaults 12
UUID=0350a0d9-35e1-4741-b1b8-8c046499d992 swap swap defaults
00
UUID=33d2e7ba-f014-42bd-938b-0b05f6887033 /acl ext4 defaults 00
UUID=12d19b6a-eb43-4e35-88a3-ebf3e11f686d /new ext4 defaults
00
tmpfs /dev/shm tmpfs defaults 00
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 00
proc /proc proc defaults 00
<ESC>
:wq!
[root@server1 ~]#mkdir /new …….<PRESS ENTER>
[root@server1 ~]#mount –t ext4 /dev/sda10/new …….<PRESS
ENTER>
[root@server1 ~]#mount …….<PRESS ENTER>
/dev/sda5 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/sda7 on /home type ext4 (rw)
/dev/sda8 on /tmp type ext4 (rw)
/dev/sda2 on /usr type ext4 (rw)
/dev/sda3 on /var type ext4 (rw)
/dev/sda9 on /acl type ext4 (rw)
/dev/sda10 on /new type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sr0 on /media/RHEL_6.0 i386 Disc 1 type iso9660
(ro,nosuid,nodev,uhelper=udisks,uid=0,gid=0,iocharset=utf8,mode=0400,dmod
e=0500)