From owner-freebsd-questions@freebsd.org Wed Mar 15 13:35:28 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02123D0D734 for ; Wed, 15 Mar 2017 13:35:28 +0000 (UTC) (envelope-from igelpi@trioscs.com) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0122.outbound.protection.outlook.com [104.47.41.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A9E3D12AD for ; Wed, 15 Mar 2017 13:35:27 +0000 (UTC) (envelope-from igelpi@trioscs.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=TrioSCS.onmicrosoft.com; s=selector1-trioscs-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=j441h657D9h3hhGSCoaR5IdQ89ena/n3JAK3LjQJuxc=; b=viAFa2becjHlT0I4axtfCxWNci4jxsefbWbiYkCzqFliZQ+UpCH5XY41+l6Uh1KXbQwPqaWi/D5bSEihmw+sDWe3qZ0vMECE4tOYvZM+5y/RwmGAzCcn3im2zJ02cIaou6WMgKFUCmnv5hnBB8hfVdjMLgbfY1MacGTsIS031pw= Received: from BN6PR02MB2722.namprd02.prod.outlook.com (10.175.95.136) by BN6PR02MB2724.namprd02.prod.outlook.com (10.175.95.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Wed, 15 Mar 2017 13:35:24 +0000 Received: from BN6PR02MB2722.namprd02.prod.outlook.com ([10.175.95.136]) by BN6PR02MB2722.namprd02.prod.outlook.com ([10.175.95.136]) with mapi id 15.01.0947.020; Wed, 15 Mar 2017 13:35:24 +0000 From: Israel Gelpi To: Polytropon CC: "freebsd-questions@freebsd.org" Subject: Re: LABEL (The FreeBSD Disklabel Editor) Thread-Topic: LABEL (The FreeBSD Disklabel Editor) Thread-Index: AdKdBbxaAzP+vEGBRyWUB5sUJTc/QgAZqmcAAAkmfyk= Date: Wed, 15 Mar 2017 13:35:24 +0000 Message-ID: <20170315133522.5386317.83680.7791@trioscs.com> References: , <20170315101324.484d5780.freebsd@edvax.de> In-Reply-To: <20170315101324.484d5780.freebsd@edvax.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edvax.de; dkim=none (message not signed) header.d=none;edvax.de; dmarc=none action=none header.from=trioscs.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [107.77.225.230] x-ms-office365-filtering-correlation-id: 3c0f2133-84ba-4141-1758-08d46ba822bf x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR02MB2724; x-microsoft-exchange-diagnostics: 1; BN6PR02MB2724; 7:Kx9a1hZWYWmFPYJqy8GId09v8PfjVw+tRMVkcnIG+5tfvX/LDZCu2h0OhLZVzNs+I7qOQPAMWuDRg8CjmAroE3NbM9mAOtweVEA0UZmlCYitahwGqY5eKxAbFPiLfZnYnP3lrj6Chf5M6OT9TCbXlgBio00qZCLaELqIJ6BrQYrrog5yHlmy9omou+QqhhtVZBBb8MmQ1X2w2QUociTjaBlUGWUrXZhT0hOhEUK2YV4FNdSwJ95zuwQl/QtFbrJju3fD4KMElZH48qgIxISPciSuQesyAWNo4Emvxu1eDL/NUKovsZs1+SRARx8IJ90G5dEbiRM+F64XkjvfKAnpNA== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(209352067349851); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123558025)(20161123562025)(2016111802025)(6072148)(6043046); SRVR:BN6PR02MB2724; BCL:0; PCL:0; RULEID:; SRVR:BN6PR02MB2724; x-forefront-prvs: 02475B2A01 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39450400003)(39410400002)(39830400002)(377454003)(24454002)(6436002)(6916009)(6512007)(9886003)(4326008)(6306002)(86362001)(966004)(2950100002)(1076002)(122556002)(100306002)(8676002)(99286003)(6486002)(189998001)(36756003)(6506006)(77096006)(81166006)(103116003)(25786008)(8936002)(6116002)(6246003)(3280700002)(76176999)(102836003)(7736002)(229853002)(3660700001)(53936002)(53546007)(5660300001)(2906002)(2900100001)(66066001)(3846002)(305945005)(54356999)(50986999)(38730400002)(110136004); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR02MB2724; H:BN6PR02MB2722.namprd02.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: trioscs.com X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2017 13:35:24.4766 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6c994069-c22c-4f36-bd02-2670eaa78799 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR02MB2724 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 13:35:28 -0000 Thank you. You have given me a wealth of information. But as a novice I was= need to study and understand these recommendations. =FDWish me success. := -) Israel Sent from my BlackBerry 10 smartphone. Original Message From: Polytropon Sent: Wednesday, March 15, 2017 5:13 AM To: Israel Gelpi Reply To: Polytropon Cc: freebsd-questions@freebsd.org Subject: Re: LABEL (The FreeBSD Disklabel Editor) =FD On Tue, 14 Mar 2017 21:09:17 +0000, Israel Gelpi wrote: > Hello Sir, I had a SUN enterprise which I tested using a > HDD diagnostics software called SCSI Tool-Box Suite. After > testing I wiped the drive and mistakenly erased the Disk > Label making the drive unusable (the operating system would > not "mount'). Could you advise me on the how, I could > restore/repair the Disk Label and to proper wipe a SUN > without erasing the disk label. If you intend to mount the disk again on Solaris (default Sun operating system), you'd need to do two things: 1. create a label on the disk (disklabel or bsdlabel) 2. initialize the file UFS system (newfs) Without those two (!) things, you won't be able to mount it. (NB: The following explanations are FreeBSD-specific.) The FreeBSD installer does all those things, but you can do it manually, too: Boot FreeBSD from CD or USB in live mode (shell access), then issue the required commands for the disk, for example if /dev/da0 is the disk in question (without testing, just from my memory): # bsdlabel -w /dev/da0 # bsdlabel -e /dev/da0 in the editor, change type for partition "a": "unused" -> "4.2BSD", then save & exit # newfs /dev/da0 If you need additional boot code on that disk (only required if it should be a boot disk), write the boot code as well. The same applies for newfs options you might want to add. Now the disk /dev/da0 can be mounted. It contains a disklabel with one BSD partition covering the whole disk, often called "dedicated" because there i You can find detailed information in "man bsdlabel" and "man newfs". Additional online documentation can be found here: https://www.freebsd.org/doc/handbook/disks-adding.html https://www.freebsd.org/doc/faq/disks.html http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_old_standard_m= br Note that FreeBSD encourages the use of gpart, a tool that can be used both for MBR operations (fdisk + bsdlabel) and GPT operations, but there's nothing wrong in using the "classic tools" for "legacy work". ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...