On 09/23/2018 08:26 AM, Tom Furie wrote:
On Sun, Sep 23, 2018 at 08:20:10AM -0500, Richard Owlett wrote:

root@debian8-6:/home/richard# # purge device
root@debian8-6:/home/richard# dd if=/dev/zero of=/dev/sdb bs=4M

root@debian8-6:/home/richard# # force UID/GID to 'richard', label device,
accept standard defaults
root@debian8-6:/home/richard# mkfs.ext4 root_owner=1000:1000 -L
2018Sept23tst1 /dev/sdb1
mke2fs 1.42.12 (29-Aug-2014)
mkfs.ext4: invalid blocks '/dev/sdb1' on device 'root_owner=1000:1000'

root@debian8-6:/home/richard# # is all ok
root@debian8-6:/home/richard# e2fsck -fy /dev/sdb1
e2fsck 1.42.12 (29-Aug-2014)
e2fsck: No such file or directory while trying to open /dev/sdb1
Possibly non-existent device?

root@debian8-6:/home/richard# # create partition table with Gparted
root@debian8-6:/home/richard# mkfs.ext4 root_owner=1000:1000 -L
2018Sept23tst1 /dev/sdb1
mke2fs 1.42.12 (29-Aug-2014)
mkfs.ext4: invalid blocks '/dev/sdb1' on device 'root_owner=1000:1000'
root@debian8-6:/home/richard# e2fsck -fy /dev/sdb1
e2fsck 1.42.12 (29-Aug-2014)
e2fsck: No such file or directory while trying to open /dev/sdb1
Possibly non-existent device?

You have overwritten the whole sdb device with zeros, including the
partition table. You'll have to recreate your partitions before you can
create filesystems on them.

Cheers,
Tom


I had thought I had created a partition table with Gparted.
It had not reported any error.
I was able to use it to create ext4 partition.

root@debian8-6:/home/richard# e2fsck -fy /dev/sdb1
e2fsck 1.42.12 (29-Aug-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
testagain: 11/1970416 files (0.0% non-contiguous), 167682/7870208 blocks
root@debian8-6:/home/richard#



Reply via email to