Date: Sat, 13 May 2017 12:47:37 +0200 From: Matthias Andree <matthias.andree@gmx.de> To: HSR Hackspace <hsr.hackspace@gmail.com> Cc: freebsd-stable@freebsd.org, Theodore Ts'o <tytso@mit.edu> Subject: Re: Formatting a 4k disk on FreeBSD with ext2 Message-ID: <f876d659-7815-f60e-09fe-e15ef05351d6@gmx.de> In-Reply-To: <CAJN=9WFSzLC28%2B353OiCzMzZvHuNP3uU47SBw_rJs0_BSpqEjQ@mail.gmail.com> References: <CAJN=9WFSzLC28%2B353OiCzMzZvHuNP3uU47SBw_rJs0_BSpqEjQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 08.05.2017 um 17:42 schrieb HSR Hackspace: > Hi folks; > > I'm trying to format a 300 GB partition on x86_64 box running running > BSD 10.1 with HW RAID configuration. All my attempt so far have > failed. Below are the logs for same. > > Logs: > > 1. pod1208-wsa07:rtestuser 106] ./mkfs.ext3 /dev/da0p7 > mke2fs 1.43.4 (31-Jan-2017) > Warning: could not erase sector 2: Invalid argument---------> Please show the output of $ env LANG=3D LANGUAGE=3D LC_ALL=3DC mkfs.ext3 -V It should print 1.43.4 for the program _and the library_ (the latter isn't shown above). Then, please run mkfs.ext3 under truss, or under ktrace, and upload the truss or kdump log somewhere and post the URL. Do not mail the log, it's gonna be too big. "Invalid argument" aka EINVAL looks like misaligned access. Now, diskinfo provided the right sectorsize (4096), which it - as of FreeBSD 10.3 - obtains with ioctl(fd, DIOCGSECTORSIZE, §orsize), where sectorsize is a u_int, and unsigned int. Which RAID device is it, what's its structure?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f876d659-7815-f60e-09fe-e15ef05351d6>