Auto-Drive ... Mounts ALL removable media.

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#101 Post by sunburnt »

Rolf; Yep, external card readers are a pain, plug it in to get it to reread it..
Why the hell don`t the dumb manufactures put a [reread] button on it?
Push the button and it disconnects the reader`s USB internally, DUH...

Internal card readers:
My friend`s laptop worked perfectly putting SD cards in and out.
Looks like it`s the Desktop Drive Manager that`s your problem again.
A Desktop Drive Manager isn`t needed with an auto mounter, right?

### I don`t see why the SD card isn`t detected without restarting X.
If you can, after inserting the SD card, look at the file: /proc/partitions
The last entry should be the SD card ( mmcblk0p1 ). Try it...

I`ll have to see why it`s detecting an extended partition, it shouldn`t be...

Also as I said, Barry only gave us: hda1-16, hdb1-9, hdc1-9, hdd1-9.
Now SATA drives use the sda-h nodes too! And there`s fewer of them!
So I`m going to fix this by having Auto-Drive make more device nodes.

I`ll also look at the error messages and how to better handle them.
Last edited by sunburnt on Fri 02 Oct 2009, 03:35, edited 3 times in total.

henryfranz2005
Posts: 33
Joined: Sat 26 Sep 2009, 16:23
Location: Philippines
Contact:

#102 Post by henryfranz2005 »

I've done this steps

The file: usb-auto_NEW.gz is NOT an install file !!!
Gunzip the file in a empty dir. and move the 3 files to: /usr/sbin.
To start it, in Xterm type the command line: usb-auto
To start it at boot you`ll have to add the command line to the file: /etc/rc.d/rc.local
then after I typed the command

it returned..
Starting USB-Auto
ls:cannot access /root/.mozilla/firefox: no such file or directory

please help!

PS it has 4 files not 3..[/quote]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#103 Post by sunburnt »

Hi henryfranz2005; Is usb-auto running? You typed the command into rxvt?
Another words does the command prompt come back to: #
Or does it just hang there, if it hangs, then usb-auto is probably running.
To check, startup another rxvt and type: ps -C usb-auto
The bottom line of the return should have usb-auto at the end of the line.

Odd no one has said anything, it`s because there`s no Firefox installed.
I`ll look at the code this weekend, I`m busy with roxDTicon right now...

### NOTE: I took a quick look and fixed the problem, easy to do...
....................... I`ll post it when I`ve had a chance to look at the other stuff.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#104 Post by sunburnt »

Rolf; I think I found the mounting of the extended partition.... FIXED
And changed from a click to close ErrorBox, to a 2 second auto. close ErrorBox.

I`m working on the "making more sdx device nodes" problem...

##### Do you know how to do this ??????????

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#105 Post by sunburnt »

.
### Auto-Drive beta 1 ....... A few bug fixes and a new name!

It has code to make more device nodes but I disabled it.
I`m trying to find out if Puppy makes them itself...

Anyone know if Puppy makes device nodes as they`re needed?

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#106 Post by rhadon »

Hi sunburnt,

the new ErrorBoxes are great. I like them.

The bad news: only the first partition of my us-stick will be mounted by auto-drive.
From usb-hd there are only 3 of 8 mountable partitions mounted (sdd1= the first primary part., sdd5= the first logical part. and sdd10=.the first part. after swap).

HTH

~ Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#107 Post by sunburnt »

Rolf; Could you plug in your USB stick and HD and post this file: /proc/partitions
Then I can see what Auto-Drive is getting for info so maybe see what`s wrong.

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#108 Post by rhadon »

Hi sunburnt,

here is /proc/partitions:

Code: Select all

major minor  #blocks  name

   7        0      80656 loop0
   7        1     786432 loop1
   7        3      23152 loop3
   7        4      11980 loop4
   7        5      12092 loop5
   8        0    3940272 sda         ## internal chip
   8        1    3903763 sda1           # ntfs
   8        2      24097 sda2             # swap
   8        3       8032 sda3             # ext3
   8       16    7880544 sdb        ## internal chip
   8       17    7871818 sdb1          # ntfs   
   8       32   16052224 sdc        ## sd-card 
   8       33    2048256 sdc1          # ext3
   8       34    5277352 sdc2          # FAT32, truecrypt container
   8       35    8723295 sdc3          # ext3
   8       48   15663104 sdd        ## usb-stick 
   8       49    2096451 sdd1          # ext3  prim. part.
   8       50    1108485 sdd2          # swap (vfat)  prim. part.
   8       51   10651095 sdd3          #ext3  prim. part.
   8       52          1 sdd4            # extended Part. 
   8       53    1028128 sdd5          # swap  log. part.
   8       54     771088 sdd6           # vfat  log. part.
   8       64  312571224 sde        ## usb-hd
   8       65   14884191 sde1          # vfat  prim. part.
   8       66          1 sde2          # extended Part.
   8       67  218965950 sde3         # vfat  prim. part..
   8       68    5598652 sde4         # ext3  prim. part.
   8       69    3911796 sde5         # ntfs  log. part.
   8       70      40131 sde6         # vfat  log. part.
   8       71     273073 sde7         # ext3  log. part.
   8       72   16916413 sde8         # ext3  log. part.
   8       73    1052226 sde9         # swap  log. part.
   8       74    8715231 sde10        # ext3  log. part.
HTH
~ Rolf
Last edited by rhadon on Sun 04 Oct 2009, 07:36, edited 1 time in total.
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#109 Post by sunburnt »

Thanks Rolf, but I`m having trouble telling which partition is what.
Please edit your post above and list to the right what the partitions are.
For the sda, sdb, sdc ,sdd ,sde, list what the drive is, SATA, USB HD, Pen
etc., and for the partitions, tell which sdxn are: Ext2, Fat, Swap. etc.

