LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   add space to / when from spare space on disk (https://www.linuxquestions.org/questions/linux-general-1/add-space-to-when-from-spare-space-on-disk-597578/)

ctsiow 11-06-2007 01:48 PM

add space to / when from spare space on disk
 
I have 4 gig spare on my dual boot laptop that I would like to us on my / partition. Am I right in thinking that Partition Magic / Acronis disk director will mess up grub and I will need to rebuild it if I use that?
I have tried to add it using YAST and partitioner but I don't see the free space using that tool. Currently my disk looks like this:

/dev/sda 74.5G

/dev/sda1 50.0G Windows
/dev/sda2 10.4G Windows
/dev/sda4 10.1G Extended
/dev/sda5 619.6M swap
/dev/sda6 109.8M (linux native)
/dev/sda7 3.6G /home
/dev/sda8 5.4G /

Thanks

archangel_617b 11-06-2007 06:37 PM

IIRC gparted can do this for you. Works super easy if you boot from a liveCD that has gparted on it like: http://gparted-livecd.tuxfamily.org/

syg00 11-06-2007 07:03 PM

Depends what you mean by spare (unallocated, or unused within a partition).
Also depends on where it is located relative to the current partitions. It's possible it's "unreachable" due to previous allocations. Run this and post (all) the output - use code tags in your post so we can read it
Code:

cfdisk -P s /dev/sda
Might need root/sudo.

ctsiow 11-07-2007 04:27 AM

Well run cfdisk and come up with:

Code:

dhcppc3:~ # cfdisk -P s /dev/sda
FATAL ERROR: Bad logical partition 8: enlarged logical partitions overlap
dhcppc3:~ #


I wasn't aware of any problems with overlap! Can't see it using Expert Partitioner, all the start and ends appear OK, for example sda4, the extended part starts at 8409, as does sda8, root partition, and sda8 ends on 9125 with 9126 being the start of sda5. Now apart from partition numbers not making a lot of sense to me, 5 coming after 8, it looks OK.
The space is un-partioned free space btw.
Mark

ctsiow 11-07-2007 07:55 AM

Quote:

Originally Posted by archangel_617b (Post 2950440)
IIRC gparted can do this for you. Works super easy if you boot from a liveCD that has gparted on it like: http://gparted-livecd.tuxfamily.org/

d/l and run! Just what I needed, thanks archangel_617b.

still have overlapping logical parts according to cfdisk but all running ok and now have the spare unallocated space inside the extended partition for later use.
Thanks for help guys.
Mark


All times are GMT -5. The time now is 09:39 AM.