It is currently Tue Dec 01, 2009 3:21 am

All times are UTC + 7 hours



Welcome
Welcome to LABORATS for TEKNIK ELEKTRO





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Ntfs3g
PostPosted: Thu Jan 03, 2008 12:24 am 
Celurut
User avatar

Joined: Tue Jan 01, 2008 4:19 pm
Posts: 268
Location: di depan rumah
kalo ada yang masih kesulitan baca/tulis partisi ntfs di linux silakan kopi paste skript di bawah ini
#!/bin/bash
title="Mounter NTFS"
about="Mounter NTFS with ntfs-3g\n\nCopyright(C) GPL\nAuthor : Aji Kisworo Mukti\nhttp://adzymaniac.wordpress.com"
textin="Masukan nama drive : (ex, hda1)"
dirin="Masukan directory tempat source ntfs-3g dan fuse (ex, /root/)"
titlei="Install Ntfs-3g and FUSE"
sukses="Ntfs-3g dan FUSE berhasil di Install"
gagal="Gagal installasi"
apa="Apakah anda akan melakukan lagi?"
trim="Terima kasih telah menggunakan Mounter NTFS"

if test -x /usr/bin/zenity; then
zenity --info --title "$title" --text "$about"
else
echo "Zenity belum tertanam di system anda"
fi

function mount-ntfs {
input=$(zenity --entry --title "$title" --text "$textin" --entry-text "hda1");

if [ $? = 0 ]; then
mkdir -p /mnt/$input
/usr/local/bin/ntfs-3g /dev/$input /mnt/$input
konqueror /mnt/$input &
else
zenity --info --title "$title" --text "$trim"
fi
}

function install-ntfs3g {
dir=$(zenity --entry --title "$titlei" --text "$dirin" --entry-text "direktory");
cd $dir
tar zxvf fuse*;cd fuse*;./configure;make;make install;modprobe fuse;ldconfig
cd ..
tar zxvf ntfs-3g*;cd ntfs-3g*;./configure;make;make install

if test -x /usr/local/bin/ntfs-3g; then
zenity --info --title "$titlei" --text "$sukses"
mount-ntfs
else
zenity --error --title "$titlei" --text "$gagal"
fi
}

function remount {
tanya=$(zenity --question --title "$title" --text "$apa");

if [ $? = 0 ]; then
mount-ntfs
else
zenity --info --title "$title" --text "$trim"
fi
}

if test -x /usr/local/bin/ntfs-3g; then
mount-ntfs
remount
else
install-ntfs3g
fi

silakan copi dan paste terus simpan, dan jangan lupa kasih permisi eksekusi biar bisa di jalanin..
kalo ga mau susah langsung aja install ntfs3g

# apt-get install ntfs-3g ntfs-config ntfsprogs


Berhasil di Debian dan Ubuntu



_________________
plih susah cri kerja pa susah dpt gelar?
Offline
 Profile  
 
 Post subject:
PostPosted: Thu Jan 17, 2008 11:13 am 
User avatar

Joined: Wed Jan 09, 2008 1:14 pm
Posts: 63
Location: Republik Indonesia (baca:endonesia)
wah blom ane coba tu bos....tes dolo ah :)



_________________
:evil: :evil: LandZ :evil: :evil:
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC + 7 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron