Gentoo Archives: gentoo-user-br

From: Raphael MD <raphamejias@×××××××××.br>
To: gentoo-user-br@l.g.o
Subject: Re: [gentoo-user-br] ainda sobre ntfs no diretorio /media
Date: Fri, 15 Jun 2007 01:25:16
Message-Id: 20070615012429.34104.qmail@web36702.mail.mud.yahoo.com
In Reply to: Re: [gentoo-user-br] ainda sobre ntfs no diretorio /media by Davi
1 no meu diretório: /usr/share/hal não há a pasta scripts, no diretório hal so tem a pasta device-manager e fdi. :(
2
3 Davi <davividal@×××××××××××××.br> escreveu: Em Quinta 14 Junho 2007 21:29, Raphael MD escreveu:
4 > Andei lendo na net, e parece que isso de o linux ja ir montando meu hd ntfs
5 > no diretório /media foi obra do udev ou hal. mais isso foi bom, me poupou o
6 > serviço de editar o fstab, mais agora como alguém alem do root acessa esse
7 > hd montado? alguem sabe? pq os usuários não podem!
8 >
9
10 Tem que editar o /usr/share/hal/scripts/hal-system-storage-mount.
11 Lá pela linha 194, procure por
12
13 if [ "$MOUNTTYPE" != "" ]; then
14 [...]
15 fi
16
17
18 Substitua *todo* o trecho por:
19
20 if [ "$MOUNTTYPE" != "" ]; then
21 #
22 # If we are mounting NTFS, check for the existence of ntfs-3g.
23 # The default install location is /usr/local/bin/ntfs-3g, so add
24 # /usr/local/bin to the PATH.
25 #
26 if [ "$MOUNTTYPE" == "ntfs" ]; then
27 PATH="$PATH:/usr/local/bin"
28 NTFS_3G_SUPPORT=`/usr/bin/which ntfs-3g 2>&1 | grep -v no`
29 if [ "$NTFS_3G_SUPPORT" != "" ]; then
30 MOUNTTYPE="ntfs-3g"
31 fi
32 fi
33
34 MOUNTTYPE_EXPANDED="-t $MOUNTTYPE"
35 else
36 MOUNTTYPE_EXPANDED=""
37 fi
38
39 # mount and return status
40 #
41 # The default options are OK for ntfs-3g. We need to add the "nonempty" option
42 since
43 # HAL puts ".created-by-hal" in the mountpoint.
44 #
45 if [ "$MOUNTTYPE" == "ntfs-3g" ]; then
46 RESULT=$(mount -o "nonempty"
47 $MOUNTTYPE_EXPANDED "$HAL_PROP_BLOCK_DEVICE" "$MOUNT_ROOT/$MOUNTPOINT" 2>&1)
48 else
49 RESULT=$(mount -o "noexec,nosuid,nodev$MOUNTOPTIONS"
50 $MOUNTTYPE_EXPANDED "$HAL_PROP_BLOCK_DEVICE" "$MOUNT_ROOT/$MOUNTPOINT" 2>&1)
51 fi
52
53
54 Preciso dizer para fazer backup antes?
55
56 []s
57
58 --
59 Davi Vidal
60 davividal@×××××××××××××.br
61 davividal@×××××.com
62 --
63 "Religion, ideology, resources, land,
64 spite, love or "just because"...
65 No matter how pathetic the reason,
66 it's enough to start a war. "
67 --------------------------------------------------------
68 Por favor não faça top-posting, coloque a sua resposta abaixo desta linha.
69 Please don't do top-posting, put your reply below the following line.
70 --------------------------------------------------------
71
72
73
74 ---------------------------------
75 Novo Yahoo! Cadê? - Experimente uma nova busca.