2005/12/19

Dikejar deadline (lagi?)

Ampuuun, masa terakhir (semoga) kemahasiswaanku adalah tanggal 16 Januari 2006. Gimana, dong? Tuluuung....!

--Edit--
Tanggal 17, deng.

2005/12/07

Alternative SUSE's hal policy

After about two miserable weeks searching for solution about `umounting USB sticks problem', I can finally figure out how to make things work. Somebody told me after my post in SuSEForums.net that someone reported this bug to Novell's bugzilla. Don't know if he/she had this problem before me or not. One thing that bothered me, is that just a few people scream for this annoyingdisturbance. And now is been a couple months after the release of OpenSUSE 10.0.

Some people say that this could not be a problem, since we can simply unplug the usb devices (USB sticks) and it won't ruin the filesystem in the device. ButI don't think it's a convenient nor the right way. A lot of people, I think mostly, only feel comfortable to unplug their USB sticks after the computer told them that it can be safely removed. They probably don't know what is happening in the system. But in some cases, system notification about this is truly necessary, because most people never know if there are processes that accessed files in their storage media. These open files are certainly inhibit the umounting process, and --maybe-- can corrupt the filesystem if we carelessly unplug the still mounted device.According to a workaround by Danny Kukawka about static mount point for removable media and the corrected hal policy for unsynced writing to USB media (10.0 Release Notes), I arrange this alternative hal policy, saved in the file /usr/share/hal/fdi/policy/20thirdparty/90-storage-nosync.fdi.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $Id: 90-storage-nosync.fdi,v 1.0 06/12/2005 idud Exp $ -->
<deviceinfo version="0.2">
<device>
<match key="resmgr.class" string="floppy">
<merge key="volume.policy.mount_option.sync"
type="bool">false</merge>
<merge key="storage.policy.mount_option.users"
type="bool">true</merge>
<match key="block.device" string="/dev/sda1">
<merge key="volume.policy.desired_mount_point"
type="string">USBa0</merge>
</match>
<match key="block.device" string="/dev/sdb1">
<merge key="volume.policy.desired_mount_point"
type="string">USBb0</merge>
</match>
<match key="block.device" string="/dev/sdc1">
<merge key="volume.policy.desired_mount_point"
type="string">USBc0</merge>
</match>
<match key="block.device" string="/dev/sdd1">
<merge key="volume.policy.desired_mount_point"
type="string">USBd0</merge>
</match>
<match key="block.device" string="/dev/sde1">
<merge key="volume.policy.desired_mount_point"
type="string">USBe0</merge>
</match>
<match key="block.device" string="/dev/sdf1">
<merge key="volume.policy.desired_mount_point"
type="string">USBf0</merge>
</match>
</match>
</device>
</deviceinfo>

And adding these lines to the /etc/fstab:
/dev/sda1 /media/USBa0 auto noauto,users,exec 0 0
/dev/sdb1 /media/USBb0 auto noauto,users,exec 0 0
/dev/sdc1 /media/USBc0 auto noauto,users,exec 0 0
/dev/sdd1 /media/USBd0 auto noauto,users,exec 0 0
/dev/sde1 /media/USBe0 auto noauto,users,exec 0 0
/dev/sdf1 /media/USBf0 auto noauto,users,exec 0 0

I didn't create /media/USB{a,b,c,d,e,f}0 directories, because hal will create them before mounting the plugged device and remove them once the device unplugged. After restarting the hal service, then plugging in my USB stick, I get the flash icon appear on my desktop, a dialog window asking me if I to open a file manager or not, and this `mount' output:
idud@nyemot[~]$ mount | grep -i usb
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /media/USBa0 type subfs
(rw,nosuid,nodev,fs=floppyfss,procuid,iocharset=iso8859-1)

After konquering the files --clicking here and there-- I right-click the desktop's flash icon, selecting `safely remove', and the icon disappear. The mount output became:
idud@nyemot[~]$ mount | grep -i usb
usbfs on /proc/bus/usb type usbfs (rw)

It works! Umounting process ended successfully. Believe it or not, this rough solution makes me feel better. I can unplug the stick without any hesitation. But, this can only work for me, so I'm not recommend you to use this.``So, what's your intention in writing this?''

I, too, don't know. Just a hobby, I guess.

--- Edited for better view :D

2005/12/01

OpenSUSE 10.0: sad sad situation

Maksud hati ingin pindah distro (aku gak suka nama Mandreevah). Jadilah pilihan jatuh ke SUSE yang sekarang punya OSS edition. Berhasil di-download dengan penuh penderitaan, sukses diinstall, dan nangis.

Nangis?

Firefox yang sudah dipasangi plugin AdobeReader selalu `segmentation fault', nulis ke media USB lemot abis (ada penyelesaiannya), dan yg paling parah: USB plesdis tak bisa di-umount secara benar (masak harus selalu oleh root?). Oh, iya, tambah parah, tak ada seorangpun yg peduli dengan masalah ini. Tidak developer yg bekerja di SUSE dan Novell, tidak juga para forum supporter.

Bener2 menyedihkan. Terpikir, sih, beberapa solusi, tapi kan harusnya distro sebesar SUSE punya support dan problem-solver yang lebih baik. Entah apa yg harus kulakukan.