LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unmounting usb port (https://www.linuxquestions.org/questions/linux-newbie-8/unmounting-usb-port-684586/)

Allanitto Newbee 11-19-2008 06:36 AM

unmounting usb port
 
Hi, I would like to know how to mount and unmount one particular usb port assuming I do have a device already inserted into it. My plan is to create a script and run it on start up at rc.d but this I already know. I only need to know how to mount and unmount.

P.S: Im running Slackware 12

cheerzzzz..

Hern_28 11-19-2008 07:26 AM

Running hal and dbus?
 
Think manual mount is:

mount -t vfat /dev/(device) /(mountpoint)

Note vfat is the file system.. might have to change if different.

and unmount is:

umount /dev/(device)

or

umount /(mountpoint)

Allanitto Newbee 11-19-2008 08:55 AM

Thanks for the quick reply Hern.. but I think I have got a different situation.

Here it is...

I'm using D-link wireless usb for my connection.
ndiswrapper and driver for my wireless usb were installed correctly and I can use them...

the problem...

I need to boot my machine without the wireless usb. After the script "modprobe ndiswrapper" in rc.d which I already did... then I can insert the usb again and run my script to bring up my wlan0... after all those steps I don't have any problem with my connection even if I leave it for days and weeks idling ... it's superb.

My plan...

at start-up I will make a script 1) to disable the usb port where my wireless usb is inserted and
2) then the ndiswrapper -m to modprobe
3) mount the usb port again
4) and lastly... the script to bring up wlan0

that way I think the machine will think that I just inserted my wireless usb after the modprobing.

all that in one script.

Thanks

Hern_28 11-19-2008 09:12 AM

Ahh.
 
Think i know what you want and this link i think gives you the commands you need for your script:

http://alien.slackbook.org/dokuwiki/...ckware:network

Allanitto Newbee 11-19-2008 09:59 AM

Thanks I'll give it a try tonight at home...but it looks too much for me though. I don't know if it also apply the same in wireless usb. It was talking mostly with PCMcIA card which is detected right away by Slackware.

But I think I really need to look into it. My machine must be running to wireless scripts at boot time. I relaized it after I look at the link you gave me.

Ciao for now...

Hern_28 11-19-2008 10:00 AM

Nod.
 
Was thinking you could just set your scriptto recall those already set up scripts saving you a bit of work.


All times are GMT -5. The time now is 06:52 AM.