LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-06-2014, 01:49 AM   #1
bvdyi
LQ Newbie
 
Registered: Feb 2012
Posts: 14

Rep: Reputation: Disabled
Smile Why HardDisk info. is inconsistent on PC and Embedded board???


hello:
I have an embedded system board as DVR, and it's OS is Linux.
I make a testing and the steps are as below:
[1]. I use this DVR system to record video files on a 160G HD, then I type "df -h <mounted path>" to check the usage of this HD, and the terminal shows:

Filesystem Size Used Available Use% Mounted on
/dev/ssd 149.0G 50.5G 99.4G 32% /mnt/ssd

that seems right!

[2]. I remove the HD, and then connect it to a WindowsXP PC, then I delete all the video files(50GB). the usage of HD on Win is about 0%...that's no problem!

[3]. connect the HD back to DVR, after mounted, I type "df" command as [1] to check the usage, however it shows:

Filesystem Size Used Available Use% Mounted on
/dev/ssd 149.0G 50.5G 99.4G 32% /mnt/ssd
(I expect that the usage should close to 0%)
it seems not to be changed!~ I have remount many times and change mounting path, even reboot the DVR, but it's no work! I also check the video files deleted on Win, they are all exist, but couldn't playback! I have no idea!

~~~ I repeat step[1][2] ,but connect HD to a Linux PC, after the deletion, then "df" shows:

Filesystem Size Used Available Use% Mounted on
/dev/ssd 149.0G 0.5G 148.4G 0% /mnt/ssd

it shows the right HD info on terminal of Linux PC. then I connect HD to embeddedLinux(DVR), it also show the right HD info.

my experiment 3 is done the HD deletion on WinXP PC and check the HD usage by typing "df" on Linux PC, and the Linux PC shows right HD info.

my conclusion is Linux PC will get right HD info. whatever the operating of HD is on Win or Linux, but the embedded Linux~~~

now I hope to done the deletion on WinXP PC and check HD usage on DVR(embedded Linux) will also get the right HD info. just like Linux PC... How should I do???
any advice will be very appreciate~
thank you!!!
 
Old 03-06-2014, 10:05 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,662

Rep: Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652
How is the formatted, i.e. what file system?

Why do you need to delete the files on a windows PC?
 
1 members found this post helpful.
Old 03-06-2014, 01:58 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,474

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Windows XP will have moved all of your "deleted" files into the recycle bin, where they still take up just as much space as they did before. Windows XP will show the disk usage as "0%" because that space can be reclaimed as needed. Try emptying the recycle bin before reconnecting the HD to your Linux machine.
 
1 members found this post helpful.
Old 03-06-2014, 09:08 PM   #4
bvdyi
LQ Newbie
 
Registered: Feb 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by michaelk View Post
How is the formatted, i.e. what file system?

Why do you need to delete the files on a windows PC?
hello: thanks for reply.
the HD file system is FAT32.
...and sometimes we may watch the recording video on PC or operating on these video files include delete.
I guess the "df" on Linux PC is different with embedded Linux one ...maybe??
do you have any idea?
thank you!!!
 
Old 03-06-2014, 09:23 PM   #5
bvdyi
LQ Newbie
 
Registered: Feb 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
Try emptying the recycle bin before reconnecting the HD to your Linux machine.
hello:
thanks for reply!
I delete those file on WinXP by pressing "Shift + Del", so those deleted files should not be moved to recycle bin, and I have checked recycle bin is empty!...

I am not sure if the "df" on Linux PC is different with embedded Linux one???
do you have another idea???
thank you!!!
 
Old 03-07-2014, 03:53 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,310

Rep: Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213Reputation: 3213
df is df unless you are talking about btrfs. It would be odd that the version of df on this embedded system could have some error.

I get the feeling it is either some automount point issue or how it handles the filesystem. Fat32 shouldn't do that. I don't think but could be some issue with windows not correctly deleting it.

I assume you are a user with enough permission to delete files.

Guess you could use a bartsPE cd to delete it and see it that works.

Last edited by jefro; 03-07-2014 at 03:54 PM.
 
1 members found this post helpful.
  


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
embedded board question elico Linux - Software 8 02-19-2012 03:47 PM
Kernel Testing using LTP on Beagle board (ARM based Embedded Dev Board) Rajender.G Linux - Newbie 0 07-27-2011 06:19 AM
WIFI embedded board Suraj Swami Linux - Networking 1 03-29-2010 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:58 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