LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-06-2012, 06:57 PM   #1
rssn6
Member
 
Registered: Jun 2008
Location: Canada
Distribution: Slackware,Ubuntu, m0n0wall,Freenas
Posts: 66

Rep: Reputation: 16
Can't see files/folder on a formatted ext4 hard drive.


Hi,
I formatted (ext4) my sda (250gb) drive using gparted. Next I created a folder on it an moved some files from my ext HD to this folder. Next boot, I go on the HD (sda) and I don't see my folder just "lost+fund" folder is present. According to gparted and "df -h" the HD is not empty and the percentage used represent the total size of files transferred.

Any suggestion how to recover the folder; make it "visible" ?

Thanks in advance.
 
Old 02-06-2012, 08:22 PM   #2
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 553

Rep: Reputation: 42
How are you trying to look at the files? Commandline or gui? Commands given?

Is the drive being properly mounted? In fstab or manually?

Was gparted on a live-cd or installed on the system?

How is the drive connected to the system?
 
Old 02-07-2012, 06:16 PM   #3
rssn6
Member
 
Registered: Jun 2008
Location: Canada
Distribution: Slackware,Ubuntu, m0n0wall,Freenas
Posts: 66

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by rbees View Post
How are you trying to look at the files? Commandline or gui? Commands given?
I tried commandline under root& user using "ls -a" and the file manager (gui)

Quote:
Originally Posted by rbees View Post
Is the drive being properly mounted? In fstab or manually?
The drive is mounted in fstab like this:
Code:
UUID=bc43d837-fb3a-40af-a7bf-dd9154022e13 /mnt/250a	  ext4    defaults        0      0
Also I tried to umount and remount under a home folder the results are the same.

Quote:
Originally Posted by rbees View Post
Was gparted on a live-cd or installed on the system?
Gparted was installed on the system

Quote:
Originally Posted by rbees View Post
How is the drive connected to the system?
The drive (IDE) is connected to a controller Promise Fast Fx 2200 as JBOD

IF the info above is not enough please let me know

Any suggestions ?
 
Old 02-07-2012, 08:51 PM   #4
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 553

Rep: Reputation: 42
Can you connect the drive to a different machine and see if they are visiable there?

Can you boot a live-cd/usb-stick and see if you can see them? I use System-Rescue-CD

Did you try commenting out the entry in your fstab, restart and then mount it manually with something like

as root # mount /dev/sd?? /mnt/250a (replace /sd?? with your drive/partition info)
 
Old 02-09-2012, 09:08 PM   #5
rssn6
Member
 
Registered: Jun 2008
Location: Canada
Distribution: Slackware,Ubuntu, m0n0wall,Freenas
Posts: 66

Original Poster
Rep: Reputation: 16
What I see different is that the free space increased and now I have just 3gb used on the Hard drive. Very weird stuff.
Anything else I can try before reformat and try to copy again.

Quote:
Can you connect the drive to a different machine and see if they are visiable there?
No changes

Quote:
Can you boot a live-cd/usb-stick and see if you can see them? I use System-Rescue-CD
No changes

Quote:
Did you try commenting out the entry in your fstab, restart and then mount it manually with something like as root # mount /dev/sd?? /mnt/250a (replace /sd?? with your drive/partition info)
No changes
 
Old 02-09-2012, 10:36 PM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing
Posts: 1,395

Rep: Reputation: 194Reputation: 194
One thing you should know is that, if this drive is the same as you are installed on, you should not be doing any kind of formating or partitioning from your install. Could be that you already know this but I thought I should mention it before you do anything again.

If it is the case that they are on the same drive then you should do what ever it is you decide to do from the Live CD.

The entire drive should be unmounted. I currently have 3 drives so all I need to do is switch to an install on another drive.
 
Old 02-10-2012, 06:40 AM   #7
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Lenny, Squeeze, Wezzey
Posts: 553

Rep: Reputation: 42
Thanks for mentioning that widget. I was just assuming that the rssn6 knew that.



What I think I would do is back up your data. Although I personally have never had problems resizing partitions ......... your milage may vary.


Boot a live-cd like the system rescue cd I mentioned before. Do NOT mount the drive.

delete the offending partition

resize the other(s) partitions, just don't make them smaller that the data they contain.

reboot on the drive just to check it

reboot the live-cd

re-resize your partitions back to what you want them to be

mind you this can take a while depending on the size of the dirve


If that dosen't work then I am at a loss other that to wipe the whole drive and start over.
 
Old 02-11-2012, 08:44 AM   #8
rssn6
Member
 
Registered: Jun 2008
Location: Canada
Distribution: Slackware,Ubuntu, m0n0wall,Freenas
Posts: 66

Original Poster
Rep: Reputation: 16
Guys I really appreciate the help, this drive is used to store data, the system is installed on different one. Just want to add, using PartedMagic live-cd I did test on the drive and there were no issues found. I'll post the result after my format.
 
Old 02-11-2012, 11:33 AM   #9
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing
Posts: 1,395

Rep: Reputation: 194Reputation: 194
What size is this drive? There have been some instances where large drives (2TB) have been troublesome in this way.

Breaking it up into smaller partitions seems to help matters.

I use a dual HDD external enclosure for some storage and as a test platform for dev release OS's. Has 2 320gig sata drives in it and I have never had trouble with the thing.
 
Old 02-11-2012, 01:11 PM   #10
rssn6
Member
 
Registered: Jun 2008
Location: Canada
Distribution: Slackware,Ubuntu, m0n0wall,Freenas
Posts: 66

Original Poster
Rep: Reputation: 16
My box has 3x 250gb IDE drives (storage) and 1 x 20gb for the system.
 
Old 02-11-2012, 01:38 PM   #11
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 3,665

Rep: Reputation: 204Reputation: 204Reputation: 204
A thought: How did you move the directory and files? (Specifically, did you use a mv or cp command? If you used cp, did you use the -p option to preserve [most of] the file and directory attributes?)

Have you tried to look at the mounted file system as root?
 
Old 02-11-2012, 01:43 PM   #12
rssn6
Member
 
Registered: Jun 2008
Location: Canada
Distribution: Slackware,Ubuntu, m0n0wall,Freenas
Posts: 66

Original Poster
Rep: Reputation: 16
I used the file manager to copy them. Yes I tried to mount the drive as root same think.
 
Old 02-11-2012, 01:44 PM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Slackware current
Posts: 8,460

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
My box has 3x 250gb IDE drives (storage) and 1 x 20gb for the system.
Are you looking at the correct drive?

Kind regards

Last edited by repo; 02-11-2012 at 01:45 PM.
 
Old 02-11-2012, 01:57 PM   #14
rssn6
Member
 
Registered: Jun 2008
Location: Canada
Distribution: Slackware,Ubuntu, m0n0wall,Freenas
Posts: 66

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by repo View Post
Are you looking at the correct drive?
Yes I do.
 
Old 02-11-2012, 02:01 PM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Slackware current
Posts: 8,460

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
What happens if you copy new files to the drive?

Kind regards
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian squeeze will not show free and used disk space on EXT4 formatted hard drives sillas2001 Debian 5 03-06-2011 06:56 AM
[SOLVED] how to format hard drive in ext4? dynamiteboy Linux - Newbie 6 01-28-2010 11:16 AM
Ext4 and Hard Drive Activity. cwizardone Slackware 3 09-20-2009 03:21 PM
windows formatted hard drive motaguense Linux - Hardware 3 09-15-2004 04:49 PM
I un-formatted my hard drive and I need help restoring it! mrbrianwaters Linux - General 1 03-30-2004 06:28 PM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration