read only? but it's NOT read only! :P

Hi all!

Well, I’m having a stupid problem with one hard-drive mount here.

When I first installed it, I make it mount in /media, and it worked properly: used it a LOT for p2p networking.

Today, I noticed that it I decided to put a media dvd on the drive, it (of course) mounted on /media, but (not so obvious at the first time) in the process it disappear with all files and directories of the disk. Not removal, since manual remount of the disk works, but still awful.

Because of that, I decided to change to mount point of that drive on yast, from /media to /downloads.

Perfect, less than a second, and it was working. But not properly.

despite /downloads being described as “drwxrwxr-x 12 root users 16384 Dez 31 1969 downloads” in the ls command, I (only user) cannot read/write on that file.

Verifications: I’m in the “users” group. Tried as root in all forms to change the owner or the permissions of that directory, just to include write permission to the “others”, and the system basically do not allow that for me.

What can be going wrong here, please? Any clue?

Two extra drops of information: strangely enough, when I login, for the first less than 5 minutes I can write data to the disk, but after few time, it disappear. There is no change in the permissions for the /downloads in that meantime. Second, the disk uses fat32 file system, but that wasn’t a problem while it was being mounted as /media.

Please, someone has any idea of what can be going wrong here?

Thanks a lot in advance. :wink:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please post the output of the mount command. It may be that your
drive is mounted read-only (ro) and the mount trumps all filesystem
rights of course.

Good luck.

johannesrs wrote:
> Hi all!
>
> Well, I’m having a stupid problem with one hard-drive mount here.
>
> When I first installed it, I make it mount in /media, and it worked
> properly: used it a LOT for p2p networking.
>
> Today, I noticed that it I decided to put a media dvd on the drive, it
> (of course) mounted on /media, but (not so obvious at the first time) in
> the process it disappear with all files and directories of the disk. Not
> removal, since manual remount of the disk works, but still awful.
>
> Because of that, I decided to change to mount point of that drive on
> yast, from /media to /downloads.
>
> Perfect, less than a second, and it was working. But not properly.
>
> despite /downloads being described as “drwxrwxr-x 12 root users 16384
> Dez 31 1969 downloads” in the ls command, I (only user) cannot
> read/write on that file.
>
> Verifications: I’m in the “users” group. Tried as root in all forms to
> change the owner or the permissions of that directory, just to include
> write permission to the “others”, and the system basically do not allow
> that for me.
>
> What can be going wrong here, please? Any clue?
>
> Two extra drops of information: strangely enough, when I login, for the
> first less than 5 minutes I can write data to the disk, but after few
> time, it disappear. There is no change in the permissions for the
> /downloads in that meantime. Second, the disk uses fat32 file system,
> but that wasn’t a problem while it was being mounted as /media.
>
> Please, someone has any idea of what can be going wrong here?
>
> Thanks a lot in advance. :wink:
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI3tYB3s42bA80+9kRAjVoAJ41plTgjS7OxHuD2TsLCCAoMddJtgCghgAc
4Evubxe1/xWFbGZnSJ3eVGI=
=1DEA
-----END PGP SIGNATURE-----

Hi!

Firstly, thanks a lot for the answer.

At the moment, I’m using an “awckward” work-around: made the disk not be mounted in the boot, and added its mount to my .login, as swell as the unmount for my .logout. By now, it’s working. :wink:

Anyway, about output of the mount command: it never gave me any output message, just mounted the system and that was all. Is there any speciall flag I should use to get the output you need?

Thanks a lot in advance! :slight_smile:

Edit: New information, the work-around still gives me the problem. What the heck is going on here, my God???

Edit 2: Found the proper flags for mount output. But it’s making it rw… :frowning:

mount -v /downloads
/dev/sdc1 on /downloads type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true,user=johannes)

Ok, one extra strange information: Not only the drive is properly mounted as vfat and rw, but also it allows me to write on it small test files by a long time… But, as soon as I start something like azureus (which I used for long time while this drive was mount as /media), which makes hard use of rw activities, it stops on allowing me to keep writing to the disk. Also, it’s not azureus that can’t write on the disk, because I try a 1K file to copy to there with cp command. While I don’t start azureus, it works fine. After I begin p2p programs to write to there, it forbids any writing to the disk… :frowning:

Any clue on this “mistery”?

Ok, let us see:

Good news: I solved the problem.
Bad news: It’s (related to) a bug.
Good news: I’m not sure if it’s an azureus bug, or a linux one.
Bad news: either way, I would consider a bug capable of stoping a device to be written as a DANGEROUS one.

What happened: after I changed the devide mount point, I (obviously) tried to use the already started torrents on a continuous manner. No idea of why, but when azureus tried that, there was a major write error that avoided the device to be written. I choosen to delete everything that was not completed and restart all downloads, and now the device is working properly. :slight_smile:

Again: for me, it’s a reason of concern. if it happened that I decided to the same using my /home (which on my case happens to be in a different disk, but this is lucky), I would have the / or /home access avoided.

Thanks a lot for all help, and hopes it helps somehow. :wink: