Page 1 of 8

Startmount-0.5.5 Drive automount and program starter

Posted: Sun 03 Jan 2010, 10:23
by tasmod
Startmount-0.5.5 - 01micko and tasmod

An application to read your drives available for mounting and to let you choose which one(s) or all, to automount at next boot.
It can also auto-run a chosen program(s)

So, boot, it will mount drive and launch a program, if chosen.

Handy to start music, launch a browser or whatever your choice from menu of default apps.

Choices, choices, choices. :D


The gui is self explanatory, choose your drive partition(s) to automount next boot, click apply and that's it. Same for program(s) to start at boot.

At next boot the partition(s) will mount at startup and the program chosen will launch. Or just one, maybe a drive or maybe a program only, your choice.

The program list is auto-generated from your default applications. If you install another application as default, say Firefox instead of Sea-Monkey it will auto update.
There is an entry field for you to enter your own program choice and start parameter.

USB support is experimental.

Usual caveat, use at your own risk!


Update:
Version 0.5.5

Small bugfix for ntfs filesystem.


Update:
Version 0.5.3

Small bugfix

Bugfix for .desktop and menu entry '&' in file corrupting tray desktops setting.

Bugfix for multiple entries in rc.local

GUI Change and support for multiple partitions.

Option to choose all drives mounted at start up or just all Linux drives.

USB bug patch added.

Option in menu/preferences for all drives to mount at start up.

Live CD support added. This is assuming you save back, it's in the menu.


Version 0.3.0

Menu option to delay start of program chosen until wireless connection is up and running.

Update to support USB better.

The GUI has been changed to a tabbed version and a menu system added to select the options.

Drive free space is now a menu choice to add to drive details.

Also now a menu choice.
A splash screen opens on boot to remind you drive(s) are selected for mounting at boot time.

On the Programs side there is an entry box for user to enter their favourite application and start parameter. This must be the start command for the application entered.

Posted: Sun 03 Jan 2010, 10:23
by tasmod
Version 0.4.0 released..

Posted: Sun 03 Jan 2010, 10:24
by 01micko
prog gui

Posted: Sun 03 Jan 2010, 10:25
by trio
Hello :lol: :lol: :lol:

Posted: Sun 03 Jan 2010, 11:14
by dejan555
Um, I'm a bit confused, my home partition hda5 is not ommited and I'm not sure which hda2 is I think it's extended partition, see attached:

Code: Select all

sh-3.00# fdisk -l

Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf845406c

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1275    10241406    7  HPFS/NTFS
/dev/hda2            1276        2431     9285570    f  W95 Ext'd (LBA)
/dev/hda5            1278        2366     8747392+  83  Linux
/dev/hda6            2367        2431      522081   82  Linux swap / Solaris


Posted: Sun 03 Jan 2010, 11:20
by trapster
Nice.
Does this also unmount them when shutting down?

Posted: Sun 03 Jan 2010, 11:22
by tasmod
dejan,
that gui is different to one expected.
what u using, frugal, full etc. JWM

Posted: Sun 03 Jan 2010, 11:24
by dejan555
Okay, I see you have:

Code: Select all

grep -v "Extended"
in script but fdisk shows "Ext'd" on my part as you can see, maybe has to do with fdisk version? I'm trying this out on my 214X frugal install on laptop.

Posted: Sun 03 Jan 2010, 11:26
by 01micko
trapster wrote:Nice.
Does this also unmount them when shutting down?
Relies on shutdown script for that

Posted: Sun 03 Jan 2010, 11:29
by dejan555
I see that it also uses fstab that's good but I reported once in Bugs forum issue with ntfs rw and fstab, how do you handle that?
http://www.murga-linux.com/puppy/viewtopic.php?t=47699

Posted: Sun 03 Jan 2010, 11:40
by tasmod
If you pass 0 0 parameter it will bug, however if you just leave as auto it will detect and carry on.

When 'disable' is used, all files used are deleted, except program of course. Original fstab restored.

Posted: Sun 03 Jan 2010, 11:41
by tasmod
I expected to see drive info as well, this is derived from 'tooltip' so it appears in 214 it is not there.

Posted: Sun 03 Jan 2010, 11:47
by tasmod
Now added pic.

