This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Mounting Issues Ext2

Problems, solutions, software
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
dustinduse
NewUser
NewUser
Posts: 3
Joined: 01 Jun 2015 03:21
Status: Offline

Mounting Issues Ext2

Post by dustinduse »

I would like to start off with Yes, I have literally searched for the answer everywhere. Lots of people seem to have similar problems but their solution doesn't seem to work for me. Please note this drive was mounted yesterday just fine. I actually planned to leave it as ext2 for awhile. My other drives are all UFS.

Ill start with Gpart show

Code: Select all

mediaserver: ~ # gpart show
=>       63  312581745  ada0  MBR  (149G)
         63   10667097     1  freebsd  [active]  (5.1G)
   10667160   16787925     2  freebsd  (8.0G)
   27455085  285121620     3  freebsd  (136G)
  312576705       5103        - free -  (2.5M)

=>       0  10667097  ada0s1  BSD  (5.1G)
         0      8129          - free -  (4M)
      8129  10649600       1  freebsd-ufs  (5.1G)
  10657729      9368          - free -  (4.6M)

=>       0  16787925  ada0s2  BSD  (8.0G)
         0      7016          - free -  (3.4M)
      7016  16777216       2  freebsd-swap  (8.0G)
  16784232      3693          - free -  (1.8M)

=>        0  285121620  ada0s3  BSD  (136G)
          0       4499          - free -  (2.2M)
       4499  285114368       1  freebsd-ufs  (136G)
  285118867       2753          - free -  (1.4M)

=>        34  1953525101  ada2  GPT  (931G)
          34          30        - free -  (15k)
          64  1953525056     1  freebsd-ufs  (931G)
  1953525120          15        - free -  (7.5k)

=>        34  1953525101  ada1  GPT  (931G)
          34      262144     1  ms-reserved  (128M)
      262178  1953257824     2  linux-data  (931G)
  1953520002        5133        - free -  (2.5M)

You may also notice i used a program inside windows to create the ext2 file system originally. But it mounted perfectly fine before as GPT partition 2. Now it will not. I have tried everything. Im going to put in some more info.

Code: Select all

mediaserver: ~ # fsck ada1p2
fsck: Could not determine filesystem type

Code: Select all

mediaserver: ~ # fdisk ada1
******* Working on device /dev/ada1 *******
parameters extracted from in-core disklabel are:
cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 238 (0xee),(EFI GPT)
    start 1, size 4294967295 (2097151 Meg), flag 0
        beg: cyl 0/ head 0/ sector 2;
        end: cyl 1023/ head 255/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
Thanks for any help you might offer.
-Dustin

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: Mounting Issues Ext2

Post by daoyama »

Probably you need e2fsck not fsck.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

dustinduse
NewUser
NewUser
Posts: 3
Joined: 01 Jun 2015 03:21
Status: Offline

Re: Mounting Issues Ext2

Post by dustinduse »

Alright this is what i get.

Code: Select all

mediaserver: ~ # e2fsck /dev/ada1
e2fsck 1.42.12 (29-Aug-2014)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/ada1

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>

mediaserver: ~ # e2fsck /dev/ada1p2
e2fsck 1.42.12 (29-Aug-2014)
/dev/ada1p2 was not cleanly unmounted, check forced.
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
/dev/ada1p2: 21506/244187136 files (1.9% non-contiguous), 122599276/244157228 bl                                                                             ocks
mediaserver: ~ #

dustinduse
NewUser
NewUser
Posts: 3
Joined: 01 Jun 2015 03:21
Status: Offline

Re: Mounting Issues Ext2

Post by dustinduse »

Now it mounts fine. ahha

Post Reply

Return to “Data recovery and backups”