LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2014, 08:33 AM   #1
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Rep: Reputation: Disabled
Windows 8 ate my files!


Hi there,

I ran into kind of a problem today, maybe you guys can help me resolve:


I'm running Windows 8.1, CentOS 6.5 and Kubuntu 14.04 on my laptop and I'm usually working under CentOS. But since I needed to use some Windows software, I had to copy some files (1.5 GB) from my CentOS-partition to the Windows partition, since Windows can't read my Linux partitions. Sadly enough, I didn't copy the folder, I moved it to the Windows partition. Everything ran fine and CentOS showed me that the move was completed successfully. But when I booted into Windows, the folder I just moved wasn't there... I checked in CentOS again and of course, suddenly it wasn't there either. So I checked with Kubuntu and when I tried mounting the Windows partition, it complained that Windows hasn't been shut down correctly and it couldn't mount the partition. The same thing happened from a Mint 17 Live-DVD.

So, Kubuntu/Mint wouldn't mount the partition, CentOS would mount it but no folder and Windows would (of course) mount it, too, but still no folder... any guesses where my files could be?

Sadly, I didn't check if the free space on my Windows partition changed from before moving the folder to afterwards, so I don't even know, if the folder could still be on the Windows partition and just isn't displayed or if it has completely vanished. :-(
 
Old 07-02-2014, 09:16 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,959

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
With the Windows partition unmounted, look in the mount point directory.

By default, Windows 8/8.1 hibernates rather than shutting down completely. You need to disable "fast boot" to make it shut down. CentOS should have refused to do a read/write mount of that unclean Windows partition.
 
Old 07-02-2014, 10:50 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
I think - but I'm not really sure - you rebooted that box before the files were written to the disk. The move command writes the files in a cache only and "move was completed successfully" does not mean the files are on the disk. That can be the reason to the broken partition too. I would try testdisk from a live cd to check if there were any recoverable data and fix that partition from windows.
 
Old 07-02-2014, 03:19 PM   #4
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
Thank you for the answers!

CentOS didn't complain about the Windows partition being unclean at all. It mounted it regularly (I mounted it through the Gnome file manager, not through the mount command or anything) and moved the files with the progress bar and everything. After the move was completed and I browsed to the Windows partition in the Gnome file manager, the folder was right there, too. I even modified a file inside that folder on the Windows partition under CentOS. Just after the reboot into Windows, everything was gone (under Windows itself and also under CentOS/Kubuntu/Mint).

When I use TESTDISK to check the directory on the CentOS partition, where the folder was before I moved it, TESTDISK doesn't show the folder as deleted, either (by which I mean: TESTDISK doesn't show that folder at all, neither as there nor as deleted). When I try to check the Windows partition with TESTDISK, it crashes (goes back to the bash prompt).

Last edited by rokyo; 07-02-2014 at 03:20 PM.
 
Old 07-02-2014, 04:03 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Wonder if you put it into a recovery partition?
 
Old 07-03-2014, 03:00 AM   #6
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Wonder if you put it into a recovery partition?
No, there is no recovery partition. I copied the folder from my CentOS user's desktop folder to my Windows user's desktop folder.
 
Old 07-03-2014, 10:34 AM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,959

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Do you have Windows 8.1 configured for "fast boot" (the default)? What version of ntfs-3g do you have installed? Is it the one from the EPEL repo (2011.4.12-5.el6)? I ask because it should not have allowed a read/write mount of an unclean NTFS filesystem, and if it does, that would be a very serious bug. I have nothing with Windows 8, so I have no way to test this.
 
Old 07-03-2014, 03:39 PM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by rokyo View Post
No, there is no recovery partition. I copied the folder from my CentOS user's desktop folder to my Windows user's desktop folder.
Have you tried booting centos up to search for file?
Windows user is very vague as in windows the path may be C:\Documents & Settings\user\<Someuser>\Desktop.
 
Old 07-03-2014, 10:35 PM   #9
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
Do you have Windows 8.1 configured for "fast boot" (the default)? What version of ntfs-3g do you have installed? Is it the one from the EPEL repo (2011.4.12-5.el6)? I ask because it should not have allowed a read/write mount of an unclean NTFS filesystem, and if it does, that would be a very serious bug. I have nothing with Windows 8, so I have no way to test this.
Yep, the package name of the ntfs driver I installed on CentOS is ntfs-3g.x86_64 2:2011.4.12-5.el6. And I didn't change any boot settings in Windows, so I guess it's the default. But I'm not sure that the NTFS filesystem was unclean when I moved the folder. It's been a few weeks since I last booted Windows on that laptop before this happened and none of the Linuces (?) have complained about an unclean filesystem for the Windows partition in the last few weeks. Kubuntu only started complaining about mounting an unclean filesystem after I moved the folder under CentOS, then first booted into Windows, found no folder where I moved it, then booted into Kubuntu; unclean filesystem. So I suspect that the filesystem was only marked as unclean after this one reboot.

