Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mounting additional partition
#1

Hi guys i am new around here and i am very new to linux, hence would like to check with you guys and hope for some assistance.

 

Firstly i have a dell server running Linux enterprise V3, now i have a HDD of 146 Gb but when i do a df -h, this is my output

 

[root@localhost root]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda7 2.0G 1.8G 104M 95% /

/dev/sda3 190M 12M 169M 7% /boot

none 250M 0 250M 0% /dev/shm

/dev/sda8 1012M 33M 928M 4% /tmp

/dev/sda5 9.7G 2.6G 6.6G 29% /usr

/dev/sda6 9.7G 3.5G 5.7G 38% /var

/dev/sda2 2.5G 2.4G 16M 100% /folder1

 

from my fdisk -l

 

[root@localhost root]# fdisk -l

 

Disk /dev/sda: 146.6 GB, 146695782400 bytes

255 heads, 63 sectors/track, 17834 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot Start End Blocks Id System

/dev/sda1 1 5 40131 de Dell Utility

/dev/sda2 6 332 2626627+ 83 Linux

/dev/sda3 * 333 357 200812+ 83 Linux

/dev/sda4 358 17834 140384002+ f Win95 Ext'd (LBA)

/dev/sda5 358 1631 10233373+ 83 Linux

/dev/sda6 1632 2905 10233373+ 83 Linux

/dev/sda7 2906 3166 2096451 83 Linux

/dev/sda8 3167 3297 1052226 83 Linux

/dev/sda9 3298 3427 1044193+ 82 Linux swap

 

 

from this i see /dev/sda4 358 17834 140384002+ f Win95 Ext'd (LBA) which i found out from some threads here that this is the dell portion where you can create more partition from.

 

Now i am not sure as to how i can "cut" out more space from

/dev/sda4 358 17834 140384002+ f Win95 Ext'd (LBA)

to add on to my "folder1"

 

Thanks in advance, have a nice day

Reply
#2

Firstly, there is free space (as you've pointed out): 3428 up to 17834 are free. You'll need to create a new partition within this space:

 

1. fdisk /dev/sda

2. p (partition)

3. p (print partition tables, should look as above)

4. n (create new partition)

5. new LOGICAL partition. It should pick the next number available.

6. set the start cylinder to 3428 (may default to that)

7. set the end cylinder (or a relative size, eg: +5G = 5 gig big)

8. p (print table, take a look, check it's all good)

9. w (write back)

10. q (to quit).

 

Since the disk is in use, it may require a reboot to re-read the partition tables.

 

"fdisk -l" should now show the new partition available.

 

Secondly, create a filesystem on it ("format" in Windows): "mkfs.ext4 /dev/sda10"

Thirdly, mount this new filesystem over a mount point, eg:

 

"mkdir /folder2"

"mount /dev/sda10 /folder2"

"df -h" (to check)

"mount" (to check)

 

Thirdly... edit your /etc/fstab file so that this new partition is mounted at boot time.

 

Hope that helps!

Reply
#3
Thank you so much Dave, your instructions are very clear and i am able to get the partition up and running. Thank you so much, deeply appreciate it. God bless.
Reply
#4
No worries - glad to help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)