From owner-freebsd-questions Fri Jul 20 5:24:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from oden.exmandato.se (oden.exmandato.se [192.71.33.1]) by hub.freebsd.org (Postfix) with ESMTP id 2566D37B403 for ; Fri, 20 Jul 2001 05:24:40 -0700 (PDT) (envelope-from jonas.bulow@servicefactory.se) Received: from servicefactory.se (root@oden.exmandato.se [192.71.33.1]) by oden.exmandato.se (8.8.8/8.8.5) with ESMTP id OAA15388 for ; Fri, 20 Jul 2001 14:24:38 +0200 (MET DST) Message-ID: <3B582303.1375517C@servicefactory.se> Date: Fri, 20 Jul 2001 14:24:35 +0200 From: jonas Organization: Service Factory X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: help with growfs on 4.3-STABLE Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, When I was young and stupid ( :-) ) I partitioned my hard drive as: Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 6 unused 0 63 4188177 4188239 ad0s1 2 fat 6 4188240 1043280 5231519 ad0s2 3 freebsd 165 C 5231520 8179920 13411439 ad0s3 4 extended 5 13411440 8179920 21591359 ad0s4 3 freebsd 165 21591360 1980720 23572079 - 6 unused 0 What I didn't know at that time was that I could only have four partitions. The problem: I would like to extend ad0s4 to use all the space availble on the disk. Then I would like to use growfs to grow the filesystem on that partition ( /usr ) to use the newly created space in the partition. Is that possible? Last time I tried to change the partition size I ended up with the ad0s4 unreadable. I managed to restore it by restoring the original valus in the partition table. So, the question is: How do I resize a partition without loosing it? The use of growfs seems quite simple after that initial problem is solved. regards, jonas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message