LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-20-2013, 09:56 PM   #1
Spottd
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Rep: Reputation: Disabled
problem with finding files on partitions


I recently put peppermint 3 on my old desktop. I put in an old hd. I booted up peppermint one to make sure the hd wasn't corrupted. Everything was fine. all files showed up. When I put peppermint 3 on and created a new partition the files were still there to my knowledge. I did not format the old partition just made it a little smaller. Now when I go to check the partition that all my files were on ( using as a storage partition ) they are not there, they were replaced with three folders and nothing is there. Please someone help me if there is a way to recover the files that would be great. i thought i had lost all the files on this hd before but they were still there.
 
Old 03-21-2013, 04:37 AM   #2
baloon68
LQ Newbie
 
Registered: Sep 2012
Location: Slovakia
Distribution: Mint 13, Ubuntu 12, opensuse 12.3
Posts: 11

Rep: Reputation: Disabled
try find or ls command

type find / -name nameofsomefile (if you know name of some file, some part of filename is enough, like : "find / -name ZZtop" even if the filename is ZZ TOP - Star Mark Greatest Hits CD2 - 11 - .It's Only Love.mp3) or type "ls" or "ls > contentofHD.txt" (if you're in home dir it writes the main folders/files into textfile so you'll see if they're really here
 
Old 03-22-2013, 06:26 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
How did you make it smaller and what are the new folders?
 
Old 03-23-2013, 10:54 AM   #4
Spottd
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
I used gparted, the storage is an ext4 logical , the os partition is primary and then the swap. To make it smaller i moved the end of it closer to the beggining if that makes since. still kinda new to using gparted. kinda new to linux. i've only been recently getting into the guts of it lately. on my netbook it just ran.
 
Old 03-23-2013, 11:00 AM   #5
Spottd
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
etc. lost+found. and i believe the last one is media. i'm not near my desktop currently but i think thats what the folders are
 
Old 03-23-2013, 11:31 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Post the output of the command
fdisk -l

Those directories together do not make sense but the lost+found does mean it was formatted with a linux file system. Hopefully you are looking at the wrong partition but it is possible that some of the data was overwritten.

testdisk and photorec are a couple of tools that can find files. It would be best to work from a live CD to keep from loosing any more data. If you have enough storage space you can copy the drive to a file via the dd command. You can then play with the file to preserve the drive.
 
Old 03-23-2013, 01:09 PM   #7
Spottd
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
well i typed fdisk-|and got nothing. im sure i input wrong.

edit: sorry fdisk -l and got nothing

Last edited by Spottd; 03-23-2013 at 01:14 PM.
 
Old 03-23-2013, 01:22 PM   #8
Spottd
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b434e

Device Boot Start End Blocks Id System
/dev/sda1 2048 587204607 293601280 83 Linux
/dev/sda2 * 587204608 617204607 15000000 83 Linux
/dev/sda3 617205758 625141759 3968001 5 Extended
/dev/sda5 617205760 625141759 3968000 82 Linux swap / Solaris
 
Old 03-23-2013, 02:35 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Well I assume that sda1 is the partition in question? What was originally on the disk?
 
Old 03-23-2013, 02:55 PM   #10
Spottd
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
yes it is. music and video files. thought i had lost all these files years ago doing a similar thing. low and behold they were still there. that was when i first started using linux. a little better at it now
 
Old 03-23-2013, 03:02 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Curious. It isn't obvious if you made a mistake. As stated you might have some luck running testdisk or photorec.
 
Old 03-23-2013, 03:09 PM   #12
Spottd
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
ok well thanks for the ideas. ill give an update if i find what i did wrong
 
Old 04-17-2013, 10:48 PM   #13
jACK-ah
LQ Newbie
 
Registered: Feb 2013
Posts: 27

Rep: Reputation: Disabled
Ok bro best of luck
 
Old 04-20-2013, 04:05 PM   #14
Spottd
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
well update is i still have no idea what i did wrong. but its ok i now have a fresh disk to work with
 
  


Reply



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
finding all partitions leo114 Linux - Newbie 6 12-31-2009 05:17 PM
Finding files and then finding content within those files... Maeltor Linux - Software 5 03-13-2007 12:06 PM
problem whild finding files nikhil_rs_maheshwari Solaris / OpenSolaris 7 03-17-2006 12:39 AM
Problem with finding files andyfailes Linux - Newbie 2 10-28-2003 01:59 PM
About finding partitions on different disks Kroenecker Linux - Newbie 3 05-16-2003 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:04 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
Open Source Consulting | Domain Registration