From owner-freebsd-fs@FreeBSD.ORG Thu Jan 21 09:56:45 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF3E8106566C for ; Thu, 21 Jan 2010 09:56:45 +0000 (UTC) (envelope-from noamscai.ml@gmail.com) Received: from mail-iw0-f171.google.com (mail-iw0-f171.google.com [209.85.223.171]) by mx1.freebsd.org (Postfix) with ESMTP id B62C78FC12 for ; Thu, 21 Jan 2010 09:56:45 +0000 (UTC) Received: by iwn1 with SMTP id 1so4562620iwn.28 for ; Thu, 21 Jan 2010 01:56:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=oypq3HGyclnv/Etuc/512Wz/xfJ6DQwP+J26lN4Nkb8=; b=WEL9n9k9fcPDoPBXBl5u/RvUKaMuoY7JLz2YPn5N9qukCZszh0HGMvYb85qJsle0N/ PkBG5Pw8VjZGpf217luw49pZB2t8OH/223oHZc042siB/GbU0XCg6BvCX0A0jhGnsqLo kFa75kFJl0KkBJLGjBiupQCt3muG2Ne+NwdPA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PUVGECvwbqIRs3ZN8v7eTt4J3Gs/rOFrcS5FA0ArNpQAeC2rar4LNY10py8cUv62k7 cv0rKNVDWB4lAZP0DO83vUUBMTuVpPADY9Qmt4bF2Hln9bivXhgNsjSCPEKOOl0q2b94 MiTERkeeJUNzK9MBjGr5vREd96KLRW3/hA8bo= MIME-Version: 1.0 Received: by 10.231.146.134 with SMTP id h6mr411052ibv.16.1264066254180; Thu, 21 Jan 2010 01:30:54 -0800 (PST) Date: Thu, 21 Jan 2010 12:30:54 +0300 Message-ID: <4c44ea791001210130j75e220b2p7ffd5731d940aa1@mail.gmail.com> From: Ivan Borodin To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Manual partitioning for newbies X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2010 09:56:46 -0000 iGreetings to respective residents. Excuse me, haven't found a mailing list for newbies... Experiencing difficulties... Could anybody help? Its about partitioning using fdisk -f and bsdlabel. Trying to assemble a sh script for housekeeping purposes installing freebsd onto a given target Even don't know what is the question... The critical lack of experience in subj stops me from gathering information myself. Supposed one wants to generate fdisk config file so he should have these magic numbers describing disk( usb storage, md, ... ) geometry. There's some mess with this geometry because of legacy problems, as i can see, and because my misunderstanding... Sysinstall offers some geometry, then "recalculates" it= , and if you don't let it to, the new system can be born unbootable, disk sizes returned by atacontrol differ from those returned by fdisk, no visibl= e means to determine flash drive parameters( ex me, i don't now how a google request about it should look like), this magick 63 offset for the first slice, mysterious "raw" part don't edit.. Can someone help with this? Needa create one config for layout with say 50m fat and FreeBSD on all remaining and another with FreeBSD using entire disk. And with bsdlabel+config, if i have the size of the slice, everything further is the question of arythmetics and appending a raw partition to the table. The exact partiton sizes need to be somehow calculated depending on fs or can be arbitrary and aproximate? And some waypoint.. errr... How can i get geometry parameters for ata, usb and md-devices? (c)Lame English Int. =FE=C9=D4=C1=D4=D8-=D4=CF =D0=CF-=D0=D2=CF=DD=C5 =C2= =D5=C4=C5=D4, =C4=C1... ------------------ [root@ ~]# fdisk -s /dev/ad5 /dev/ad5: 19383 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 19538001 0xa5 0x80 [root@ ~]# atacontrol cap ad5 | grep lba lba supported 19538975 sectors lba48 not supported Seems like sysinstall threw away 974 sectors while partitioning.. Noamasca@home$