maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   Can't delete files (https://talk.maemo.org/showthread.php?t=19829)

Fire Hazard 2008-05-06 15:13

Can't delete files
 
I've posted before about having a problem about not being able to delete files after putting them on my N810. And it's happen again. Though this time I figure out how I triggered it. I put some files from my external hard drive on my N810 and once I do that the files cause my whole N810 internal memory to become a read only file :eek: It's like a computer virus. All files from my external hard drive are undelete able, even as root!!!!! Yes, thats right. I "sudo su" (I use Ubuntu) and chmod 777 the files and they stay in read only! Someone please help me fix this awful problem I have.

I'm not use to root not having the power of God and be able to do anything and everything I want to do. Makes me feel like I'm a Windows user who can't delete files all over again :mad:

ace 2008-05-06 16:08

Re: Can't delete files
 
The filesystems's probably being mounted readonly due to errors. Run "mount" in a terminal and look for the readonly flag (ro).

I believe N810's had a problem with the internal memory being partitioned incorrectly from the factory, which leads to corruption. Search the forums.

If that's not the problem, run a filesystem check on it.

In Linux, you'd do something like this (as root):
Code:

umount /media/mmc2
fsck.vfat -r /dev/mmcblk0p1
mount /dev/mmcblk0p1 /media/mmc2

Alternately, "mount -o remount,rw /media/mmc2" will change the filesystems to read-write without the check.

Good luck.

Fire Hazard 2008-05-06 16:30

Re: Can't delete files
 
Quote:

I believe N810's had a problem with the internal memory being partitioned incorrectly from the factory, which leads to corruption. Search the forums.
I've noticed that a while back and followed the instructions to fix that potential problem ;) But I still have problems.

Quote:

Code:

umount /media/mmc2
fsck.vfat -r /dev/mmcblk0p1
mount /dev/mmcblk0p1 /media/mmc2


That sounds all fine and dandy but Ubuntu ::shakes fist:: is very weird. It just auto mounts everything. I use to manually mount everything with Gentoo (which I preferred). But yeah, if I remember right, I tried manually mounting some stuff and was giving me weird replies back like it couldn't find the command "mount" :eek:

But now that someone has told me how to get root in Ubuntu ("sudo su" instead of just "su") I'll mess around and see if I can manually do it. I'll get back to you with my results.

Fire Hazard 2008-05-07 20:36

Re: Can't delete files
 
Well I tried and it's a no go. I left the command output on my computer at home but I remember what it said though. I it was complaining about how /dev/mmcblk0p1 didn't exits in the fstab. I would of added it but I'm not sure how too. I'll go find out how too on the web and get back to you.

If what your telling me to doesn't work then I'm just going to format the drive like I did last time. THAT solved my problem with file permissions. I'll just have to make sure I don't add any more of my files from my external hard drive back on to my N810. I should formate my external hard drive too but I have yet to back up all 160 GBs to DVDs.

Benson 2008-05-07 21:14

Re: Can't delete files
 
Quote:

Originally Posted by ace (Post 178449)
Code:

umount /media/mmc2
fsck.vfat -r /dev/mmcblk0p1
mount /dev/mmcblk0p1 /media/mmc2


You should be running this on the tablet. Are you?

ace 2008-05-07 21:26

Re: Can't delete files
 
Quote:

Originally Posted by Fire Hazard (Post 178946)
I it was complaining about how /dev/mmcblk0p1 didn't exits in the fstab.

I should have been more clear. I believe the N810 assigns the internal memory card to /dev/mmcblk0p1. However, when hooked up to a computer via USB, it's almost certainly different. If your Ubuntu machine is anything like mine, USB mass storage devices get assigned to /dev/sdb, /dev/sdc, etc.

Run "sudo fdisk -l" to list partitions of attached devices to find the actual device. Or run "dmesg | tail" just after plugging in to display the latest system messages, the device designation will be in there.

Then umount (since the drive was probably automatically mounted) and fsck.

Fire Hazard 2008-05-08 17:52

Re: Can't delete files
 
Quote:

You should be running this on the tablet. Are you?
Nope, that would explain alot :p

I tried again but mmc2 seems to always be in use. Know of anyways to force it to umount?

ace 2008-05-08 19:59

Re: Can't delete files
 
Close all programs, then deactivate swap (try again if it doesn't work the first time).

Fire Hazard 2008-05-17 15:38

Re: Can't delete files
 
I try over and over again and I can't seem to have the internal memory card not be in use :confused:. Any way to over ride this? I can't even formate the card to start from scratch.

ace 2008-05-17 16:03

Re: Can't delete files
 
Try "lsof | grep mmc2" to find what apps have which files are open on the card. lsof stands for list open files.


All times are GMT. The time now is 22:27.

vBulletin® Version 3.8.8