LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-30-2007, 06:16 PM   #1
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Rep: Reputation: 15
removing a memory stick


Is there any command (or option somewhere) in linux (SuSE) equivalent to "Safely Remove Hardware" in XP, so that I can remove my memory stick safely?

Thanks

.
 
Old 03-30-2007, 06:23 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,240

Rep: Reputation: 121Reputation: 121
Linux pretty much figures out which hardware you have each time you boot. If you want to remove memory, then just shut the machine off and remove it.
 
Old 03-30-2007, 06:42 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Remember to ground yourself before removing/inserting components inside a computer!
 
Old 03-30-2007, 07:22 PM   #4
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quakeboy02
Linux pretty much figures out which hardware you have each time you boot.
True, but Linux is also able to figure out when you insert a component; obviously not every comeponent but depends on the setup, it could do for flash memories. I use it this way and it works well.

Quote:
Originally Posted by Quakeboy02
If you want to remove memory, then just shut the machine off and remove it.
This must be the last way on the list, definitely not the only one. Assume you want to do this 10 times a day! There is a command like "dismount" or something like that, but I don't remember it.

.
 
Old 03-30-2007, 07:26 PM   #5
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Micro420
Remember to ground yourself before removing/inserting components inside a computer!
.........???

.
 
Old 03-30-2007, 07:30 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,240

Rep: Reputation: 121Reputation: 121
Just be sure to touch the chassis first, and don't move your feet around while installing or removing cards in your computer. If you've ever gotten zapped when touching something after walking across the floor, then understand that that zap can destroy computer chips.
 
Old 03-30-2007, 08:45 PM   #7
creativename
Member
 
Registered: Oct 2006
Posts: 41

Rep: Reputation: 15
You mean like removing a USB Flashdrive? Easy. Find the disk (in Konquerer or on the desktop or whatever) right click on the icon. Find an option called "Safely remove" or "Unmount". The icon may or may not disappear like it does in Windows, but either way it's safe to remove.
 
Old 03-30-2007, 09:04 PM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,240

Rep: Reputation: 121Reputation: 121
"This must be the last way on the list, definitely not the only one. Assume you want to do this 10 times a day! There is a command like "dismount" or something like that, but I don't remember it."

So, it's a USB drive, and not memory, then. See creativename's post.
 
Old 03-31-2007, 02:03 AM   #9
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quakeboy02
"This must be the last way on the list, definitely not the only one. Assume you want to do this 10 times a day! There is a command like "dismount" or something like that, but I don't remember it."

So, it's a USB drive, and not memory, then. See creativename's post.

Thanks a lot. Sure it is a USB drive. Is there any (pocket) memory stick or flash memory which is not USB type?

Cheers
.
 
Old 03-31-2007, 02:55 AM   #10
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slack 10.2 kde 3.4.2 kernel 2.6.15
Posts: 452

Rep: Reputation: 30
Your post implied that you were talking about RAM ..

least that is how I and evidently everyone else interpreted it!?
 
Old 03-31-2007, 02:59 AM   #11
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
There is a command called "eject" which will do the same thing. If your distro doesn't configure udev to change the ownership of the device (owner or group owner) to give the user access, then you need to use sudo.
 
Old 03-31-2007, 09:05 PM   #12
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Quote:
Originally Posted by linux_2007_
Is there any command (or option somewhere) in linux (SuSE) equivalent to "Safely Remove Hardware" in XP, so that I can remove my memory stick safely?
Haha! I'm not exactly sure how they got that you wanted to remove RAM memory while the computer was running. I understood what you meant right off. Funny!

I recommend that you man the mount and umount commands ("man umount").I use Fedora Core, which creates a /mnt directory, which is supposed to be used for mounting extra hardware.

My method of attack to mount the drive:
- Create a /mnt/usbflash directory
- At the CLI, type 'mount /dev/sda /mnt/usbflash'
Note: /dev/sda is the device my system uses for the flash drive. It may be different on yours.
- Access your USB data from the /mnt/usbflash directory.

To unmount: 'umount /mnt/usbflash'
Easy as pie!
 
  


Reply

Tags
mount usb, umount


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB memory, Compact Flash, Memory Stick energiza Linux - Hardware 2 08-22-2006 09:29 PM
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM
memory stick rosslaird Debian 5 07-23-2004 08:01 PM
When removing USB Stick a error is displayed rover Linux - Hardware 4 05-22-2004 10:42 AM
memory stick / CF memory card reader X-dazed Linux - Newbie 1 01-21-2003 12:32 AM


All times are GMT -5. The time now is 02:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration