Wednesday, October 3, 2007

How To Mount NTFS Partitions

Untuk mengakses file bertype NTFS dr windows, agar bisa di baca di linux..
Caranya begini nih:
1.Install using yum, kerna yang di butuhkan ada 3 komponen yg harus diinstall, yaitu fuse, fuse-libs, ntfs-3g, Maka ketik begini nih:
[root@64 data]# sudo yum install fuse fuse-libs ntfs-3g
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
fedora 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 2.3 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package fuse-libs.i386 0:2.7.0-5.fc7 set to be updated
---> Package ntfs-3g.i386 2:1.913-2.fc7 set to be updated
---> Package fuse.i386 0:2.7.0-5.fc7 set to be updated

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
fuse i386 2.7.0-5.fc7 updates 80 k
fuse-libs i386 2.7.0-5.fc7 updates 70 k
ntfs-3g i386 2:1.913-2.fc7 updates 145 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)

Total download size: 296 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): fuse-2.7.0-5.fc7.i 100% |=========================| 80 kB 00:02
(2/3): ntfs-3g-1.913-2.fc 100% |=========================| 145 kB 00:06
(3/3): fuse-libs-2.7.0-5. 100% |=========================| 70 kB 00:02
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : fuse-libs ######################### [1/6]
Updating : fuse ######################### [2/6]
Updating : ntfs-3g ######################### [3/6]
Cleanup : fuse-libs ######################### [4/6]
Cleanup : ntfs-3g ######################### [5/6]
Cleanup : fuse ######################### [6/6]

Updated: fuse.i386 0:2.7.0-5.fc7 fuse-libs.i386 0:2.7.0-5.fc7 ntfs-3g.i386 2:1.913-2.fc7
Complete!
[root@64 data]#


2.Check di mana NTFS partitions berada, ketik ini:
[root@64 data]# sudo /sbin/fdisk -lu /dev/sda | grep NTFS
/dev/sda1 * 63 40965749 20482843+ 7 HPFS/NTFS
/dev/sda5 81931563 156280319 37174378+ 7 HPFS/NTFS


3.Arahkan Mount Point dari harddisk ber NTFS ke linux ginux ginux. Common directories are: /media/ and /mnt/.
[root@64 /]# cd /media/
[root@64 media]# sudo mkdir KhususData
[root@64 media]# sudo mount /dev/sda5 /media/KhususData -t ntfs-3g -rw -o umask=0000


Note:
- KhususData bisa diganti namanya apa aja terserah...
- Gunakan -t ntfs-3g -rw -o umask=0000, artinya partisi itu bisa di read n write.
- Bila ingin read only, gunakan -t ntfs-3g -r -o umask=0222


4. Setting fstab agar pas linux booting bisa langsung di mount drive datanya.
[root@64 media]# sudo gedit /etc/fstab

Munculnya kira-kira begini:

LABEL=/1 / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sdb6 swap swap defaults 0 0


Langsung aja tambahken line berikut pd baris terakhir:

/dev/sda5 /media/KhususData ntfs-3g rw,defaults,umask=0000 0 0

atau kalau Read Only:

/dev/sda5 /media/KhususData ntfs-3g ro,defaults,umask=0222 0 0


psql: FATAL: role "root" does not exist

Tanya:
# psql -d coba
psql: FATAL: role "root" does not exist


Jawab:
# su - postgres
$ createuser root
Shall the new role be a superuser? (y/n) y
CREATE ROLE

/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first.

Tanya:
# service postgresql start

/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first.
[
FAILED]

Jawab:

Ketik begini nih:

# service postgresql initdb
Initializing database: [
OK ]

Terus langkah2 menyiapkan postgres db adalah sebagai berikut:

1. Harus login sebagai user berjudul postgres, agar bisa buat database.
[root@xxx root]# su postgres

2. Masuk ke database template1 (ini adalah nama contoh database yang di sediakan otomatis oleh postgres.

[postgres@xxx root]$ psql template1
Welcome to psql 8.2.3, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

template1=#


3. Membuat database baru selain template1, keRna template1 merupakan databse system jd sebaeknay jgn dipakek. Jangan lupa kasi titik koma di akhirul perintah!!!

template1=# CREATE DATABASE coba;
CREATE DATABASE
template1=#


4. Membuat user baru

template1=# CREATE USER xxx createdb;
CREATE ROLE
template1=#

psql: FATAL: IDENT authentication failed

Tanya:

$ psql -U gue template1
psql: FATAL: IDENT authentication failed for user "gue"


Jawab:

Just modify pg_hba.conf like this (change to trust).

Eh lha pg_hba.conf ada di /var/lib/pgsql/data/

terus di ubah macem ni.....

local all trust
host all 127.0.0.1 255.255.255.255 trust


terus postgresnya di restart...

bash: fdisk: command not found

Tanya:

[xxx@64 ~]$ fdisk
bash: fdisk: command not found


Jawab:

Try [root@64 xxx]# /sbin/fdisk -ls

Keknya ini masalah PATH variable yg blom di set ya.. jadi eksekusinya harus lengkap sm nama di rektorinya.

/sbin/ adalah nama direktori di fedora yg berisi file2 yg bisa di eksekusi langsung.

You can permenantly modify you path variable in ~/.bash_profile (for the bash shell), or temporarily with:

export PATH=$PATH:/sbin


(or whatever directory you wish to add to your path)

Monday, October 1, 2007

Wahduh lupa...!!!

Whoahhhh.. setelah lama mengurus anak n jadih nyokap2 rumah tangga, sekarang sa`atnya gw belajar ttg perkomputeran agar ga jadih katak dalam tempurung lagih.
Yaahhhh susah segh, habis sedikit2 di gangguin urusan rumah, jadi gak konsen betul belajarnya. Tapi ya gag pa pa deh drpd gak sama sekali. Ya toh???

Pertama, gw mao belajar linux ginux ginux...
Gw liat review di blog2, linux lumayan oke.. tapi masih gag mudeng dengan urusan distribusi mana yg mao di pilih. Lha wong banyak bgt!!! pdhl kemampuan otakku untuk mencerna semua info IT gitu kan pas2an...
Mau di upgrade ya gag bisa.. udeh dr sononya kekekeke.....
Tapih gw mao distro yang banyak pengikutnya aja..install2nya juga kudu gampil.. terus bisa buat happy2 dan penampilan menarik.
Walhasil gw donlot Fedora 7 aja, make GPRS tauk donlotnya huehuehuehuhe.. ampun deh lamanya.. berhari2 gak kelar2...
Ditengah jalan... GPRS di putus kerna masalah billling kekekeke.. wahdoh!!!
Tapi di saat genting.. muncullah iklan FASNET, suatu layanan internet kabel di koran2.. murah.. katanya yg 384 cuman 99-an ribon unlimited. Kekekeke.. ashooyyyy...!!!!
Berhubung mumpung lg langganan TV kabel, tinggal telpon ke firstmedia aja menta di konekin internet sekalian, tentu saja dengan menu yg paling murah.. dan maksa2 agar cepet di apply.
Malem itu jua... internet broadband dateng!!! dan GPRS di putus kekekeke...
Yoaaa... donlotan gw bisa selamet deh... dalam sekejab, Fedora 7 berhasil dengan gila2an gw donlot, 3GB one single live DVD.

Nah sekarang mao install.. gw gag ngerti musti pegimane.. ya tinggal di masukin DVDnya... jebul bisa buat boot kekekke... norak deh gw.
Gw modal ngikutin step stepnya doang.. kerna isntallnya make GUI. Walo gak gitu ngarti, tp gw pede aja menjet2 apa yg dia suruh...
Terus.. installnya ternyata loamaaaaaa bgt.. mungkin kerna PC gw uddah uzur kaleee...
Udah selese... gak taunya salah... ada rpm yg lupa diikutin jadi ada servis yg gak aktip.
Ehh.. malah gw install ulang kekekeke... kebiasaan windows bgt ya :-))))

Yah begitulah nasib nyokap rumah tangga kayak gw. Pengen in itu tapi serba gag tau. Akhirnya bondo nekad.
Ini gw lg dalam proses install2 servis2 yg blom lengkap.. tp gag make install ulang dr awal.. cukup install rpm-nya aja seperti yg gw baca dr ustadz google...