Walrii
Group: Members
Posts: 3
Joined: Aug. 2006 |
|
Posted: Aug. 25 2006,02:41 |
|
(I'm sure it probably can hot-swap / automount but here is another way just in case )
I did something like this, a script that would load on startup and copy over files in a subdirectory on a usb drive onto the hard drive, if it could find them / mount them. I did it rather inelegantly like this:
edit .xinitrc to include somewhere: 1) "mount /mnt/sda/" (This will mount the usb drive. fstab should already be setup to know what device to use and what file system, DSL did this all for me) 2) "xmms /mnt/sda/" (To play all the songs in there)
If the mount fails (ie no usb drive) then xmms won't play any songs since the read will fail.
But if you wanna swap out usb drives as its playing then that's another thing entirely... This will only have it automatically mounted once X loads up.
|