Score:0

Cannot mount EBS made using another EC2 instance

es flag

I previously made an Amazon EC2 instance and stored some data onto an elastic block storage volume (150 GB sc1). I have since detached the volume and attached it onto another EC2 instance. However, when I try to mount the volume I get the following issues.

~ # sudo mount /dev/xvdf /data

mount: /data: wrong fs type, bad option, bad superblock on /dev/xvdf,
missing codepage or helper program, or other error.

I have tried the following to troubleshoot.

~ # lsblk

NAME     MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT

loop0      7:0    0 55.6M  1 loop /snap/core18/2632
loop1      7:1    0 24.4M  1 loop /snap/amazon-ssm-agent/6312
loop2      7:2    0 49.6M  1 loop /snap/snapd/17883
xvda     202:0    0    8G  0 disk
├─xvda1  202:1    0  7.9G  0 part /
├─xvda14 202:14   0    4M  0 part
└─xvda15 202:15   0  106M  0 part /boot/efi
xvdf     202:80   0  150G  0 disk

~ # dmesg | tail

[    9.401893] audit: type=1400 audit(1673826036.856:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lxc-container-default-cgns" pid=636 comm="apparmor_parser"
[    9.401895] audit: type=1400 audit(1673826036.856:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lxc-container-default-with-mounting" pid=636 comm="apparmor_parser"
[    9.401896] audit: type=1400 audit(1673826036.856:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lxc-container-default-with-nesting" pid=636 comm="apparmor_parser"
[    9.415971] audit: type=1400 audit(1673826036.868:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=637 comm="apparmor_parser"
[    9.415973] audit: type=1400 audit(1673826036.868:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=637 comm="apparmor_parser"
[    9.415975] audit: type=1400 audit(1673826036.868:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=637 comm="apparmor_parser"
[    9.415976] audit: type=1400 audit(1673826036.868:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=637 comm="apparmor_parser"
[    9.418286] audit: type=1400 audit(1673826036.872:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/lxc-start" pid=638 comm="apparmor_parser"
[    9.422318] audit: type=1400 audit(1673826036.876:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=639 comm="apparmor_parser"
[   15.017755] new mount options do not match the existing superblock, will be ignored

Other things I've tried

  • installed nfs-common (successfully installed but still couldn't mount volume)
  • sudo mount -o nouuid /dev/xvdf /data
  • sudo mount -t xfs -o nouuid /dev/xvdf /data
~ # sudo parted -l
Model: Xen Virtual Block Device (xvd) Disk /dev/xvda: 8590MB Sector
size (logical/physical): 512B/512B Partition Table: gpt Disk Flags:

Number  Start   End     Size    File system  Name  Flags 14     
1049kB  5243kB  4194kB                     bios_grub 15      5243kB 
116MB   111MB   fat32              boot, esp  1      116MB   8590MB 
8474MB  ext4

Error: /dev/xvdf: unrecognised disk label Model: Xen Virtual Block
Device (xvd) Disk /dev/xvdf: 161GB Sector size (logical/physical):
512B/512B Partition Table: unknown Disk Flags:

First time poster and tried my best to format. Any help would be greatly appreciated

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.