Results 1 to 2 of 2

Thread: fsck on a HD question

  1. #1
    Join Date
    Feb 2014
    Location
    Yes
    Beans
    298
    Distro
    Ubuntu 18.04 Bionic Beaver

    fsck on a HD question

    I ran fsck on a couple partitions which checked out ok, then I ran it on an HD and got the below - anyone know what any of this means? )

    Code:
       root@ra-main:~# fsck /dev/sdbfsck from util-linux 2.31.1
    e2fsck 1.44.1 (24-Mar-2018)
    ext2fs_open2: Bad magic number in super-block
    fsck.ext2: Superblock invalid, trying backup blocks...
    fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb
    
    
    The superblock could not be read or does not describe a valid ext2/ext3/ext4
    filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
    filesystem (and not swap or ufs or something else), then the superblock
    is corrupt, and you might try running e2fsck with an alternate superblock:
        e2fsck -b 8193 <device>
     or
        e2fsck -b 32768 <device>
    
    
    Found a dos partition table in /dev/sdb
    xx

  2. #2
    Join Date
    Jun 2014
    Beans
    7,375

    Re: fsck on a HD question

    fsck is run on filesystems which are on partitions. You should be able to check the drive with the command below which checks anything found in fstab:

    Code:
    fsck -A /dev/sdb
    More details at the link below. Note that fsck can not be run on a mounted filesystem.

    https://www.maketecheasier.com/check...em-fsck-linux/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •