Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #205536

Re: Can't scan new disk

From Mark Allums <mark@allums.email>
Newsgroups linux.debian.user
Subject Re: Can't scan new disk
Date 2019-02-20 07:20 +0100
Message-ID <xttoB-6nJ-5@gated-at.bofh.it> (permalink)
References <xrV5D-1kY-1@gated-at.bofh.it> <xs3Pz-6Do-7@gated-at.bofh.it> <xseL0-4VC-3@gated-at.bofh.it> <xsJlL-4CL-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2/17/19 10:59 PM, Alexander V. Makartsev wrote:
> On 17.02.2019 1:21, Mark Allums wrote:
>> On 2/16/19 2:41 AM, Curt wrote:
>>> On 2019-02-15, Mark Allums <mark@allums.email> wrote:
>>>> I just bought a new backup disk, and I want to check it. It's 
>>>> mounted in
>>>> a USB dock.
>>>>
>>>> Running the following gives an error:
>>>>
>>>> root@martha:~# umount /dev/sdb1
>>>> root@martha:~# e2fsck -c -c -C 0 -f -F -k -p /dev/sdb1
>>>> /dev/sdb1 is in use.
>>>> e2fsck: Cannot continue, aborting.
>>>>
>>>> What's causing this and how do I fix it?  It's not MATE; I tried
>>>> rebooting to rescue mode, but that didn't help.
>>>>
>>>> Mark
>>>
>>> People sometimes recommend 'fuser' in cases like these in order to
>>> identify processes that might be accessing the drive.
>>>
>>> I mean, the message says '/dev/sdb1 is in use.' Perhaps it is indeed.
>>>
>>>   fuser -v -m /dev/sdb1
>>>
>>> Worth a try, maybe, as no one else seems to have suggested it.
>>
>> root@martha:~# fuser -v -m /dev/sdb1
>> root@martha:~#
>>
>> No results.  Thanks.
>>
>> Mark
>>
> Maybe something simple like "lsof" command can shed some light on this 
> problem?
>      $ sudo lsof /dev/sdb
>      $ sudo lsof /dev/sdb1

root@martha:~# lsof /dev/sdb
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs
       Output information may be incomplete.
root@martha:~# lsof /dev/sdb1
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs
       Output information may be incomplete.
root@martha:~#


> 
> Also show us an output of "gdisk" command:
>      $ sudo gdisk -l /dev/sdb

root@martha:~# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
   MBR: protective
   BSD: not present
   APM: not present
   GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 23437770752 sectors, 10.9 TiB
Model: ST12000NE0007-2G
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 6AFF425F-836E-4001-840E-FF40A0875F53
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 23437770718
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
    1            2048     23437768703   10.9 TiB    8300
root@martha:~#

Mark

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-16 00:30 +0100
  Re: Can't scan new disk deb <deb@rangingthoughts.org> - 2019-02-16 01:10 +0100
    Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-16 02:50 +0100
  Re: Can't scan new disk songbird <songbird@anthive.com> - 2019-02-16 01:30 +0100
    Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-16 02:50 +0100
  Re: Can't scan new disk David Christensen <dpchrist@holgerdanske.com> - 2019-02-16 04:20 +0100
    Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-16 21:40 +0100
      Re: Can't scan new disk David Christensen <dpchrist@holgerdanske.com> - 2019-02-16 23:20 +0100
        Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-18 04:20 +0100
          Re: Can't scan new disk David Christensen <dpchrist@holgerdanske.com> - 2019-02-19 00:40 +0100
        Re: Can't scan new disk Celejar <celejar@gmail.com> - 2019-02-19 19:00 +0100
          Re: Can't scan new disk David Christensen <dpchrist@holgerdanske.com> - 2019-02-20 03:50 +0100
            Re: Can't scan new disk Celejar <celejar@gmail.com> - 2019-02-20 04:30 +0100
              Re: Can't scan new disk David Christensen <dpchrist@holgerdanske.com> - 2019-02-20 06:30 +0100
                Re: Can't scan new disk Celejar <celejar@gmail.com> - 2019-02-20 14:20 +0100
  Re: Can't scan new disk Curt <curty@free.fr> - 2019-02-16 09:50 +0100
    Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-16 21:30 +0100
      Re: Can't scan new disk "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-02-18 06:10 +0100
        Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-20 07:20 +0100
          Re: Can't scan new disk Curt <curty@free.fr> - 2019-02-20 10:30 +0100
            Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-20 10:30 +0100
              Re: Can't scan new disk Curt <curty@free.fr> - 2019-02-20 11:30 +0100
          Re: Can't scan new disk "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-02-20 10:30 +0100
            Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-20 10:50 +0100
              Re: Can't scan new disk "Thomas Schmitt" <scdbackup@gmx.net> - 2019-02-20 11:30 +0100
            Re: Can't scan new disk Curt <curty@free.fr> - 2019-02-20 13:20 +0100
            Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-24 15:50 +0100
              Re: Can't scan new disk David Christensen <dpchrist@holgerdanske.com> - 2019-02-24 21:30 +0100
                Re: Can't scan new disk David Wright <deblis@lionunicorn.co.uk> - 2019-02-24 23:10 +0100
                Re: Can't scan new disk David Christensen <dpchrist@holgerdanske.com> - 2019-02-25 01:10 +0100
                Re: Can't scan new disk Linux-Fan <Ma_Sys.ma@web.de> - 2019-02-25 12:40 +0100
                Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-25 15:20 +0100
                Re: Can't scan new disk Curt <curty@free.fr> - 2019-02-25 15:50 +0100
                Re: Can't scan new disk Mark Allums <mark@allums.email> - 2019-02-25 16:00 +0100
                Re: Can't scan new disk David Wright <deblis@lionunicorn.co.uk> - 2019-02-25 16:30 +0100
                Re: Can't scan new disk <tomas@tuxteam.de> - 2019-02-26 09:30 +0100
              Re: Can't scan new disk David Wright <deblis@lionunicorn.co.uk> - 2019-02-24 23:10 +0100
              Re: Can't scan new disk "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-02-25 20:20 +0100
          Re: Can't scan new disk Jude DaShiell <jdashiel@panix.com> - 2019-02-20 18:40 +0100

csiph-web