Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



USB key and Fedora 4

AtK SpAdE
03-04-2006, 12:43 AM
Ok so im trying to get my Lexar 512 Mb usb key to work with linux.

I have used my root account to mount up this

mount -t auto /dev/sda1 /mnt

and it seems to be ok.

then i type /dev/sda1 into nautilus. and i get, nautilus has no viewer capable of veiwing /dev/sda1

im a general noobie at linux, so what am i overlooking

Mictlantecuhtli
03-04-2006, 04:00 AM
You need to browse the /mnt directory where you just mounted the device, not the actual device itself.

Ad
03-04-2006, 04:00 AM
  

AtK SpAdE
03-04-2006, 06:10 PM
Thanks alot

as i said im a bit new to the linux scene, and so far i have been impressed.

My last question. Do you have any idea (or is it even possible) to make the device mount itself at every boot?

Mictlantecuhtli
03-05-2006, 04:48 AM
It's much easier to use udev when dealing with devices like USB sticks. udev manages devices in /dev automatically and you don't need to worry about correct symlinks if you happen to plug the stick to another USB port, for example.

Writing udev rules (http://www.reactivated.net/writing_udev_rules.html)

This is what I use for my Kingston USB stick:


/etc/udev/rules.d/20-stick.rules:

BUS=="usb", KERNEL=="sd*", SYSFS{product}=="DT Elite HS 2.0", NAME="%k", SYMLINK="stick%n"

The line in /etc/fstab:

/dev/stick1 /stick vfat user,noexec,noauto 0 0


Then I can create a device on the KDE desktop pointing to /dev/stick1. Plug in the stick, doubleclick the icon on desktop, ready. When I want to remove it, I just right-click the icon and select unmount.


But to answer your question: to make devices mount automatically on boot, use "auto" option in /etc/fstab (where I used noauto).

You can see more information from man-pages, by typing man fstab in terminal.

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Another iPhone worm spotted, this time it's dangerous

Stardock CEO: Steam holds 70% of digital game distribution market

Google: Android, Chrome OS to converge eventually

Microsoft to showcase Natal at Gamefest in February

Microsoft and News Corp potential alliance, against the open Web

More Tech News

  
 Software Downloads

FlashGot 1.2.0.9

RemoveIT Pro XT - SE 23.11.2009

Vuze (Formerly Azureus) 4.3.0.4

RemoveIT Pro v7 Enterprise 23.11.2009

Aloaha PDF Suite 3.9.172

Blindwrite Suite 6.3.1.5

RemoveIT Pro v7 Ultra 23.11.2009

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.