* [Comm] Как правильно монтировать CD/DVD с UDF @ 2008-09-17 11:11 Olexander Chernetskyy 2008-09-18 15:06 ` Yury Aliaev 0 siblings, 1 reply; 7+ messages in thread From: Olexander Chernetskyy @ 2008-09-17 11:11 UTC (permalink / raw) To: Community Здравствуйте Стало всё больше таких дисков проходить через мои руки. И не могу избавиться от исполняемости всех файлов. Начинает раздражать. Для iso9660 помогает опция mode=0444 В случае если -t udf матерится стандартным матом. И как определить что на DVD файловая система udf, не ожидая мата команды mount? -- Best regards, ArCher ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Как правильно монтировать CD/DVD с UDF 2008-09-17 11:11 [Comm] Как правильно монтировать CD/DVD с UDF Olexander Chernetskyy @ 2008-09-18 15:06 ` Yury Aliaev 2008-09-22 7:35 ` Olexander Chernetskyy 0 siblings, 1 reply; 7+ messages in thread From: Yury Aliaev @ 2008-09-18 15:06 UTC (permalink / raw) To: ALT Linux Community general discussions Olexander Chernetskyy пишет: > Здравствуйте > Стало всё больше таких дисков проходить через мои руки. И не могу > избавиться от исполняемости всех файлов. Начинает раздражать. > Для iso9660 помогает опция mode=0444 > В случае если -t udf матерится стандартным матом. > > И как определить что на DVD файловая система udf, не ожидая мата команды > mount? > Как монтируете? Если через hal/subfs, то для каждой ФС можно индивидуально указать параметры (и для iso9660 mode=0444 должно вроде как быть по умолчанию в настройках hal-mount-subfs). Если монтируете руками, то fstype Вам в помощь! Удачи! Юрий. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Как правильно монтировать CD/DVD с UDF 2008-09-18 15:06 ` Yury Aliaev @ 2008-09-22 7:35 ` Olexander Chernetskyy 2008-09-23 10:35 ` Yury Aliaev 0 siblings, 1 reply; 7+ messages in thread From: Olexander Chernetskyy @ 2008-09-22 7:35 UTC (permalink / raw) To: ALT Linux Community general discussions > Olexander Chernetskyy пишет: >> Здравствуйте >> Стало всё больше таких дисков проходить через мои руки. И не могу >> избавиться от исполняемости всех файлов. Начинает раздражать. >> Для iso9660 помогает опция mode=0444 >> В случае если -t udf матерится стандартным матом. >> >> И как определить что на DVD файловая система udf, не ожидая мата команды >> mount? >> > > Как монтируете? Если через hal/subfs, то для каждой ФС можно > индивидуально указать параметры (и для iso9660 mode=0444 должно вроде Где можно почитать букварь на тему "индивидуально указать параметры"? > как быть по умолчанию в настройках hal-mount-subfs). Если монтируете > руками, то fstype Вам в помощь! > > Удачи! > Юрий. > > _______________________________________________ > community mailing list > community@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/community На выжодных добрался до компа и провел ряд экспериментов. Знаю, что съемные носители должны монтироваться без вмешательства в fstab. Убираю из fstab строку монтирования моего dev/sr0. Пихаю в привод диск iso9660. Все нормально (за исключением одной досадной мелочи, о которой я скажу позже). Да, mode=0444 действительно уже по умолчанию. А то я его по старой привычке еще с эпохи мастера 2.х в fstab пихаю.:-) Извлекаю диск iso9660 и пихаю диск UDF. На вопрос KDE "что с ним делать" говорю "открывай в новом окне". И тут опаньки! "Доступ к /media/Disc запрещён." Говорю [archer@archer ~]$ ls -l /media/ dr--r--r-- 3 archer 4294967295 272 Сен 16 16:43 Disc И вижу вот такую странную группу - 4294967295. (0xFFFFFFFF) Из под рута я в него попасть могу. Но файлы все равно все исполняемые. Вот вопрос 1: Это только у меня что-то сломалось, или так и должно быть? Да, OS=ALT4.0+branch Дальше. Пишу в fstab /dev/sr0 /media/cdrom udf,iso9660 noauto,user,utf8 0 0 Ничего не изменилось за исключением точки монтирования. К udf от пользователя по-прежнему доступа нету. И все файлы на нем исполняемые. Вот вопрос 2: Что является аналогом mode=0444 для UDF? (Чтение man mount почему-то меня не просветлило) Теперь о той досадной мелочи с iso9660. У меня уйма дисков с русскими именами файлов. Записаны они были еще в эпоху мастера 2.х. А в наши дни для того, чтобы увидеть русские имена файлов на этих дисках нужна опция norock. Она у меня была прописана в fstab. Но с появлением дисков udf начала мешать. Нужно как-то разрулить эту ситуацию. Лучшее решение, наверное, отыскать файл в котором прописываются опции монтирования для iso9660 (тот в котором и mode=0444 прописано). Только почему-то не могу найти. Подскажите где он и как называется? Это вопрос 3. Наверное если его отыскать то это и будет решением всех проблем. Заранее благодарен за ответ. -- Best regards, ArCher ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Как правильно монтировать CD/DVD с UDF 2008-09-22 7:35 ` Olexander Chernetskyy @ 2008-09-23 10:35 ` Yury Aliaev 2008-09-23 16:20 ` Olexander Chernetskyy 0 siblings, 1 reply; 7+ messages in thread From: Yury Aliaev @ 2008-09-23 10:35 UTC (permalink / raw) To: ALT Linux Community general discussions Olexander Chernetskyy scripsit: >>>Стало всё больше таких дисков проходить через мои руки. И не могу >>>избавиться от исполняемости всех файлов. Начинает раздражать. >>>Для iso9660 помогает опция mode=0444 >>>В случае если -t udf матерится стандартным матом. >>> >>>И как определить что на DVD файловая система udf, не ожидая мата команды >>>mount? >>> >> >>Как монтируете? Если через hal/subfs, то для каждой ФС можно >>индивидуально указать параметры (и для iso9660 mode=0444 должно вроде > > > Где можно почитать букварь на тему "индивидуально указать параметры"? > Зависит от системы автомонтирования, которой Вы пользуетесь. Сейчас стандартом (для Сизифа и вроде 4.1) стал hal-mount-subfs, в пакете с которым имеется ряд примеров, с помощью которых можно разобраться, что и как указывать (а также глядя на те .fdi-файлы, которые входят в его состав. Только непосредственно их модифицировать не надо, а по образу и подобию внести нужные параметры в пользовательские файлы (тоже .fdi, но лежащие в другом месте), примеры которых можно найти в примерах. > >>как быть по умолчанию в настройках hal-mount-subfs). Если монтируете >>руками, то fstype Вам в помощь! ... > > Извлекаю диск iso9660 и пихаю диск UDF. На вопрос KDE "что с ним делать" > говорю "открывай в новом окне". И тут опаньки! "Доступ к /media/Disc > запрещён." Тут я пас. Никогда не работал с КДЕ и на дух не переношу этого монстра с искусственным интеллектом. Извините уж... Юрий. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Как правильно монтировать CD/DVD с UDF 2008-09-23 10:35 ` Yury Aliaev @ 2008-09-23 16:20 ` Olexander Chernetskyy 2008-09-23 18:09 ` Sergey Vlasov 2008-09-24 9:17 ` Yury Aliaev 0 siblings, 2 replies; 7+ messages in thread From: Olexander Chernetskyy @ 2008-09-23 16:20 UTC (permalink / raw) To: ALT Linux Community general discussions >> >> Извлекаю диск iso9660 и пихаю диск UDF. На вопрос KDE "что с ним делать" >> говорю "открывай в новом окне". И тут опаньки! "Доступ к /media/Disc >> запрещён." > > Тут я пас. Никогда не работал с КДЕ и на дух не переношу этого монстра с > искусственным интеллектом. Извините уж... Да KDE тут ни при чем. Он же в конечном итоге всё равно издает команду mount. Хорошо, не трогаю KDE, пишу руками: [root@archer ~]# mount -t udf -o utf8 /dev/sr0 /media/udf Та же хрень. Группа получается 4294967295 > > Юрий. > _______________________________________________ > community mailing list > community@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/community -- Best regards, ArCher ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Как правильно монтировать CD/DVD с UDF 2008-09-23 16:20 ` Olexander Chernetskyy @ 2008-09-23 18:09 ` Sergey Vlasov 2008-09-24 9:17 ` Yury Aliaev 1 sibling, 0 replies; 7+ messages in thread From: Sergey Vlasov @ 2008-09-23 18:09 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 2214 bytes --] On Tue, Sep 23, 2008 at 07:20:46PM +0300, Olexander Chernetskyy wrote: > >> Извлекаю диск iso9660 и пихаю диск UDF. На вопрос KDE "что с ним делать" > >> говорю "открывай в новом окне". И тут опаньки! "Доступ к /media/Disc > >> запрещён." > > > > Тут я пас. Никогда не работал с КДЕ и на дух не переношу этого монстра с > > искусственным интеллектом. Извините уж... > > Да KDE тут ни при чем. Он же в конечном итоге всё равно издает команду mount. > Хорошо, не трогаю KDE, пишу руками: > [root@archer ~]# mount -t udf -o utf8 /dev/sr0 /media/udf > Та же хрень. Группа получается 4294967295 У udf, начиная с ядра 2.6.16, есть опции монтирования, которые, возможно, не документированы в man mount: uid=<пользователь> gid=<группа> uid=ignore gid=ignore uid=forget gid=forget umask=<маска> Опции uid=<пользователь> и gid=<группа> задают владельца и группу для файлов, для которых эта информация не задана в файловой системе (соответствующие поля содержат -1, или 4294967295, если прочитать это значение как число без знака). При указании uid=ignore и gid=ignore значения, указанные в uid=<пользователь> и gid=<группа>, используются также и для файлов, для которых на диске заполнены поля владельца и группы (начиная с 2.6.23, uid=ignore и gid=ignore указывать не нужно - при наличии uid=<пользователь> и gid=<группа> указанные значения используются всегда). Наконец, при указании uid=forget и gid=forget для вновь создаваемых файлов в файловой системе не будут сохраняться идентификаторы владельца и группы - в эти поля будет записываться -1. Опция umask=<маска> позволяет ограничить доступ к смонтированной ФС (работает так же, как и umask для процесса - биты, установленные в маске, сбрасываются в правах доступа к файлам). Однако избавиться от "исполняемости" файлов с помощью этой опции не удастся, поскольку она действует и на файлы, и на каталоги, и сброс права на исполнение приведёт к невозможности входа в каталог; отдельных опций fmask= и dmask=, как у vfat, у udf нет. Расширить права доступа по сравнению с сохранёнными в ФС тоже нельзя - можно только сбрасывать указанные в опциях биты, но нельзя устанавливать. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Как правильно монтировать CD/DVD с UDF 2008-09-23 16:20 ` Olexander Chernetskyy 2008-09-23 18:09 ` Sergey Vlasov @ 2008-09-24 9:17 ` Yury Aliaev 1 sibling, 0 replies; 7+ messages in thread From: Yury Aliaev @ 2008-09-24 9:17 UTC (permalink / raw) To: sp_archer, ALT Linux Community general discussions Olexander Chernetskyy пишет: > >>> Извлекаю диск iso9660 и пихаю диск UDF. На вопрос KDE "что с ним делать" >>> говорю "открывай в новом окне". И тут опаньки! "Доступ к /media/Disc >>> запрещён." >> Тут я пас. Никогда не работал с КДЕ и на дух не переношу этого монстра с >> искусственным интеллектом. Извините уж... > > Да KDE тут ни при чем. Он же в конечном итоге всё равно издает команду mount. Как раз при чём. Где-то в нём должны быть параметры, передаваемые команде mount в зависимости от обнаруженной ФС. Где это крутить в hal-mount-subfs я примерно сказал. Про КДЕ ничего сказать не могу. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-09-24 9:17 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-09-17 11:11 [Comm] Как правильно монтировать CD/DVD с UDF Olexander Chernetskyy 2008-09-18 15:06 ` Yury Aliaev 2008-09-22 7:35 ` Olexander Chernetskyy 2008-09-23 10:35 ` Yury Aliaev 2008-09-23 16:20 ` Olexander Chernetskyy 2008-09-23 18:09 ` Sergey Vlasov 2008-09-24 9:17 ` Yury Aliaev
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