I ask because sdd doesn`t have 10 partitions, only 6, but 4 is the logical.
But sde does have 10 partitions, but sde2 is the logical partition. ???

I really don`t see why it failed to work, I didn`t change much...

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#110 Post by rhadon »

OK, did it.

I can understand, it's a little bit confusing. Which drive is sdd and which one sde is depending from the order I plug them in.

Because I was playing hard with partitions ( moving, shrinking, deleting ASO) there is no logical order.

As I told you before, my drives are not formatted/partitioned as usual, it's more like a 'worst case' ( e.g. no one needs a lot of swap partitions).

~ Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#111 Post by sunburnt »

Thanks Rolf; Suggestion: Your EeePC has 1 GB of ram, you don`t really need a swap.
I`d convert all of them except the HD swap to another FS type ( you can just change them).
A swap is used often depending on the amount of ram, so it`ll wear out any flash device.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#112 Post by sunburnt »

Beta 2, bug fixes and a few improvements.

Try it again Rolf and let me know...
I wish I had an internal card reader and a USB HD to do testing on...

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#113 Post by rhadon »

Very good news :D

Everything seems to work fine now ( for me).

Only exception: sde10 isn't detected but that seems to be a problem of the drive nodes. I don't think there are much people with more than 9 partitions :lol: .

BTW: I really didn't need a swap partition with puppy and 1GB ram and will change it soon. I thought that such a 'worst case' scenario is best for testing your auto drive and it's better to find bugs now than later :D

~ Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#114 Post by sunburnt »

Rolf; Your correct as usual... There is only sde1-8, so no device node !!!

I have put code to make more nodes into auto-drive, but it`s disabled.
It makes the nodes, but I have no way of knowing if they really work.
If you would like to test it that would be great!

There`s a chance it could mess up your devices in /dev (but it shouldn`t).
Make a backup copy of your Save file and gzip it. (always a good idea).
And for extra insurance have a USB flash the you can boot a rescue of
Puppy from if it comes to that (always a good thing to have around also).
So then you can USB boot, wipe the Save file and gunzip the backup one.

If you don`t want to risk testing the node making code, I understand...
Let me know what you think... Terry

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#115 Post by rhadon »

No risk, no fun :lol:
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#116 Post by sunburnt »

.
### ROLF.............. I just noticed an error... LET ME POST a NEW VERSION.
.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#117 Post by sunburnt »

Rolf; New version posted, instructions below to enable the node code:
Near the top of the file:auto-drive you`ll see the top line shown below.
Disable it by putting a pound sign "#" at the start of the line, like below.
A little further down just above the line: "echo ### Starting: Auto-Drive",
is: "fi", disable it by putting the pound sign at the front of the line also.

Code: Select all

#if [ 0 -eq 1 ];then	####################	Disabled
( Code to make new nodes here. )
#fi
echo '####################   Starting:   Auto-Drive'
This allows the node code to run.
Make sure that you have a backup copy of your Save file!
And a rescue Puppy boot USB flash drive to restore the Save file.
Or your PC can multi. boot to other versions of Puppy with Grub.

Then test and post if your USB HD has all of it`s partitions mounted.
Many thanks... Terry

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#118 Post by rhadon »

Hi sunburnt,

first try fails. I disabled both lines, started auto-drive, nothing happens. I get no prompt and no message about starting auto-drive. If I connect my hd, the new icons appear on the desktop but not mounted and no message in console. Must hit ctrl + c to stop.

~ Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#119 Post by sunburnt »

Rolf; Are there new device nodes in: /dev? There now should be: sda1-20 to sdm1-20.
All nodes from sda to sdm should have 1-20 partitions.

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#120 Post by rhadon »

No there are no new nodes.
Maybe for interest:
after booting I find in /dev/ among others:
hda, hda1-16
hdb, hdb1-9
hdc, hdc1-9
hdd, hdd1-9
sda, sda1-15
sda, sda1-15
sdb, sdb1-15
sdc, sdc1-15
sdd9, sdd10

then I start auto-drive, no change.
If I connect usb-hd (sdd) there are new nodes: sdd, sdd1-10

That's all

~ Rolf
Last edited by rhadon on Wed 07 Oct 2009, 18:23, edited 1 time in total.
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

Post Reply