$ sudo fdisk -l
[sudo] password for harry:
Disk /dev/sda: 80 GB, 80023749120 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 1045 8393931 83 Linux
Warning: Partition 1 does not end on cylinder boundary.
/dev/sda3 1045 3395 18876375 83 Linux
Warning: Partition 3 does not end on cylinder boundary.
/dev/sda4 3395 9469 48789405 5 Extended
Warning: Partition 4 does not end on cylinder boundary.
/dev/sda5 3395 9469 48789405 83 Linux
Warning: Partition 5 does not end on cylinder boundary.
/dev/sda2 9469 9730 2096482 82 Linux swap
Warning: Partition 2 does not end on cylinder boundary.
Disk /dev/sdb: 32 GB, 32169070080 bytes
255 heads, 63 sectors/track, 3911 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 3912 31423108 c FAT32 LBA
Warning: Partition 1 does not end on cylinder boundary.
rokytnji wrote:32 gig USB pendrive plugged into pcmcia usb 2.0 cardbus in IBM T23 does not automount.
I can see it with fdisk -l
spacefm daemon is not running all the time...only if you have the spacefm desktop turned on or if you launch it manually. I bet your stick would automount with the daemon running.
that's the sucky part of the rox desktop as it stands...usb drives not only don't mount, but they don't even get a folder to mount to. its all manual. There is probably a way to do this with a udev rule, but I'm not sure how at the moment.
spacefm daemon is not running all the time...only if you have the spacefm desktop turned on or if you launch it manually. I bet your stick would automount with the daemon running.
To get automount of usb sticks in rox desktop, just add spacefm -d & to either the startup files you use for each wm, or in etc/desktop-session/startup
anticapitalista wrote:To get automount of usb sticks in rox desktop, just add spacefm -d & to either the startup files you use for each wm, or in etc/desktop-session/startup
the will open in spacefm but you can configure (in the spacefm preferences) to open in rox-filer if you want.
one other cool trick...udisks --mount /dev/devicename will autocreate the mount point in /media based on device label and then by uuid. this can be run as a regular user.
udisks --unmount /dev/devicename will unmount and remove the directory.
Ok. Will try those also. Just what I found so far. I can mount /dev/sdb1 via pcmcia usb port in l/h section of spacefm where it shows. It will take files from home as a user. However. Rox file manager /media/sdb1 stays empty and unmountusb.sh sees no mounted drive to unmount . Just info boys. I guess you you need a ancient laptop, a pcmcia usb 2 port cardbus,
and a pendrive to understand what I am talking about.
The pendrive has a lot of hoops to jump through like"yenta" and such before making it into the file managers.
I am just mentioning this when new users with cave man gear start posting threads like these.
I hope I remember. But in case I don't. I hope you guys remember.
anticapitalista wrote:To get automount of usb sticks in rox desktop, just add spacefm -d & to either the startup files you use for each wm, or in etc/desktop-session/startup
the will open in spacefm but you can configure (in the spacefm preferences) to open in rox-filer if you want.
one other cool trick...udisks --mount /dev/devicename will autocreate the mount point in /media based on device label and then by uuid. this can be run as a regular user.
udisks --unmount /dev/devicename will unmount and remove the directory.
Take that command and put it in a udev rule for block devices. That will keep the depends only to udisks and not entirely spacefm. Iirc there is a udev rules there for build fstab for the live system auto mounting. If that is the case copy that rule and change out the command to udisks which I think would be the easiest
no, udevil is a mounting app. the spacefm configuration is in it settings somewhere. I'll have to find it. Somewhere on the forum I posted a how to on changing the file manager.
***edit*** check out this vid ("Spacefm tricks) and the text under it.
# Get a label if present, otherwise specify one
SUBSYSTEMS=="usb", ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
SUBSYSTEMS=="usb", ENV{ID_FS_LABEL}=="", ENV{dir_name}="usb-%k"
# Global mount options
SUBSYSTEMS=="usb", ACTION=="add", ENV{pmount_options}="--noatime"
# File system specific mount options to avoid auto probing
SUBSYSTEMS=="usb", ACTION=="add", ENV{ID_FS_TYPE}=="ntfs|vfat", ENV{pmount_options}="%E{pmount_options} --umask 007 --charset utf8"
SUBSYSTEMS=="usb", ACTION=="add", ENV{ID_FS_TYPE}=="ntfs", ENV{pmount_options}="%E{pmount_options} -t ntfs-3g"
SUBSYSTEMS=="usb", ACTION=="add", ENV{ID_FS_TYPE}=="vfat", ENV{pmount_options}="%E{pmount_options} -t vfat"
SUBSYSTEMS=="usb", ACTION=="add", ENV{ID_FS_TYPE}=="ext2", ENV{pmount_options}="%E{pmount_options} -t ext2"
SUBSYSTEMS=="usb", ACTION=="add", ENV{ID_FS_TYPE}=="ext3", ENV{pmount_options}="%E{pmount_options} -t ext3"
SUBSYSTEMS=="usb", ACTION=="add", ENV{ID_FS_TYPE}=="ext4", ENV{pmount_options}="%E{pmount_options} -t ext4"
# Mount the device
SUBSYSTEMS=="usb", ACTION=="add", RUN+="/bin/su nn -c '/usr/bin/pmount $env{pmount_options} /dev/%k /media/%E{dir_name}'"
# Clean up after removal
SUBSYSTEMS=="usb", ACTION=="remove", ENV{dir_name}!="", RUN+="/usr/bin/pumount /dev/%k"
Dave wrote:
Take that command and put it in a udev rule for block devices. That will keep the depends only to udisks and not entirely spacefm. Iirc there is a udev rules there for build fstab for the live system auto mounting. If that is the case copy that rule and change out the command to udisks which I think would be the easiest
my two partition thumb drive now automounts both partitions in /media. one by label and one by uuid (one of the partitions doens't have a label, so makes a good test).
***edit*** never mind...only worked on first insertion. that longer one anti posted probably takes care of stuff like that.