Jump to content


Photo

mounting-scripts


  • Please log in to reply
32 replies to this topic

#1
thedicemaster

thedicemaster

    Diehard

  • Members
  • PipPipPipPip
  • 365 posts
  • Gender:Male
  • Devices:Galaxy camera, Note 2
i decided to get some scripts together here to get more function out of USB-storage devices.
i'll add more when i figure out some more useful ways to play with mounting commands.

1: add files on a usbstick/usb hdd to gallery/music players [usbmount]
Attached File  gscript_USB_in_gallery.zip   1.01KB   442 downloads
2: view a 2nd usb-device through docking_usb [docking_usb]
-useful in combination with a usb-hub or PSPgo
Attached File  mount_usb2_as_docking_usb.zip   804bytes   138 downloads
3: fix the usb icon in the ztab file manager [usbdisk]
Attached File  USB_in_ztab_filemanager.zip   861bytes   101 downloads
4: use an ext2 formatted usbstick/drive [system_usb]
Attached File  mount_ext2.zip   813bytes   149 downloads
5: make an ext2 formatted usbstick/drive visible in gallery/music [usbmount]
Attached File  ext2_on_sdcard.zip   1KB   112 downloads
6: force a usb device to mount, allows you to view android phones in mass storage mode. [system_usb]
Attached File  fore_mount_usb.zip   842bytes   181 downloads


untested:
scripts that i haven't tried myself yet, use with care.
b1: view a 2nd FAT partition through docking_usb [docking_usb]
Attached File  partition2_visible.zip   826bytes   90 downloads

notes:
  • all scripts require gscript, download from googlecode or support the developer by downloading it through the market.
  • every package containing mount scripts also has an accompanying unmount script, run the unmount script before removing the usb device.
    if you don't unmount a device properly the device-number changes causing problems with the mount scripts.
  • wait at least 10 seconds after plugging in a usb device before running a mount script, to make sure the usb device is detected.
  • only use storage media that have the 1st partition formatted as FAT(16/32), android can't mount NTFS and these scripts are not designed for mounting linux-specific filesystems
  • read the readme! vital information specific to each set of scripts is in here!
  • don't use scripts with the same tag (ex: [usbmount]) at the same time, and don't use scripts tagged as [docking_usb] if you use an official vega-dock
  • use at own risk, i have tested most of these scripts myself(and use them often) but i can't guarantee they will always work 100% as expected!

Edited by thedicemaster, 13 January 2011 - 06:04 PM.

  • 0

#2
ArthurMachen

ArthurMachen

    Newbie

  • Members
  • Pip
  • 10 posts
  • Devices:HTC Desire, Advent Vega.
Thanks :P thedicemaster I have your view usb in gallery script working after a few go's.
Have you tried it with PowerAmp? Having a spot of difficulty getting it to see all my folders.
It seems to work perfectly seeing and playing my folders starting A & B but nothing from C onwards.
I have my music ordered with one folder for artist then seperate folders within this folder for each album by the artist. Now I have about 40gb of music on this drive ordered this way. Could this amount be an issue as I'm stumpted by why it would register the first 25 or so artists then stop :D Any ideas or anyone else with a similar issue.

  • 0
Bananas are Good!

#3
thedicemaster

thedicemaster

    Diehard

  • Members
  • PipPipPipPip
  • 365 posts
  • Gender:Male
  • Devices:Galaxy camera, Note 2
likely an issue with poweramp.
i'm pretty sure you'd get the same problem if you put all those files on a microSD
technically all poweramp sees is an sdcard with a subfolder "usbmount" filled with music.

  • 0

#4
TerryH

TerryH

    Newbie

  • Members
  • Pip
  • 25 posts
Thank you for your scripts! One general question concerning USB-Storage sticks:
How I unmount the Usb-stick from system? do I need everytime shut down the system or is there any option which I missed?

  • 0

#5
thedicemaster

thedicemaster

    Diehard

  • Members
  • PipPipPipPip
  • 365 posts
  • Gender:Male
  • Devices:Galaxy camera, Note 2
