# How to extend root partition ??

**URL:** <https://forums.suse.com/t/how-to-extend-root-partition/28415>\
**Category:** SLES Configure-Administer\
**Created:** [July 13, 2016, 4:37am UTC](https://forums.suse.com/t/how-to-extend-root-partition/28415 "2016-07-13T04:37:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wencheng](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@Wencheng](https://forums.suse.com/u/Wencheng)\
**Post date:** [July 13, 2016, 4:37am UTC](https://forums.suse.com/t/how-to-extend-root-partition/28415/1 "2016-07-13T04:37:29Z")

</div>

HI All  
I install senitnel on a VM , because root partition seem use full, so I extend HD size.  
Although HD size extend, but root size still keep original size.  
it seem need extend on offline mode(resecue mode or DVD boot), but then I have no idea…  
Anyone could help me a simple procedure let me extend my root partition ?

thanks!!

wyldkao

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [July 13, 2016, 12:50pm UTC](https://forums.suse.com/t/how-to-extend-root-partition/28415/2 "2016-07-13T12:50:00Z")

</div>

Hi wyldkao,

> so I extend HD size

assuming you’re not using LVM, what exactly did you do - extend the _disk_ or the partition your root FS resides in? Once you’re resized the “container” (i.e. the partition), you’ll have to tell the _file system_ that it should make use of the extra space. How that’s done depends on the actual file system used, i.e. for Ext3/4 file systems you can use “resize2fs /dev/” to resize - which would even work “live”.

Resizing the partition will likely need a reboot of the server before resizing the file system - have you done that already? (Which is one of the reasons that I prefer using LVM - you can do all that and more live.)

Regards,  
J

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [July 13, 2016, 4:29pm UTC](https://forums.suse.com/t/how-to-extend-root-partition/28415/3 "2016-07-13T16:29:17Z")

</div>

Also keep in mind that if you defined /boot and / at the start of the  
drive, then had a swap partition for some reason after that, you could not  
extend / without using something like LVM.

Probably better, with something like Sentinel, is to have a dedicated  
/var/opt/novell/sentinel partition, and maybe an /opt partition, since  
/var is where the bulk of the raw data will be stored by default. You  
could add that now; create new partition, format it (XFS is best for most  
things these days holding data rather than the ext family of filesystems),  
mount it somewhere temporarily (/mnt), stop Sentinel and copy over all  
data from /var/opt/novell/sentinel to /mnt (new partition), then unmount  
that and remount it against /var/opt/novell/sentinel and fire up the  
application. If everything works properly, then make sure that’s done  
persistently (modify /etc/fstab) and, when you have a moment, clean out  
the old /var/opt/novell/sentinel directory, which would require first  
unmounting the new one. BE SURE you do this correctly by verifying the  
new partition is unmounted before cleaning it out or you’ll clean out the  
new stuff and that would be wrong and bad.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…
