Showing posts with label ext3. Show all posts
Showing posts with label ext3. Show all posts

How To Format Disk in linux

In the previous post we discussed how to re-size disk space,
Now lest say you want to add additional disk to your machine.

Follow the commands: 

step 1 -  Partition
# fdisk -l | grep Disk
Disk /dev/sda: 549.7 GB, 549755813888 bytes
Disk /dev/sdb: 107.3 GB, 107374182400 bytes 

you'll see the disks on your machine, we want to partition the new disk /dev/sdb

# fdisk /dev/sdb
n - add new partition - follow the instruction
p - print the partition table - check the partition
w - write table to disk and exit

step 2 - Format

mkfs.ext3 /dev/sdb1

step 3 - Mount
# mkdir /New-Disk
# mount /dev/sdb1 /New-Disk

step 4 - Update /etc/fstab
# vi /etc/fstab
add the next line to the file:
/dev/sdb1     /New-Disk     ext3     defaults     1 2
Save and close the file.

Now check the changes:
# df -h
Read more >>

How to resize ext3 partition - GPartEd

Hi, couple of days ago was asked to increase ext3 partition without LVM.
After searching the web I found a cool Linux Live CD called GPatrEd.
because it has just one partition  " /dav/sda1 on / "  i could not unmount it the resize it with the new space.
I was had to used a live CD.
I'm talking about virtual machine, so first I increased the disk space of the virtual machine
then I restart and boot from GPartEd live CD.
The UI is very simple and fun actually, 
all you need to do is to resize the partition with the mouse the click APPLY.






After finishing, I restart the machine again and WALLA I had new partition space on my server.







Read more >>