Re: how do i use a memory stick on freebsd?
On Sat, May 22, 2010 at 12:33 AM, Gary Kline kl...@thought.org wrote: guys, my wife emptied a bunch of files onto her memory stick; the pc is not here. i have never used one of these devices before and want to know how, if it is possible, to read her dos/lose material from my bsd system. 7.3, dell, plenty of disk, and yes, i know where the usb slot it! do i need to put something in /usr/rc.conf? build a driver or utility? or what? tia, Y'all! clueless in king county. In case you use GNOME, see http://www.freebsd.org/gnome/docs/halfaq.html#q3. If this was a fresh install of 7.3 (GNOME 2.28), just do steps 1 and 2, ignore the instructions before and after, restart GNOME and then plug the drive in. It should get mounted and appear on our desktop (well, it worked for me !) -- Gautham Ganapathy http://lisphacker.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how do i use a memory stick on freebsd?
guys, my wife emptied a bunch of files onto her memory stick; the pc is not here. i have never used one of these devices before and want to know how, if it is possible, to read her dos/lose material from my bsd system. 7.3, dell, plenty of disk, and yes, i know where the usb slot it! do i need to put something in /usr/rc.conf? build a driver or utility? or what? tia, Y'all! clueless in king county. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 99 44/100% Guaranteed Novel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i use a memory stick on freebsd?
On Fri, May 21, 2010 at 12:03:42PM -0700, Gary Kline wrote: guys, my wife emptied a bunch of files onto her memory stick; the pc is not here. i have never used one of these devices before and want to know how, if it is possible, to read her dos/lose material from my bsd system. 7.3, dell, plenty of disk, and yes, i know where the usb slot it! do i need to put something in /usr/rc.conf? build a driver or utility? or what? tia, Y'all! clueless in king county. I have the following line in my /etc/fstab and it works just fine. /dev/da1s1 /stick msdosfs rw,noauto You have to mount after and umount before plugging the stick in or pulling it out. At least that version of FreeBSD does not automount/umount. I don't know about a driver. I didn't have to do anything extra for a driver. That machine currently has FreeBSD 7.1 on a Dell desktop of some sort (I don't even remember), probably an Optiplex. Of course, the above assumes you have a FATnnn (FAT32) MessyDOS filesystem on it.I think you can put a UFS on it, but then MS won't know how to read/write it. jerry -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 99 44/100% Guaranteed Novel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i use a memory stick on freebsd?
On Fri, 21 May 2010 12:03:42 -0700, Gary Kline kl...@thought.org wrote: guys, my wife emptied a bunch of files onto her memory stick; the pc is not here. i have never used one of these devices before and want to know how, if it is possible, to read her dos/lose material from my bsd system. It IS possible, and quite easy. 7.3, dell, plenty of disk, and yes, i know where the usb slot it! It's right beneath the 4X cup holder, I know. :-) do i need to put something in /usr/rc.conf? You mean /etc/rc.conf? Usually not. The /etc/fstab file is where you can add a default mountpoint and mount options for the USB stick. Usually, the device used to access USB sticks is /dev/da (Direct Access), and I think it will be /dev/da0. Check the output of dmesg or the last lines in the system log which will reveal the correct device. FAT file systems correspond to a slice on the device, /dev/da0s1 for example. You can mount this device. If it is your first time, play with it, e. g. # mount_msdosfs -o ro /dev/da0s1 /mnt # ls /mnt Is the intended content there? Good. # umount /mnt Now add a rule to your file system table, making mount attempts more easy. /dev/da0s1 /media/stick msdosfs rw,noauto,noatime 0 0 This could be a valid entry, depending on the existance of the directory. Keep in mind: In order to mount USB sticks as a user you need sufficient permissions to the involved files, as well as to own the mount directory, and finally have vfs.usermount=1 in /etc/sysctl.conf. In case you mount as root (or prefix the mount command with sudo, ur use the system's su), you don't need to pay this attention. You should also read man mount_msdosfs and see if you want to use -m and -M: The old-fashioned FAT file systems don't know file permissions, so files on the USB stick will have the +x attribute, pretending they were executables (which they usually aren't); -m and -M apply masks to cut away this mis-information. It can also be possible that you need the large option -o large. Feel free to also read this: http://www.freebsd.org/doc/en/books/handbook/mount-unmount.html http://www.freebsd.org/doc/en/books/handbook/usb-disks.html In any case, keep an eye on umounting the USB stick before removing it. PCs are bad at hot plug operations. :-) build a driver or utility? This is FreeBSD, not Windows. :-) or what? Or nothing. :-) If you want nothing, KDE and Gnome (and Xfce, too) allow the use of automounting USB devices (if sufficient permissions allow this), through the means of HAL, DBUS and PolicyKit. But that's too complicated to be explained in a man's life. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i use a memory stick on freebsd?
On Fri, May 21, 2010 at 12:03:42PM -0700, Gary Kline wrote: guys, my wife emptied a bunch of files onto her memory stick; the pc is not here. i have never used one of these devices before and want to know how, if it is possible, to read her dos/lose material from my bsd system. 7.3, dell, plenty of disk, and yes, i know where the usb slot it! do i need to put something in /usr/rc.conf? build a driver or utility? or what? You can mount it as root without having to do anything special. Plug in the USB stick, and watch dmesg output to see which device appears. Say you see a device 'da0' appear. Then look in /dev/ to see if there are any slices on it; 'ls /dev/da0*'. You'll probably see one slice, e.g. /dev/da0s1. Then use mount_msdosfs(8) to mount it somewhere. If you want to mount as a regular user, things are somewhat more involved. First, you have to set the sysctl 'vfs.urermount=1'. This has to be done as root, of course. Then you have to make sure that the user in question has read/write access to the devices. Generally, I do that by creating a group called 'usb' with the pw(8) utility, and making users that need access to USB devices a member of that group. Then I add some lines to /etc/devfs.rules to make the usb and related devices accessible to that group; [my_rules=10] add path 'da*' mode 0660 group usb add path 'msdosfs/*' mode 0660 group usb add path 'usb/*' mode 0660 group usb add path 'ugen*' mode 0660 group usb The latter two lines are to make e.g. digital cameras and scanners accessible. This ruleset has to be activated in /etc/rc.conf; devfs_system_ruleset=my_rules You'll need to reboot the system or restart devfs for this to take effect. With these adaptations, you can mount USB drives as a normal user. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpvBv1KyT0X1.pgp Description: PGP signature