<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
<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>
<BLOCKQUOTE TYPE=CITE>
<PRE>
fdisk /dev/sdc -l
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002e0d1
Device Boot Start End Blocks Id System
/dev/sdc1 2048 31455231 15726592 83 Linux
/dev/sdc2 31455232 3907028991 1937786880 f W95 Ext'd (LBA)
/dev/sdc5 31457280 39841791 4192256 82 Linux swap / Solaris
/dev/sdc6 39843840 459266047 209711104 83 Linux
/dev/sdc7 459266283 2302467929 921600823+ 83 Linux
</PRE>
</BLOCKQUOTE>
<PRE>
When checking out the disk and looking for free space, I did this
</PRE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
fdisk /dev/sdc
Command (m for help): p
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002e0d1
Device Boot Start End Blocks Id System
/dev/sdc1 2048 31455231 15726592 83 Linux
/dev/sdc2 31455232 3907028991 1937786880 f W95 Ext'd (LBA)
/dev/sdc5 31457280 39841791 4192256 82 Linux swap / Solaris
/dev/sdc6 39843840 459266047 209711104 83 Linux
/dev/sdc7 459266283 2302467929 921600823+ 83 Linux
Command (m for help): h
h: unknown command
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n
Partition type:
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): l
Adding logical partition 8
First sector (2302469978-3907028991, default 2302469978):
Using default value 2302469978
Last sector, +sectors or +size{K,M,G} (2302469978-3907028991, default 3907028991):
Using default value 3907028991
Command (m for help): q
</PRE>
</BLOCKQUOTE>
<PRE>
So there's a lot of free space behind <B>sdc7</B>
Now, my question is - how do I grow <B>sdc7</B> to contain all that space and get the ext4 filesystem to recognise it?
Thanks in advance.
</PRE>
<BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
Richard Meyer
As the ghost of a sceptic, I tend to stay pretty quiet.
Linux Counter user #306629
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>