unmounting a usb stick mounted by android(/mnt/usb/system_usb) can't be done using any normal way.
for some reason linux refuses to unmount it.

a 2nd usb-stick mounted using my script under docking_usb however can easily be unmounted with the included unmount script.

  • 0

#6
Toxophilite

Toxophilite

    Newbie

  • Members
  • Pip
  • 43 posts
  • Devices:Advent Vega, Multiple PCs
Thank you thedicemaster for the scripts, which you directed me to from another topic I started on Slideshows.
Particularly the first script, which is exactly what I wanted - to use Gallery Slideshow to view a large number of jpg photos directly from a USB stick.
This works perfectly and I am delighted :D

Can the same script be used to provide playback on the Vega of video files on a USB stick?

  • 0

#7
MaxiP

MaxiP

    Enthusiast

  • Members
  • PipPipPip
  • 270 posts
  • Gender:Male
  • Devices:Motorola Atrix; Vega VC

Thank you thedicemaster for the scripts, which you directed me to from another topic I started on Slideshows.
Particularly the first script, which is exactly what I wanted - to use Gallery Slideshow to view a large number of jpg photos directly from a USB stick.
This works perfectly and I am delighted :D

Can the same script be used to provide playback on the Vega of video files on a USB stick?


You can use mVideoPLayer and add the folder on the usb drive as a location (/mnt/usb/system_usb/Movies)

Works very well and even allows cover art / posters to be added

  • 0
Current device;
Motorola Atrix - rooted & ROMd
Adent Vega - VegaComb v3.2 build 9n
On order;

DropBox referral link

Share files between your PC/Tablet/phone/ipod
2GB free when you sign up but Click on my link
to get an extra free 250mb ;) for the both of us

#8
thedicemaster

thedicemaster

    Diehard

  • Members
  • PipPipPipPip
  • 365 posts
  • Gender:Male
  • Devices:Galaxy camera, Note 2
*updated*
added scripts to mount a usb stick formatted as ext2, i recommend using this only for HD video files of over 4GB.
1 to mount it as a regular usb device, and 1 to mount it on the sdcard for use in gallery/usic application.
thanks to phh for helping me figure out i needed to chmod ext2 partitions if i want to access them in applications that don't request root access.



Toxophilite: the "mount * on sdcard" scripts work with any filetype.
so any video files present on your usb stick will also be shown in gallery(or any video playing app that searches the sdcard for media files) if you use one of those scripts.

  • 0

#9
Toxophilite

Toxophilite

    Newbie

  • Members
  • Pip
  • 43 posts
  • Devices:Advent Vega, Multiple PCs

*updated*
added scripts to mount a usb stick formatted as ext2, i recommend using this only for HD video files of over 4GB.
1 to mount it as a regular usb device, and 1 to mount it on the sdcard for use in gallery/usic application.
thanks to phh for helping me figure out i needed to chmod ext2 partitions if i want to access them in applications that don't request root access.
Toxophilite: the "mount * on sdcard" scripts work with any filetype.
so any video files present on your usb stick will also be shown in gallery(or any video playing app that searches the sdcard for media files) if you use one of those scripts.


Thanks to you and Maxip for your replies - Very helpful. :D

  • 0

#10
thedicemaster

thedicemaster

    Diehard

  • Members
  • PipPipPipPip
  • 365 posts
  • Gender:Male
  • Devices:Galaxy camera, Note 2
another update because i managed to find the reason why android phones in mass storage mode didn't work.
the vega checks for any device with a mass storage mode if it can be mounted straight away, if not it's ignored.
an android phone however will first mount an empty drive(same as a cardreader without a memorycard) and then attaches the sdcard once you enable storage mode.
by this time the vega already has it set to ignore, so it's never mounted.

what my latest script does is essentially no different from what the vega normally does by itself: it mounts the 1st (fat)filesystem of the 1st inserted USB-device as system_usb.
it isn't automated though, so you can just activate it manually after activating storage mode on an android phone.

just don't forget to unmount before unplugging, and don't try to mount 2 devices at the same time using scripts with the same [tag]

  • 0

#11
harmony895

