
PenDrive automount
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Excuse me for Translation
This script make an automount of (only) your pen drive... If this function in your Gnu/Linux Distro is not present download it...
Other patches or hints will be appreciated...
An other way to make automount is to download hal(d) or ivman that communicate to gnome-volume-manager or kde-volume-manager (see cvs) the insertion of a pendrive or DVD or CD...
This method requires udev and its rules...
PLEASE LEFT A COMMENT!!
Coming soon:
Mount a crypted pendrive
soya
16 years ago
Report
oliverthered
16 years ago
It's still a little buggy but is maturing quite quickly.
Report
soya
16 years ago
Report
trink
16 years ago
Does someone know, which way to go, ivman or kvm?
Thanks
Report
kaplun
16 years ago
It makes me crazy with:
checking for BLKGETSIZE64... no
configure: error: BLKGETSIZE64 is not defined
It seems I am the only person who is suffering this trouble on the Net! :'-(
Report
PaT
16 years ago
Well, maybe this will help you build it (HAL 0.4.7):
Remember, im using Slackware, maybe this wont apply to your distro...
I use the kernel headers version 2.4.29, but it seems the fix also work with 2.4.27. I dont know about headers version 2.6.x.
In /usr/include/linux
find the file called fs.h,
then find the line beginning with:
#define BLKGETSIZE64 _IOR(0x12,114,sizeof(u64))
and change it to:
#define BLKGETSIZE64 _IOR(0x12,114,size_t)
I know, i know, changing kernel headers is not a "nice thing to do" TM, but as I saw many times in many forums, it seems to be a bug in the kernel headers, so... Well, maybe its not a bug there, but in HAL (more likely), but anyway, it makes it compile dammit!
Note: it also helps if you disable doc building... check configure --help.
Report
kaplun
16 years ago
Searching through headers of 2.6.10 vanilla, I found that BLKGETSIZE64 was already defined as you told me. Looking through config.log I found other problems concerning this request:
In file included from /usr/include/linux/fs.h:19,
from conftest.c:35:
/usr/include/linux/prio_tree.h:22: error: parse error before "pgoff_t"
/usr/include/linux/prio_tree.h:27: error: parse error before "pgoff_t"
/usr/include/linux/prio_tree.h: In function `prio_tree_iter_init':
/usr/include/linux/prio_tree.h:29: error: `iter' undeclared (first use in this f
unction)
/usr/include/linux/prio_tree.h:29: error: (Each undeclared identifier is reporte
d only once
/usr/include/linux/prio_tree.h:29: error: for each function it appears in.)
/usr/include/linux/prio_tree.h:29: error: `root' undeclared (first use in this f
unction)
/usr/include/linux/prio_tree.h:30: error: `r_index' undeclared (first use in thi
s function)
conftest.c: In function `main':
conftest.c:40: warning: 'main' is normally a non-static function
conftest.c: In function `main':
conftest.c:43: warning: implicit declaration of function `ioctl'
conftest.c:43: warning: nested extern declaration of `ioctl'
It seems great problems are there in the linux headers.
My question is, if I compile hal with kernel 2.4.xx (so without sysfs) will it run with 2.6.xx?
Thanks a lot for your advice and knowledge!
Report