maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900? (https://talk.maemo.org/showthread.php?t=57177)

MaxMania 2010-06-26 09:24

MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
MicroSD file system will be corrupted when I tray to copy file via WinSCP in Nokia N900

I copy files to /media/mmc1 to store in my Micro SD memory

Do you have this problem ?
Is there any solution ?

thank you for your consideration of this question

fnordianslip 2010-06-26 10:44

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
I swapped my 16GB uSDHC cars for a new 32GB uSDHC, and after about a week, gPodder failed downloading a podcast reporting a readonly filesystem on the card.

The easiest way to fix it is to plug the N900 into another computer and use that to fix it (fsck, Disk Utility or whatever Windows uses).

I recall this happening once before with the old card, but it doesn't seem to be a repetitive thing. Perhaps the new cards aren't properly formatted in the factory.

MohammadAG 2010-06-26 10:59

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
Quote:

Originally Posted by fnordianslip (Post 730017)
I swapped my 16GB uSDHC cars for a new 32GB uSDHC, and after about a week, gPodder failed downloading a podcast reporting a readonly filesystem on the card.

The easiest way to fix it is to plug the N900 into another computer and use that to fix it (fsck, Disk Utility or whatever Windows uses).

I recall this happening once before with the old card, but it doesn't seem to be a repetitive thing. Perhaps the new cards aren't properly formatted in the factory.

fsck is installed on the N900 by default, but not in user's path.
Code:

root
umount /dev/mmcblk1p1
fsck /dev/mmcblk1p1
mount /dev/mmcblk1p1 /media/mmc1

rootsh has to be installed.

fnordianslip 2010-06-26 11:05

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
Quote:

Originally Posted by MohammadAG (Post 730023)
fsck is installed on the N900 by default, but not in user's path.

Indeed, but if the user is sat at their puter, then plugging in the N900 and fixing it with the host PC is probably easier. Using fsck on the device is also good :)

MaxMania 2010-06-26 11:50

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
dear freidns, I don't want to fix MicroSD.
I want to fix the problem with OpenSSH (WinSCP) :confused:

fnordianslip 2010-06-26 11:52

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
Quote:

Originally Posted by MaxMania (Post 730060)
dear freidns, I don't want to fix MicroSD.
I want to fix the problem with OpenSSH (WinSCP) :confused:

I doubt that there is a problem with OpenSSH or WinSCP. I use them all the time (well, I use WinSCP at work where I have a Windows PC).

Joorin 2010-06-26 11:55

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
Quote:

Originally Posted by MaxMania (Post 730060)
dear freidns, I don't want to fix MicroSD.
I want to fix the problem with OpenSSH (WinSCP) :confused:

You need to supply more details.

How do you copy things? As which user? Do you do a sync after the copy has been done to make sure that all data has been transferred?

If you copy files as root to the wrong place, you can very much destroy things.

fnordianslip 2010-06-26 12:01

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
Also be sure to use a well behaved text editor if you are editing files through WinSCP. You don't want Windows style line-ending in your conf files - that could be considered corruption, I guess, but not at the filesystem level.

MaxMania 2010-06-26 16:23

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
I connect to N900 as root user & file protocol is SFTP

when I try to send file, WinSCP raises the following error
Code:

cannnot create remote file
'/media/mmc1/files/photo1.jpg.filepart'
General failure (server should provide error description).
Error code: 4
Error message from server: Failure
Request code: 3

I should say every thing is ok when I write to original memory of N900

MaxMania 2010-06-28 12:57

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
I think there is no one to use MMC with WinSCP ;-)

j.s 2010-06-29 20:38

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
Quote:

Originally Posted by MaxMania (Post 732596)
I think there is no one to use MMC with WinSCP ;-)

I have been using scp to copy files to the microSD card in my n900 every day for months. But the card is formatted ext3 and I use scp since all my computers run linux.

wmarone 2010-06-29 20:39

Re: MicroSD filessystem corrupts when I use WinSCP to transfer file in Nokia N900?
 
There are at least two SSH servers available for the N900, which one did you install?


All times are GMT. The time now is 19:00.

vBulletin® Version 3.8.8