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