harmony895

    Newbie

  • Members
  • Pip
  • 4 posts
  • Devices:HTC Desire and POV10 Tegra
I use the usbmount script.
In a file manager i see the music i have on a usb stick(fat32) in the folder usbmount.
The music is in a folder and all are mp3.
When i click in the filemanager on it it plays.

But in none of the players, standard or winamp i can't find them back.

Any one know how to solve this??

My tablet is a POV10 tegra, the same as a advent.

  • 0
Greetings Henk.

#12
xathras

xathras

    Enthusiast

  • Members
  • PipPipPip
  • 222 posts
  • Devices:Advent Vega / Archos 70 250GB

I use the usbmount script.
In a file manager i see the music i have on a usb stick(fat32) in the folder usbmount.
The music is in a folder and all are mp3.
When i click in the filemanager on it it plays.

But in none of the players, standard or winamp i can't find them back.

Any one know how to solve this??

My tablet is a POV10 tegra, the same as a advent.


There is a very simple music player called "andLess" which you will find on the Google Market which might suit you until you find something better. It has a very simple interface which is based on a file browser. If you navigate to a folder that has mp3s it will display all the files. You select a file and then it will play that file and any others in the folder below the file you selected until it has played the last file, when it will then stop. So if you select the first file in the folder it will play all the files in the folder and then stop. As I said, it's very simple and doesn't support playlists or random tracks. As a bonus it will also play .flac files.

I use it to play mp3s and flac files on a Kingston 16GB Data Traveler USB flash drive.

Hope this is of use to you. :lol:

  • 0

#13
andrewdolphin

andrewdolphin

    Newbie

  • Members
  • Pip
  • 44 posts
Just want 0ed to say thanks for these - was having an issue with some SD cards from a camera, after a clean format it would auto-mount fine, as soon as I put it in the camera and took some photos it wouldn't mount, despite no obvious changes to the card format.

Your mount script above works to force it to mount.

  • 0

#14
smika

smika

    Newbie

  • Members
  • Pip
  • 1 posts
Is there also a possibility to mount my usb harddisk as a folder on my sdcard? When I open acrobat reader or quickoffice, I can only open files online or on my sdcard, but not on my external HDD.

Thanks a lot,

Smika

  • 0

#15
thedicemaster

thedicemaster

    Diehard

  • Members
  • PipPipPipPip
  • 365 posts
  • Gender:Male
  • Devices:Galaxy camera, Note 2
script 1 should do that.
or script 5 if you formatted it as ext2.

Edited by thedicemaster, 30 January 2011 - 12:55 PM.

  • 0

#16
lambrettalad

lambrettalad

    Newbie

  • Members
  • Pip
  • 40 posts

untested:
scripts that i haven't tried myself yet, use with care.
b1: view a 2nd FAT partition through docking_usb [docking_usb]
Attached File partition2_visible.zip ( 826bytes ) Number of downloads: 12



has any one tested this script?

  • 0

#17
thedicemaster

thedicemaster

    Diehard

  • Members
  • PipPipPipPip
  • 365 posts
  • Gender:Male
  • Devices:Galaxy camera, Note 2
you can try it yourself safely.
worst that can happen is mounting messes up a little and you need to reboot your tablet to use usb drives again.

  • 0

#18
lambrettalad

lambrettalad

    Newbie

  • Members
  • Pip
  • 40 posts
Ah OK, thats good, I was about to give it a try anyway, just reformatting and partitioning my HDD,

Ill post my results.

  • 0

#19
lambrettalad

lambrettalad

    Newbie

  • Members
  • Pip
  • 40 posts
I tried the b1 script but it didn't do anything. Partition 1 visible was but no joy for the second partition.

I have two 29gb partitions with data on both, fat32 with 32 cluster size.

  • 0

#20
thedicemaster

thedicemaster

    Diehard

  • Members
  • PipPipPipPip
  • 365 posts
  • Gender:Male
  • Devices:Galaxy camera, Note 2
could you tell me the contents of /dev/block/vold?
you should have several files there, the ones starting with 8: are most important in this case.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users