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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-06-2014, 01:49 AM
|
#1
|
LQ Newbie
Registered: Feb 2012
Posts: 14
Rep: 
|
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!!!
|
|
|
03-06-2014, 10:05 AM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,549
|
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.
|
03-06-2014, 01:58 PM
|
#3
|
Senior Member
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,805
|
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.
|
03-06-2014, 09:08 PM
|
#4
|
LQ Newbie
Registered: Feb 2012
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by michaelk
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!!!
|
|
|
03-06-2014, 09:23 PM
|
#5
|
LQ Newbie
Registered: Feb 2012
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by rknichols
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!!!
|
|
|
03-07-2014, 03:53 PM
|
#6
|
Moderator
Registered: Mar 2008
Posts: 22,293
|
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.
|
All times are GMT -5. The time now is 02:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|