Posted: Sun 03 Jan 2010, 11:47
by dejan555
auto detects ntfs and mounts it ro, doesn't use ntfs-3g

Posted: Sun 03 Jan 2010, 11:52
by davesurrey
Works well on my test setup when I tried it for hda and hdb drives and also the usb stick sda. This is running under ttuuxxx's 214RC2.
Except that it does display hdb5 which is my home partition.

Code: Select all

bash-3.00# fdisk -l 

Disk /dev/hda: 81.9 GB, 81964302336 bytes 
255 heads, 63 sectors/track, 9964 cylinders 
Units = cylinders of 16065 * 512 = 8225280 bytes 
Disk identifier: 0xcdd71121 

   Device Boot      Start         End      Blocks   Id  System 
/dev/hda1   *           1        3824    30716248+   7  HPFS/NTFS 
/dev/hda2            3825        4079     2048287+  82  Linux swap / Solaris 
/dev/hda3            4080        7351    26282340   83  Linux 
/dev/hda4            7352        9964    20988922+  83  Linux 

Disk /dev/hdb: 251.0 GB, 251000193024 bytes 
255 heads, 63 sectors/track, 30515 cylinders 
Units = cylinders of 16065 * 512 = 8225280 bytes 
Disk identifier: 0x7a4a68f9 

   Device Boot      Start         End      Blocks   Id  System 
/dev/hdb1               1        2685    21567231   83  Linux 
/dev/hdb2   *        2686        5468    22354447+  83  Linux 
/dev/hdb3            5469        7973    20121412+  83  Linux 
/dev/hdb4            7974       30515   181068615    5  Extended 
/dev/hdb5            7974       11850    31141971   83  Linux 
/dev/hdb6           11851       11875      200781   83  Linux 
/dev/hdb7           11876       13545    13414243+  83  Linux 
/dev/hdb8           13546       15215    13414243+  83  Linux 
/dev/hdb9           15216       17785    20643493+  83  Linux 
/dev/hdb10          17786       30515   102253693+   b  W95 FAT32 

Disk /dev/sda: 8254 MB, 8254390272 bytes 
255 heads, 63 sectors/track, 1003 cylinders 
Units = cylinders of 16065 * 512 = 8225280 bytes 
Disk identifier: 0x000c3013 

   Device Boot      Start         End      Blocks   Id  System 
/dev/sda1   *           1        1003     8056566    b  W95 FAT32 
bash-3.00#
Now that this app is just over an hour old may I make a feature request?
:-)
It seems that once StartMount has been setup and rebooted it continues to mount the selected drives after each subsequant reboot. I can see the logic here but it could also not be what folk want/expect.

So could StartMount display the current setup rather than display a fresh screen after a reboot. eg if I have already set it to start hda1 and hdb3 then can it remind me by displaying this fact after a fresh reboot (you might not need disable then.)

Hope that's clear.
Thanks as ever for your efforts.

Dave

EDIT:
just seen your pics and mine is like dejan's as I am using 214X RC2. ie no drive info.

Posted: Sun 03 Jan 2010, 12:02
by tasmod
For ease we used the drive tooltip text rather than working out drives size, why not if already done?

It appears that in 214 this tooltip is not there or else in another location.

On desktop when you hover over drive, is tooltip displayed ?

Posted: Sun 03 Jan 2010, 12:03
by 01micko
Seems it is a feature introduced later on davesurrey, not available in 2.14, amazing it doesn't just error out...

If you boot a puppy 4X you will see tooltips when you hover over a drive, that's the info.

Cheers

Posted: Sun 03 Jan 2010, 12:05
by dejan555
I'll test this later on dpup I have like 10 partitions on my desktop PC.

Posted: Sun 03 Jan 2010, 12:21
by tasmod
dave,

One of the features we intended to add was an autostart of selected apps.

Scenario: 8)

Pmusic.

Start computer, windows partition or other partition mounts with your music files in it, pmusic starts and uses playlist. there, instant music.

Will look into further options for running the Startmount app. :D

Posted: Sun 03 Jan 2010, 12:50
by zigbert
Mmmmmmmm!!!!!!!!!!!!! :D :D :D

Goes of course straight into Stardust


Sigmund