augmenter la taille de ma partition étendue sous Linux 1and1 Cloud dynamique serveur

Comment puis-je augmenter la taille de ma partition étendue sous Linux?
Connectez-vous sur votre serveur en tant qu'utilisateur « root » avec SSH.

Pour afficher votre système de fichiers, utilisez la commande « ~ # df -h »:

  s123456789:~ # df –h

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             9.2G  235M  8.5G   3% /		        
udev                  496M  112K  496M   1% /dev	
/dev/hda5             9.4G  2.1G  7.3G  22% /usr	
/dev/hda6             9.4G  148M  9.2G   2% /var	
/dev/hda7             221G   22M  221G   1% /srv	
none                  1.0G     0  1.0G   0% /tmp


Pour afficher votre partitionnage, utilisez la commande « ~ # fdisk -l »:

  s123456789:~ # fdisk –l
Disk /dev/hda: 343.5 GB, 343597383680 bytes				
255 heads, 63 sectors/track, 41773 cylinders				
Units = cylinders of 16065 * 512 = 8225280 bytes			
Disk identifier: 0x000c8b23	
							
    Device Boot      Start         End      Blocks   Id  System	
/dev/hda1               1        1217     9775521   83  Linux	
/dev/hda2            1218        1461     1959930   82  Linux swap / Solaris										
/dev/hda4            1462       32636   250408517+   5  Extended	
/dev/hda5            1462        2678     9775521   83  Linux	
/dev/hda6            2679        3895     9775521   83  Linux	
/dev/hda7            3896       32635   230854018+  83  Linux	
s15378494:~ #


Vous augmentez la taille de votre partition étendue avec la commande « ~ # parted /dev/hda »

s123456789:~ # parted /dev/hda

GNU Parted 1.8.8									
Using /dev/had									
Welcome to GNU Parted! Type 'help' to view a list of commands.	
(parted) unit s									
(parted) print									
Model: QEMU HARDDISK (ide)							
Disk /dev/hda: 671088640s							
Sector size (logical/physical): 512B/512B					
Partition Table: msdos								
												
Number  Start      End         Size        Type     File system  Flags
1      63s        19551104s   19551042s   primary   ext3         , , , , , , , , , type=83, ,							
2      19551105s  23470964s   3919860s    primary   linux-swap   , , , , , , , , , type=82, ,							
4      23470965s  524287999s  500817035s  extended               , , , , , , , , , type=05, ,							
5      23471028s  43022069s   19551042s   logical   xfs          , , , , , , , , , type=83, ,							
6      43022133s  62573174s   19551042s   logical   xfs          , , , , , , , , , type=83, ,							
7      62573238s  524281274s  461708037s  logical   xfs          , , , , , , , , , type=83, ,	

												
(parted) resize 4 23470965s -1						
(parted) print									
Model: QEMU HARDDISK (ide)							
Disk /dev/hda: 671088640s							
Sector size (logical/physical): 512B/512B					
Partition Table: msdos								
												
Number  Start      End         Size       Type     File system  Flags
1      63s        19551104s   19551042s   primary   ext3         , , , , , , , , , type=83, ,							
2      19551105s  23470964s   3919860s    primary   linux-swap   , , , , , , , , , type=82, ,							
4      23470965s  671088639s  647617675s  extended               , , , , , , , , , type=05, ,							
5      23471028s  43022069s   19551042s   logical   xfs          , , , , , , , , , type=83, ,							
6      43022133s  62573174s   19551042s   logical   xfs          , , , , , , , , , type=83, ,							
7      62573238s  524281274s  461708037s  logical   xfs          , , , , , , , , , type=83, ,							
												
(parted)
						



Last modified onSaturday, 05 January 2013 13:19

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0004403560{main}( ).../index.php:0
20.05801321344Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05801321344Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.22652979616Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.22703004200Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.22783059528Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.22793076584require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.23463220672K2ControllerItem->execute( ).../k2.php:64
90.23463220672K2ControllerItem->display( ).../BaseController.php:710
100.24063489752K2ControllerItem->display( ).../item.php:78
110.24063489752K2ControllerItem->display( ).../controller.php:19
120.24183508272Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.24393528688K2ViewItem->display( ).../ViewController.php:102
140.33974093248K2ViewItem->display( ).../view.html.php:742
150.33974093248K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.34254267648include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0004403560{main}( ).../index.php:0
20.05801321344Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05801321344Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.22652979616Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.22703004200Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.22783059528Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.22793076584require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.23463220672K2ControllerItem->execute( ).../k2.php:64
90.23463220672K2ControllerItem->display( ).../BaseController.php:710
100.24063489752K2ControllerItem->display( ).../item.php:78
110.24063489752K2ControllerItem->display( ).../controller.php:19
120.24183508272Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.24393528688K2ViewItem->display( ).../ViewController.php:102
140.33974093248K2ViewItem->display( ).../view.html.php:742
150.33974093248K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.34254267648include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top