From owner-freebsd-questions@FreeBSD.ORG Fri Jan 28 05:49:15 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B029416A4CE for ; Fri, 28 Jan 2005 05:49:15 +0000 (GMT) Received: from web51706.mail.yahoo.com (web51706.mail.yahoo.com [206.190.38.224]) by mx1.FreeBSD.org (Postfix) with SMTP id 2ED9643D39 for ; Fri, 28 Jan 2005 05:49:15 +0000 (GMT) (envelope-from sarav_gsa@yahoo.com) Received: (qmail 65757 invoked by uid 60001); 28 Jan 2005 05:49:14 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=CKOim2JtXfsAPQZjw7qCAWgCz6XeNYvowpxftUkZWbGQJJEMeX7WtYv9wDS+odkj7gc3qoJFJgUkJqJVtus4UBsXDAvAyhG5U9XCZeHs7v847fQ+dy251e4JmRadAqcoTAd7A8wKdISShYQ9FE3VGOjJo6ENgxssSDVyVGP0O2w= ; Message-ID: <20050128054914.65755.qmail@web51706.mail.yahoo.com> Received: from [203.193.155.110] by web51706.mail.yahoo.com via HTTP; Thu, 27 Jan 2005 21:49:14 PST Date: Thu, 27 Jan 2005 21:49:14 -0800 (PST) From: saravanan ganapathy To: freebsd-questions@freebsd.org In-Reply-To: <200501271538.j0RFcMY08750@clunix.cl.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: jerrymc@clunix.cl.msu.edu Subject: Re: modify existing partitions - newbie X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 05:49:15 -0000 --- Jerry McAllister wrote: > > > > Hai, > > > > I just needed to delete some partitions(ad0s1e & > > ad0s1f) in my existing slice(ad0s1) and recreate > with > > some changes. > > > > 1) I tried using 'sysinstll --> Config --> Label' > , > > then delete e & f , but this couldn't write. It > says > > 'unable to write data on ad0' . What is the > problem? > > > > 2) Tried using 'disklabel -e ad0s1', then a file > > opens. I deleted the last two lines(e & f) and > saved. > > Now it shows as the following > > > > # /dev/ad0s1: > > 8 partitions: > > # size offset fstype [fsize bsize > > bps/cpg] > > a: 41943040 0 4.2BSD 2048 16384 > 28552 > > b: 4194304 83886080 swap > > c: 320159322 0 unused 0 0 > > > # "raw" part, don't edit > > d: 41943040 41943040 4.2BSD 2048 16384 > 28552 > > > > Is it the correct way to delete the partitions? > > First guess is not having permission. > It should be done in single user mode. > > Second guess is the partition you want to delete is > mounted. > > I have never tried to modify partitions on the disk > with root on it, > so maybe that presents special problems. You may > need to boot > from something else - live CD for example. > Now I tried to create new partitions on the free space of the existing slice in single mode, but I am getting the same error as 'unable to write data on ad0' . I am doing this in root user only. What are all the permissions should I have for this? Or please suggest me to create a partition in another way? Sarav __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250