Unable to mount device on Linux (XFS)

164

no, you have to repair it first before it will allow it for you to mount.

however, it is a good idea to save your partition or device with dd or ddrescure to an image file, before you do the repair, if you are concerned about data loss.

Share:
164
Karol Rafalski
Author by

Karol Rafalski

Updated on September 18, 2022

Comments

  • Karol Rafalski
    Karol Rafalski over 1 year

    I have a 3D model in WPF and im trying to make an animation that makes the camera go around my model. I have the following code:

    public MainWindow()
            {
                InitializeComponent();
                RegisterName("thisWindow", this);
            }
    
    private Model3DGroup MainModel3Dgroup = new Model3DGroup();
    private PerspectiveCamera TheCamera;
    private double CameraPhi = Math.PI / 6.0;
    private double CameraTheta = Math.PI / 6.0;
    private double CameraR = 35.0;
    
    private Storyboard storyboard = new Storyboard();
    private DependencyProperty CameraPhiProperty = DependencyProperty.Register("CameraPhiProperty", typeof(double), typeof(MainWindow));
    
    private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // Define model, lights and everthing
            Animations();
        }
    private void RotateAroundTower()
        {
            DoubleAnimation animation = new DoubleAnimation();
            animation.From = 0.0;
            animation.To = 360.0;
            animation.Duration = new Duration(TimeSpan.FromSeconds(10));
            animation.RepeatBehavior = RepeatBehavior.Forever;
    
            storyboard.Children.Add(animation);
            Storyboard.SetTargetName(animation, "thisWindow");
    
            Storyboard.SetTargetProperty(animation, new PropertyPath(CameraPhiProperty));
        }
    
    private void PositionCamera()
        {
            // Translates CameraPhi and CameraTheta to coordinates and positions the camera accordingly
        }
    

    Everything that I have of the animation is pieced together from what i found on msdn, but it seems to me that my problem is that animation changes the DependencyProperty CameraPhiProperty object, and that PositionCamera is never called. How can i pass the value from my DependencyProperty to my CameraPhi and call PositionCamera? Or is there a cleaner solution to animating this?

  • gunnx
    gunnx almost 12 years
    Thanks, do you know if you can run xfs_repair without any flags on the device would that cause any issues or is it best to go straight to "-L" option. I did try the "-n" flag and it output a lot of messages that I'm not sure what they mean.
  • johnshen64
    johnshen64 almost 12 years
    -L removes the logs even if they are dirty, i.e., unwritten data, so you are more likely to lose files. If the dry run shows a lot of errors, it is better to run it without the -L flag, and use the latter only if the repair fails.
  • gunnx
    gunnx almost 12 years
    Just to update it wouldnt run without flags so used -L but all seems ok. I guess there is no way to tell what files are missing. I did find files in lost+found but nothing important.