Lasiaf 0 Report post Posted September 30, 2004 mintak tolong... kepada yang pakar...aku tanye member aku.. die cakap laju sangat...masuk root bla bla bla.. mount bla blasesonang aku tanyo korang la...aku baru install fedora core 2...camno nak guna hd lain.. aku dah try hardware browser...cth pendrive aku die detect sbg /dev/hta1 tak salah aku a.. camno nak dengo lagu... aik aposal lak ni... ahhh sekali arung je...aiii banyak tanye betul aku ni... abih tu kalo aku tak tanye camne aku nak tau...mount apenyer... sakit ati betul.... kena masuk root duluke??oka... Quote Share this post Link to post Share on other sites
cdR 0 Report post Posted September 30, 2004 aku sebenarnya x dapat jawab soklan ko tapi nak citer sikit la.ari tu member aku tru mount pendrive tapi x dapat. tapi masa tu die pakai RH 9. Quote Share this post Link to post Share on other sites
psychoX 6 Report post Posted September 30, 2004 dulu akutanye aku jawab.. skrg mungkin berguna untuk ko kut. http://forum.putera.com/tanya/index.php?showtopic=2205 Quote Share this post Link to post Share on other sites
Lasiaf 0 Report post Posted October 18, 2004 Ok... kepada sesapa yang tau camne nak denga muzik plak...past problem aku dah selesai... masuk rootusername :rootpassword :ingat balik la password ko...guna hardware browser...cari /dev manestandard pendrive /dev/sda1buat satu folder kat desktopingat... open terminal dulu....mkdir /root/Desktop/Pendrvkumount /dev/sda1 /root/Desktop/PendrvkuHD lain pun sama.... tapi yang bukan NTFS la...tada.... dah ade....aku pun followko ni.. psychoX he he he (aku tanye dan jawab)tapi untuk fat16,32... ntfs tak leh... apesal???? Quote Share this post Link to post Share on other sites
psychoX 6 Report post Posted October 18, 2004 (edited) maksud ko nak dengar MP3?boleh sesgt.. cuba usha dalam google.. ada artikel pasai xmms mp3 plugin.. sbb FC2/RH9 ni default dia..RH buang mp3nye capability sbb masalah lesensing.. .. tapi still bleh main .. kene cari plugin untuk xmms aaa. http://www.mjmwired.net/resources/mjm-fedora-fc2.shtmlhttp://home.gagme.com/greg/linux/fc2-tips.phphttp://stanton-finley.net/fedora_core_2_in...tion_notes.htmlkalau nak ntfs tu.. try taip mount ntfs .. sbb ada aku terlihat dalam satu artikel tu. mungkin bergantung kepada versi kernel kut.. try aa usha .. mount -t ntfs /dev/hdc1 /winhttp://linux-ntfs.sourceforge.net/ Edited October 18, 2004 by psychoX Quote Share this post Link to post Share on other sites
oshiri 0 Report post Posted October 18, 2004 Ini utk mereka yg bermasalah dgn usb (fedora):http://users.actrix.co.nz/michael/usbmount.htmlDan yg ini pulak script oleh mamat german Horo, asalnya utk debian/kanotix, tapi korang boleh cuba, mungkin dgn cikit adjustment boleh guna utk fedora. Script ni akan buat symlink/icon pada desktop secara automatik bila ada digital camera atau usb pen.#! /bin/bash # # /etc/hotplug/usb/usb-storage # Version 20041005 # function makeCameraIcon { cat << EOF > $MYDESKTOPFILE [Desktop Entry] Name=Camera Name[de]=Kamera Type=Link URL=/mnt/camera/ Actions=Sync;Digikam Icon=camera Comment=digital camera Comment[de]=Digitalkamera [Desktop Action Digikam] Exec=/usr/bin/digikam;/bin/sync Icon=camera Name=Organize pictures Name[de]=Bilder verwalten [Desktop Action Sync] Exec=/bin/sync Icon=filesave Name=Save changes Name[de]=Änderungen speichern EOF } function makeStorageIcon { cat << EOF > $MYDESKTOPFILE [Desktop Entry] Name=USBStick [$MYPARTITION] Type=Link URL=$MYMOUNT Actions=Sync Icon=usbpendrive_mount Comment=USB storage device Comment[de]=USB Speichergerät [Desktop Action Sync] Exec=/bin/sync Icon=filesave Name=Save changes Name[de]=Änderungen speichern EOF } DEBUG=0 LOGFILE=$0.log echo "PRODUCT=$PRODUCT" > $LOGFILE MYMOUNT=" " # # (known) digicams are mounted at /mnt/camera # put your own product id here # you find it in the logfile /etc/hotplug/usb/usb-storage.log # case "$PRODUCT" in 3f0/4002/100) # HP photosmart 120 (mass storage mode) MYMOUNT="/mnt/camera" ;; esac # # # # # # # # # # # # doesn't work with kernel 2.6.x # function PRODUCT_to_SCSI { MYGUID=`echo $PRODUCT | awk -F/ '{printf "%04x%04x", strtonum("0x"$1), strtonum("0x"$2)}'` grep -lr "^ *GUID: $MYGUID" /proc/scsi/usb-storage-* | xargs grep -l "^ *Attached: Yes" | cut -d/ -f5 } # # # # # # # # # # # # # # # # # # # # # # # first detecting method # doesn't work with multiple devices # function find_partitions_1 { sleep 1 # find the last line with " sdx: sdxn", x=a,b,c,... and n=1,2,3,4 dmesg | grep "^ \(sd[[:lower:]]\): \1[1234]" | tail -1 | tr -d \<\> | cut -d\ -f3- } # # # # # # # # # # # # # # # # # # # # # # # second detecting method # uses scsidev command already in Kanotix # doesn't work with kernel 2.6.x # function find_partitions_2 { scsidev -lde 2>/dev/null >/dev/null for MYSCSI in $(PRODUCT_to_SCSI $PRODUCT); do ls -l /dev/scsi/sdc${MYSCSI}b0t?u?p*|cut -d/ -f6 done } # # # # # # # # # # # # # # # # # # # # # # # third detecting method # uses scsiinfo and scsi_info commands already in Kanotix # function host_to_partitions { local host=$1 local dev=" " for dev in `scsiinfo -l`; do local HOST="-1" eval $(scsi_info $dev 2>/dev/null) if [ $HOST = $host ]; then cat /proc/partitions | grep `basename ${dev}`[1-9] | awk '{print $4}' fi done } # # function find_partitions_3 { for MYSCSI in $(PRODUCT_to_SCSI $PRODUCT); do host_to_partitions $MYSCSI done } # # # # # # # # # # # # # # # # # # # # # # # simple detecting method for kernel 2.6.x # function find_partitions_26 { sleep 1 ls /sys/$DEVPATH/host[0-9]*/[0-9]*:[0-9]:[0-9]:[0-9]/block | grep sd[[:lower:]][[:digit:]] } # # # # # # # # # # # if [ $DEVPATH ]; then # kernel 2.6 MYPARTITIONS=$(find_partitions_26) else MYPARTITIONS=$(find_partitions_3) fi if [ "$MYPARTITIONS" ]; then echo Partitions found: $MYPARTITIONS >> $LOGFILE else echo "Device not found" >> $LOGFILE set >> $LOGFILE exit 0 fi mkdir -p /var/run/usb echo "#!/bin/sh" > $REMOVER chmod a+x $REMOVER # find KDE user MYXUSER=`who | grep " :0" | cut -d\ -f1` for MYPARTITION in $MYPARTITIONS; do MYDEVICE=/dev/$MYPARTITION if [ "$MYMOUNT" != "/mnt/camera" ]; then MYMOUNT=/mnt/$MYPARTITION fi # check if device or mountpoint already in use mount | grep "$MYDEVICE \| $MYMOUNT " >/dev/null if [ $? -eq 0 ]; then echo -n "Already mounted: " >> $LOGFILE mount | grep "$MYDEVICE \| $MYMOUNT " >> $LOGFILE DEBUG=1 continue fi mkdir -p $MYMOUNT # mount the device, first try fat, vfat, ... MYMOUNTCMD="/bin/mount -s -o quiet,sync,gid=100,umask=002,showexec,user $MYDEVICE $MYMOUNT" echo $MYMOUNTCMD>> $LOGFILE `$MYMOUNTCMD 2>>$LOGFILE` if [ $? -ne 0 ]; then # try ext[23], xfs, ... # warning: with option "sync" the writing is _very_ slow # remove it if you are sure you _always_ do a sync before pulling MYMOUNTCMD="/bin/mount -o sync,user $MYDEVICE $MYMOUNT" echo $MYMOUNTCMD>> $LOGFILE `$MYMOUNTCMD 2>>$LOGFILE` if [ $? -ne 0 ]; then continue fi fi # do a "lazy" umount # (the device is already pulled when this command is executed) echo "/bin/umount -l $MYDEVICE" >> $REMOVER if [ $MYXUSER ]; then MYHOME=$(eval echo ~$MYXUSER) case "$MYMOUNT" in /mnt/camera) MYDESKTOPFILE="$MYHOME/Desktop/Camera.desktop" makeCameraIcon ;; *) MYDESKTOPFILE="$MYHOME/Desktop/USBStick_$MYPARTITION.desktop" makeStorageIcon ;; esac chown $MYXUSER $MYDESKTOPFILE echo "rm -f $MYDESKTOPFILE" >> $REMOVER fi sleep 1 done if [ $DEBUG -ne 0 ]; then set >> $LOGFILE fiSelamat menyecript. Quote Share this post Link to post Share on other sites