<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Richard,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This may be helpful to you. <a href="https://wiki.archlinux.org/index.php/GNU_Parted#Resizing_partitions">https://wiki.archlinux.org/index.php/GNU_Parted#Resizing_partitions</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You need to make sure file system isn’t mounted, resize the partition, then resize the filesystem.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1C008A'>Kind regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=754 style='width:565.5pt;border-collapse:collapse'><tr><td width=173 valign=bottom style='width:129.75pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal align=center style='margin-right:7.5pt;text-align:center'><a href="http://www.heswa.com.au/"><span style='font-family:"Helvetica","sans-serif";color:blue;text-decoration:none'><img border=0 width=161 height=40 id="Picture_x0020_1" src="cid:image001.png@01D35978.03201C60" alt=HESWA></span></a><span style='font-family:"Helvetica","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal align=center style='text-align:center'><span style='color:#1F497D'><img border=0 width=160 height=60 id="Picture_x0020_2" src="cid:image002.png@01D35978.03201C60" alt=HESWA><o:p></o:p></span></p><p class=MsoNormal align=center style='text-align:center'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal align=center style='text-align:center'><a href="https://plus.google.com/107945848640973246037"><span style='font-size:1.0pt;font-family:"Helvetica","sans-serif";color:blue;text-decoration:none'><img border=0 width=24 height=24 id="Picture_x0020_3" src="cid:image003.png@01D35978.03201C60" alt="Google Plus"></span></a><span style='font-size:1.0pt;font-family:"Helvetica","sans-serif";color:#1F497D'><img border=0 width=2 height=1 id="Picture_x0020_4" src="cid:image004.png@01D35978.03201C60" alt="/"></span><a href="http://www.linkedin.com/company/hoisting-equipment-specialists-WA"><span style='font-size:1.0pt;font-family:"Helvetica","sans-serif";color:blue;text-decoration:none'><img border=0 width=24 height=24 id="Picture_x0020_5" src="cid:image005.png@01D35978.03201C60" alt=Linkedin></span></a><span style='font-size:1.0pt;font-family:"Helvetica","sans-serif";color:#1F497D'><img border=0 width=2 height=1 id="Picture_x0020_6" src="cid:image004.png@01D35978.03201C60" alt="/"></span><a href="https://www.facebook.com/HESWA-1152824791400604/"><span style='color:#1F497D;text-decoration:none'><img border=0 width=24 height=24 id="Picture_x0020_7" src="cid:image006.png@01D35978.03201C60" alt="Google Plus"></span></a><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal align=center style='text-align:center'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal align=center style='text-align:center'><span style='color:#1F497D'><o:p> </o:p></span></p></td><td width=17 nowrap valign=top style='width:12.4pt;border:none;border-left:solid #F37C1E 4.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='margin-left:3.75pt'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=1 height=1 id="Picture_x0020_8" src="cid:image007.gif@01D35978.03201C60" alt="https://s3.amazonaws.com/htmlsig-assets/spacer.gif"></span><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p></td><td width=164 nowrap valign=bottom style='width:123.35pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='line-height:10.5pt'><b><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#1C008A'>Nicholas Lloyd</span></b><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#1C008A'> <br>General Manager <br></span><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#F55A22'><a href="mailto:nic@heswa.com.au"><span style='color:#F55A22'>nic@heswa.com.au</span></a></span><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#2E3591'><br></span><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#1C008A'>Mobile: 0425 635 555 </span><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#2E3591'><o:p></o:p></span></p><p class=MsoNormal style='line-height:10.5pt'><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#2E3591'><o:p> </o:p></span></p><p class=MsoNormal style='mso-line-height-alt:10.5pt'><a href="http://www.heswa.com.au/"><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:blue;text-decoration:none'><img border=0 width=160 height=89 id="Picture_x0020_9" src="cid:image008.png@01D35978.03201C60" alt=HESWA></span></a><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#1F497D'><br></span><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#F55A22'><a href="http://www.heswa.com.au/"><span style='color:#F55A22;text-decoration:none'>http://www.heswa.com.au/</span></a> </span><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#1F497D'><o:p></o:p></span></p></td><td style='padding:0cm 0cm 0cm 0cm'><p class=MsoNormal><a href="http://www.heswa.com.au/"><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue;text-decoration:none'><img border=0 width=400 height=174 id="Picture_x0020_10" src="cid:image009.jpg@01D35978.03201C60" alt=elogo></span></a><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;display:none'><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0><tr><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal style='line-height:9.0pt'><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#13BC3A'><img border=0 width=35 height=40 id="Picture_x0020_11" src="cid:image010.png@01D35978.03201C60" alt=elogo> Please consider the environment before printing this e-mail!<o:p></o:p></span></p></td></tr></table><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> plug [mailto:plug-bounces@plug.org.au] <b>On Behalf Of </b>Richard Meyer<br><b>Sent:</b> Thursday, 9 November 2017 4:19 PM<br><b>To:</b> PLUG<br><b>Subject:</b> [plug] Resizing an EXT4 filesystem<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><br>Hi all,<br><br>Finally a gutsy Linux question (sans networks or printers).<br><br>I have a large-ish hard drive and have a partition I want to enlarge.<br><br>Let's say it looks like this<br><br><br><br><br><o:p></o:p></p><pre><o:p> </o:p></pre><pre>fdisk /dev/sdc -l<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes<o:p></o:p></pre><pre>255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors<o:p></o:p></pre><pre>Units = sectors of 1 * 512 = 512 bytes<o:p></o:p></pre><pre>Sector size (logical/physical): 512 bytes / 512 bytes<o:p></o:p></pre><pre>I/O size (minimum/optimal): 512 bytes / 512 bytes<o:p></o:p></pre><pre>Disk identifier: 0x0002e0d1<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> Device Boot Start End Blocks Id System<o:p></o:p></pre><pre>/dev/sdc1 2048 31455231 15726592 83 Linux<o:p></o:p></pre><pre>/dev/sdc2 31455232 3907028991 1937786880 f W95 Ext'd (LBA)<o:p></o:p></pre><pre>/dev/sdc5 31457280 39841791 4192256 82 Linux swap / Solaris<o:p></o:p></pre><pre>/dev/sdc6 39843840 459266047 209711104 83 Linux<o:p></o:p></pre><pre>/dev/sdc7 459266283 2302467929 921600823+ 83 Linux<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>When checking out the disk and looking for free space, I did this<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre><o:p> </o:p></pre><pre>fdisk /dev/sdc <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Command (m for help): p<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes<o:p></o:p></pre><pre>255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors<o:p></o:p></pre><pre>Units = sectors of 1 * 512 = 512 bytes<o:p></o:p></pre><pre>Sector size (logical/physical): 512 bytes / 512 bytes<o:p></o:p></pre><pre>I/O size (minimum/optimal): 512 bytes / 512 bytes<o:p></o:p></pre><pre>Disk identifier: 0x0002e0d1<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> Device Boot Start End Blocks Id System<o:p></o:p></pre><pre>/dev/sdc1 2048 31455231 15726592 83 Linux<o:p></o:p></pre><pre>/dev/sdc2 31455232 3907028991 1937786880 f W95 Ext'd (LBA)<o:p></o:p></pre><pre>/dev/sdc5 31457280 39841791 4192256 82 Linux swap / Solaris<o:p></o:p></pre><pre>/dev/sdc6 39843840 459266047 209711104 83 Linux<o:p></o:p></pre><pre>/dev/sdc7 459266283 2302467929 921600823+ 83 Linux<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Command (m for help): h<o:p></o:p></pre><pre>h: unknown command<o:p></o:p></pre><pre>Command action<o:p></o:p></pre><pre> a toggle a bootable flag<o:p></o:p></pre><pre> b edit bsd disklabel<o:p></o:p></pre><pre> c toggle the dos compatibility flag<o:p></o:p></pre><pre> d delete a partition<o:p></o:p></pre><pre> l list known partition types<o:p></o:p></pre><pre> m print this menu<o:p></o:p></pre><pre> n add a new partition<o:p></o:p></pre><pre> o create a new empty DOS partition table<o:p></o:p></pre><pre> p print the partition table<o:p></o:p></pre><pre> q quit without saving changes<o:p></o:p></pre><pre> s create a new empty Sun disklabel<o:p></o:p></pre><pre> t change a partition's system id<o:p></o:p></pre><pre> u change display/entry units<o:p></o:p></pre><pre> v verify the partition table<o:p></o:p></pre><pre> w write table to disk and exit<o:p></o:p></pre><pre> x extra functionality (experts only)<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Command (m for help): n<o:p></o:p></pre><pre>Partition type:<o:p></o:p></pre><pre> p primary (1 primary, 1 extended, 2 free)<o:p></o:p></pre><pre> l logical (numbered from 5)<o:p></o:p></pre><pre>Select (default p): l<o:p></o:p></pre><pre>Adding logical partition 8<o:p></o:p></pre><pre>First sector (2302469978-3907028991, default 2302469978): <o:p></o:p></pre><pre>Using default value 2302469978<o:p></o:p></pre><pre>Last sector, +sectors or +size{K,M,G} (2302469978-3907028991, default 3907028991): <o:p></o:p></pre><pre>Using default value 3907028991<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Command (m for help): q<o:p></o:p></pre></blockquote><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>So there's a lot of free space behind <b>sdc7</b><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Now, my question is - how do I grow <b>sdc7</b> to contain all that space and get the ext4 filesystem to recognise it?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Thanks in advance.<o:p></o:p></pre><p class=MsoNormal style='margin-bottom:12.0pt'><br><br><o:p></o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:0cm 0cm 0cm 0cm'><pre><o:p> </o:p></pre><pre>-- <o:p></o:p></pre><pre>Richard Meyer<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>As the ghost of a sceptic, I tend to stay pretty quiet.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Linux Counter user #306629<o:p></o:p></pre></td></tr></table><p class=MsoNormal><o:p> </o:p></p></div></body></html>