<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Good idea.&nbsp; I tried it, but it didn't affect the problem (I wish I knew<br>what 'parted's problem is with the filesystem it doesn't like.)&nbsp; So<br>I just screwed up my courage and deleted the partition with fdisk.<br>(This of course renumbered my OS partition down from 7 to 6,<br>so I had to go through all the gyrations with grub to get it back<br>to a bootable condition.)&nbsp; Then I was able to create the enlarged<br>new partition with fdisk, now at /dev/sda8, and put a new fs on<br>it.<br><br>Thanks again - Ed <br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b>
 Rajiv Gunja &lt;opn.src.rocks@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Ed Browne &lt;edward_d_browne@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> calug@unknownlamer.org<br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, October 26, 2008 12:49:57 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [CALUG] resizing a partition with parted, no need to preserve data?<br></font><br>
<span style="font-family: georgia,serif; color: rgb(0, 0, 153);">I would suggest, fdisk sda and mark sda4 to "5" than "f" Once saved, try your hand at partd.</span><br style="font-family: georgia,serif; color: rgb(0, 0, 153);">
<br style="font-family: georgia,serif; color: rgb(0, 0, 153);"><span style="font-family: georgia,serif; color: rgb(0, 0, 153);">Since all slices under sda4 are Linux, Windows should not be able to see them.</span><br style="font-family: georgia,serif; color: rgb(0, 0, 153);">
<br style="font-family: georgia,serif; color: rgb(0, 0, 153);"><span style="font-family: georgia,serif; color: rgb(0, 0, 153);">-GGR</span><br style="font-family: georgia,serif; color: rgb(0, 0, 153);"><br style="font-family: georgia,serif; color: rgb(0, 0, 153);">
<span style="font-family: georgia,serif; color: rgb(0, 0, 153);">--</span><br style="font-family: georgia,serif; color: rgb(0, 0, 153);"><span style="font-family: georgia,serif; color: rgb(0, 0, 153);">Rajiv G Gunja</span><br style="font-family: georgia,serif; color: rgb(0, 0, 153);">
<span style="font-family: georgia,serif; color: rgb(0, 0, 153);">Blog: <a rel="nofollow" target="_blank" href="http://ossrocks.blogspot.com">http://ossrocks.blogspot.com</a></span><br style="font-family: georgia,serif; color: rgb(51, 51, 255);">
<br><br><div class="gmail_quote">2008/10/25 Ed Browne <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:edward_d_browne@yahoo.com" target="_blank" href="mailto:edward_d_browne@yahoo.com">edward_d_browne@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hello,<br>&nbsp;&nbsp;&nbsp; I'm trying to clean up a balkanized hard drive by merging two<br>partitions which formerly held a bootable OS, /dev/sda6 and /dev/sda7.<br>
&nbsp; They are consecutive, so I deleted the second one, sda7 (note that<br>my current Ubuntu install was on /dev/sda8, but it became /dev/sda7,<br>so that one will have to be remain untouched.)&nbsp; This is the partition<br>table now:<br>
<br><br>&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp;&nbsp; Id&nbsp; System<br>/dev/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 702&nbsp;&nbsp;&nbsp;&nbsp; 5632000&nbsp;&nbsp; 27&nbsp;
 Unknown<br>Partition 1 does not end on cylinder boundary.<br>/dev/sda2&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 702&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 893&nbsp;&nbsp;&nbsp;&nbsp; 1536000&nbsp;&nbsp;&nbsp; 7&nbsp; HPFS/NTFS<br>Partition 2 does not end on cylinder boundary.<br>/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 893&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6758&nbsp;&nbsp;&nbsp; 47109375&nbsp;&nbsp;&nbsp; 7&nbsp; HPFS/NTFS<br>
/dev/sda4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6759&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12161&nbsp;&nbsp;&nbsp; 43399597+&nbsp;&nbsp; f&nbsp; W95 Ext'd (LBA)<br>/dev/sda5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9215&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9477&nbsp;&nbsp;&nbsp;&nbsp; 2100481&nbsp;&nbsp; 82&nbsp; Linux swap /
 Solaris<br>/dev/sda6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9477&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10593&nbsp;&nbsp;&nbsp;&nbsp; 8972271&nbsp;&nbsp; 83&nbsp; Linux<br>/dev/sda7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6759&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9106&nbsp;&nbsp;&nbsp; 18860247&nbsp;&nbsp; 83&nbsp; Linux<br>/dev/sda8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9107&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9214&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 867478+&nbsp; 82&nbsp; Linux swap / Solaris<br>
<br><br>I want to expand sda6 to reclaim blocks 10,594-12,161, but nothing<br>I can do with "parted" works:<br><br>root@bongo:~# parted<br>GNU Parted 1.7.1<br>Using /dev/sda<br>Welcome to GNU Parted! Type 'help' to view a list of commands.<br>
(parted) check 6<br>Error: File system has an incompatible feature enabled.<br>(parted) resize 6 9477 12161<br>Error: File system has an
 incompatible feature enabled.<br>(parted) quit<br>Information: Don't forget to update /etc/fstab, if necessary.<br><br>root@bongo:~# uname -a<br>Linux bongo 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008 i686 GNU/Linux<br>
root@bongo:~#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>I don't need to preserve any data on /dev/sda6 (I made a new<br>file system several times, because I read that ext3 did not<br>support resizing, but the result was no better with ext2<br>
or reiserfs.)<br><br>Can I do it with fdisk just by deleting the sda6 partition, <br>and making a new sda6 partition that uses all the available<br>space?&nbsp;&nbsp;&nbsp; Is there a smart way to do this?<br><br>Thanks in advance - Ed <br>
</div></div><br>



      </div><br>_______________________________________________<br>
CALUG mailing list<br>
<a rel="nofollow" ymailto="mailto:CALUG@unknownlamer.org" target="_blank" href="mailto:CALUG@unknownlamer.org">CALUG@unknownlamer.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.unknownlamer.org/listinfo/calug">http://lists.unknownlamer.org/listinfo/calug</a><br>
<br></blockquote></div><br>
</div></div></div><br>

      </body></html>