ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] original file date
Date: Wed, 19 Oct 2005 22:18:45 +0400
Message-ID: <20051019181845.GA10737@procyon.home> (raw)
In-Reply-To: <20051019172241.8BD6939A52@mail.elec.ru>

[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]

On Wed, Oct 19, 2005 at 09:22:41PM +0400, Chernetskyy Olexander wrote:
> Проблема такая: При копировании файлов на примонтированые файловые
> системы FAT не сохраняется оригинальная дата файла. Копии штампуются
> датой копирования. Если из опций монтирования убрать quiet - то MC
> матерится "Невозможно сменить режим доступа целевого файла.
> Operation not permitted(1)". Вообщем "низ-з-з-яяяя!". 
> 
> Где-то прочитал, что нужно создать группу, включить себя туда, и в
> строку монтирования добавить опцию gid=номер_группы. Создал,
> включил, добавил в строку монтирования флоппи - не помогло.
> 
> Подскажите правильные опции монтирования, чтобы избавиться от проблемы.
> 
> Вот строки из fstab, исправьте.
> 
> /dev/hda2       /mnt/d  vfat    iocharset=koi8-r,quiet,codepage=866,showexec,umask=0 0 0
> 
> /dev/fd0  /mnt/floppy  subfs   fs=floppyfss,sync,noexec,quiet,showexec,nodev,nosuid,gud=501,umask=0 0 0

Во-первых, здесь опечатка (gud).  Во-вторых, установка gid всё равно
не поможет, поскольку право на установку времени модификации файла
имеет только его владелец.

Проблему можно решить, если указать опцию монтирования user (или
другой вариант, позволяющий запускать mount от пользователя) - в этом
случае для vfat владельцем файлов устанавливается пользователь,
вызвавший mount, и время модификации устанавливается нормально.
Правда, в комбинации с subfs такой вариант по понятным причинам не
работает - только с явным mount/umount.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2005-10-19 18:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-19 17:22 Chernetskyy Olexander
2005-10-19 18:18 ` Sergey Vlasov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051019181845.GA10737@procyon.home \
    --to=vsu@altlinux.ru \
    --cc=community@altlinux.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git