[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: ntfs automount
- From: "Allan Pinto" <allan316@xxxxxxxxx>
- Date: Tue, 11 Nov 2008 10:16:36 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=ai8ank5hVyVOhRXjHJKm9Xxmwn5wFUjnddOrnR0wu9E=; b=gtaRPm1CHUkJfVOuoMDRKLw0tkkoTh5y2bLP0ISCLbtpGX0/KzPr9irhM25WWcwcti cd1mdNUElo6jeYMy4kO7D66Vunj86A5aYNac06u+Y/TuXmpta+T/N/nBxKbtM7waJpIy +k62HelaklWss9kbWF2vjcocZXRBWJR+vKd8U=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=pjwzjQBAHpjGx5bFu0+C3TzjPU7/JPj1ggPc/EdxskA5RGhdTUtGl2lJ4/n7yjWt+r Pqz9p5mQ87a/BgOUvkyw7dXLddjfg0XLxu7QReuqQJXqn2vPJBqrrrS8Cl1cRtE6VhjJ x4NSPmEhcZC/5a60xuABnYLfK1xbbSBcmCcks=
Hi guys,
pls dont laugh, i have started to learn scripting only after i
installed slitaz , ntfs automounting was a problem i wasnt able to
figure out,
so writing this script solved it , it runs at bootup and correctly
mounts my ntfs harddrives . i wanted to put it up on the forum but
then figured that
somebody could end up screwing up is machine because of this, so could
any of you confirm if this is ok
#!/bin/sh
#script to automount your NTFS hard drives
NTFSDEVICE=$(fdisk -l | grep NTFS| cut -d ' ' -f1 )
ARRAY=($NTFSDEVICE)
length=${#ARRAY[@]}
i=0
while [ $i -le $length ]
do
echo ${ARRAY[$i]}
echo "i will make this directory /mnt${ARRAY[$i]}"
mkdir -p /mnt${ARRAY[$i]}
ntfsmount ${ARRAY[$i]} /mnt${ARRAY[$i]}
i=$((i+1))
done
--
Thanx and regd's.
Allan.
http://www.in2dwok.com
---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/