If I try mounting the Windows partition under Kubuntu right now, it mounts it perfectly without complaining. Sadly, there has been so much rebooting into various OSses since I started the thread, that I don't know which action actually fixed the unclean filesystem. ^^


Quote:
Have you tried booting centos up to search for file?
Windows user is very vague as in windows the path may be C:\Documents & Settings\user\<Someuser>\Desktop.
Yes, I searched the folder under Windows and under CentOS/Kubuntu/Mint.

I moved the folder from /home/rokyo/Desktop on my CentOS partition to C:\Documents and Settings\rokyo\Desktop

But I didn't move the folder from the command line, so it couldn't be a mistyped folder name. I cut the folder from my CentOS user's Desktop folder in the Gnome file manager, then navigated to the Desktop folder of the same user on the Windows partition with the Gnome file manager and then pasted the folder there. Then came the progress bar, after it finished, the moved folder was right there in the Gnome file manager in the Windows user's Desktop folder and I even edited files there. After reboot into Windows: gone!
 
Old 07-04-2014, 02:50 AM   #10
Archy1
Member
 
Registered: Jan 2014
Distribution: Debian
Posts: 91

Rep: Reputation: 2
Have you tried to create a junk folder and copy it over there again to see if you can reproduce the error?
 
Old 07-04-2014, 03:15 AM   #11
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Archy1 View Post
Have you tried to create a junk folder and copy it over there again to see if you can reproduce the error?
Yes, I have tried copying files from CentOS and Kubuntu to the same Windows desktop folder, they all survive a reboot into Windows. Kubuntu also has stopped complaining about the NTFS filesystem being unclean and it mounts the Windows partition perfectly now. It's just that one folder that vanished on that one day where Kubuntu started complaining about the unclean filesystem.

Could it be that Windows installed some updates during that reboot when the folder vanished and that this has something to do with the data loss? Like I said, before this happened, I hadn't booted Windows for quite some time on this laptop, so maybe it had some updates waiting and one of those broke something?
 
Old 07-04-2014, 04:33 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
" Kubuntu also has stopped complaining about the NTFS filesystem being unclean and it mounts the Windows partition perfectly now. It's just that one folder that vanished on that one day where Kubuntu started complaining about the unclean filesystem."

This isn't good. Normally you have to force a bad filesystem to mount.


Testdisk may have been able to find them.
 
Old 07-11-2014, 03:31 AM   #13
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
I have found out when Linux seems to label the NTFS filesystem as unclean and when not:

Whenever I shut down or reboot Windows 8 through the shutdown option on the Metro start screen or on the Windows login screen and then boot into a Linux, it complains about an unclean FS and won't mount it.

If I shut down or reboot Windows from the shutdown option in "Classic Shell" (a program that brings back the traditional start menu to Windows 8) and then boot into a Linux, everything works! No unclean FS and it's mounted perfectly.

Seems like the makers of Classic Shell incorporated a "clean" shutdown and reboot method into their start menu?

The files are still gone, though. But I found most of them on my backups, so only the work of one day was lost... still weird, though, that the folder just vanished.
 
Old 07-11-2014, 03:50 AM   #14
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 279

Rep: Reputation: 96
Quote:
Originally Posted by rokyo View Post
I moved the folder from /home/rokyo/Desktop on my CentOS partition to C:\Documents and Settings\rokyo\Desktop
You mean 'C:\Users\rokyo\Desktop', don't you?
 
Old 07-11-2014, 08:11 AM   #15
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Captain Pinkeye View Post
You mean 'C:\Users\rokyo\Desktop', don't you?
Yes, Windows 8 makes a link to C:\Users called C:\Documents and Settings, so those should be the same I guess.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows ate my GRUB! PerfectReign Linux - Software 3 10-02-2006 12:11 PM
windows ate my debian install scottybwoy Debian 9 12-09-2005 10:48 AM
help windows ate my MBR AhYup Slackware 1 10-07-2004 05:24 PM
Windows ate my bootloader MediGuy Linux - Newbie 4 10-10-2003 07:10 AM
Windows ate Linux! RedHattedGnome Linux - Newbie 11 03-30-2003 11:11 AM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration