LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2008, 07:36 AM   #1
Allanitto Newbee
Member
 
Registered: Oct 2007
Location: Montreal
Distribution: Slackware12;Slackware13
Posts: 106

Rep: Reputation: 15
Red face 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..
 
Old 11-19-2008, 08:26 AM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
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)
 
Old 11-19-2008, 09:55 AM   #3
Allanitto Newbee
Member
 
Registered: Oct 2007
Location: Montreal
Distribution: Slackware12;Slackware13
Posts: 106

Original Poster
Rep: Reputation: 15
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
 
Old 11-19-2008, 10:12 AM   #4
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
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

Last edited by Hern_28; 11-19-2008 at 10:12 AM. Reason: typo
 
Old 11-19-2008, 10:59 AM   #5
Allanitto Newbee
Member
 
Registered: Oct 2007
Location: Montreal
Distribution: Slackware12;Slackware13
Posts: 106

Original Poster
Rep: Reputation: 15
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...
 
Old 11-19-2008, 11:00 AM   #6
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Nod.

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unmounting USB devices jiml8 Linux - Software 9 07-02-2007 11:27 AM
USB unmounting stork SUSE / openSUSE 1 10-17-2005 04:51 AM
Unmounting usb-device with konqueror matrem Linux - Software 1 04-13-2005 03:37 PM
unmounting usb camera matt3333 Slackware 3 10-15-2003 09:16 AM
unmounting my usb drive flinchumj Linux - General 6 05-29-2003 11:16 AM


All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration