Results 1 to 4 of 4

Thread: Critical file disappeared from ntfs after ubuntu installation

  1. #1
    Join Date
    Aug 2012
    Beans
    1

    Exclamation Critical file disappeared from ntfs after ubuntu installation

    I wanted to upgrade a very old version of ubuntu to recent one so I made the following steps:
    1) I created a large (over 30GB) tar.gz archive containing all data from my home directory
    2) Moved it to ntfs partition
    3) Launched ubuntu (12.04) from cd
    4) Resized the ntfs partition during installation
    5) Completed the installation

    Then I launched my brand new ubuntu and wanted to copy the archive so:
    1) I mounted the partition on which the archive was located
    2) I have run 'ls -l' in the place of filesize, modification date etc. '?' appeared instead of any values
    3) I launched Windows XP which is installed on the same machine and it did not show that file on the partition at all
    4) Linux also does not show the file anymore

    I tried running chkdisk under windows which did not fix the problem. I also tried ntfsundelete in Linux which shows that this file cannot be recovered.

    I would appreciate any help very much! I have lost a lot of data. What could have happend? Is there any chance of recovering this file?

  2. #2
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Critical file disappeared from ntfs after ubuntu installation

    Quote Originally Posted by pawelmand View Post
    I wanted to upgrade a very old version of ubuntu to recent one so I made the following steps:
    1) I created a large (over 30GB) tar.gz archive containing all data from my home directory
    2) Moved it to ntfs partition
    ............
    You cannot put System Folders on non-Linux filesystems, NTFS is not a Linux filesystem.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  3. #3
    Join Date
    Jul 2012
    Location
    /tropics/islands/statia
    Beans
    275
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Critical file disappeared from ntfs after ubuntu installation

    Quote Originally Posted by dcstar View Post
    You cannot put System Folders on non-Linux filesystems, NTFS is not a Linux filesystem.
    But he did not put system folders on NTFS, he put one file on it: a tar.gz. All folders and file attributes and metadata that NTFS would not handle are "inside" the tar.gz, so it should not matter, for NTFS it's just a file. Or am I wrong in assuming this?

  4. #4
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Critical file disappeared from ntfs after ubuntu installation

    Quote Originally Posted by Statia View Post
    But he did not put system folders on NTFS, he put one file on it: a tar.gz. All folders and file attributes and metadata that NTFS would not handle are "inside" the tar.gz, so it should not matter, for NTFS it's just a file. Or am I wrong in assuming this?
    You are correct. In the past I've made tar.gz files of complete Linux installations, and stored the tar.gz files on NTFS filesystems. After unpacking the tar.gz file into a different ext4 or ext3 filesystem (and fiddling with UUIDs, /etc/fstab and grub) I've successfully restored a working system on the new Linux filesystem. Many times. As you say, all the metadata are stored in the tarball.

    I think the OP's problem may stem from this:

    2) Moved it to ntfs partition
    3) Launched ubuntu (12.04) from cd
    4) Resized the ntfs partition during installation
    @pawelmand, please clarify. Did you resize the NTFS partition after storing the tar.gz file on it? If so, for future reference, this is very unwise. Before resizing partitions, make sure that you have complete backups of all files on at least one other separate physical medium.

    But this doesn't help your immediate problem. Please expand on this:

    I also tried ntfsundelete in Linux which shows that this file cannot be recovered.
    What exact message did you see?

    However, NTFS is a Microsoft filesystem and if you are trying to undelete files you would be better off with a Windows undelete application. I'm not familiar with any, so I cannot make a specific recommendation, but someone else might. Or googling may come up with something useful but, as ever, be cautious with free Windows software. If you find something that might appear to be suitable, I suggest you do some research first to be sure that it is not riddled with malware.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

Tags for this Thread

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
  •