Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Gentoo Linux Help
Reload this Page Gentoo Newbie. How do I access flash drive
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Gentoo Linux Help For help and discussion related to Gentoo Linux

Reply
 
Thread Tools Display Modes
Old 04-23-2008   #1 (permalink)
richag99
Just Joined!
 
Join Date: Feb 2008
Location: Katanning WA, Australia
Posts: 6
Question Gentoo Newbie. How do I access flash drive

I'm starting to learn Gentoo. I came from an automount distro and want to know how I can determine what device my flash drive is .
I've tried "mount /dev/sda /mnt/usb" and also sda1, sda2, sda3, sda4.
This is the partial contents of /etc/fstab
/dev/sda1 /boot ext2
/dev/sda3 / ext3
/dev/sda2 none swap
/dev/sda4 /home ext3
/dev/cdrom /mnt/cdrom audo
/dev/fd0 /mnt/floppy auto

I hope this is enough info to get me on the right track. Thanks in advance. Bye
regards richag77
richag99 is offline   Reply With Quote
Old 04-23-2008   #2 (permalink)
wildpossum
Just Joined!
 
wildpossum's Avatar
 
Join Date: Apr 2008
Location: Sydney/Australia
Posts: 74
Send a message via Skype™ to wildpossum
In a xterm run "sudo tail -f /var/log/messages"

The insert the USB device into the USB slot.

The message file will tell you what Linux has decided your usb device is called, and where it has mounted it.

Run "mount" and you will get a printout of that's mounted and where.

Once mounted, you can read & write to it just like another drive by the users nominated to use that device. So before you withdraw it from the USB slot, you need to do "sudo umount DEV" where DEV is the device mount point that the system mounted the USB device.

The /etc/fstab file only holds the permanent loading file system, hence USB mounting is transient, and does not keep an entry in the /etc/fstab file.
__________________
Grahame
AMD Phenom(QuadCore), 8GB, 3ware RAID6 1.8TB, HD3850(512MB) ..etc.
wildpossum is offline   Reply With Quote
Old 04-23-2008   #3 (permalink)
i92guboj
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 886
Quote:
Originally Posted by wildpossum View Post
In a xterm run "sudo tail -f /var/log/messages"
Not really, sudo is not installed by default.

Just use "su" to change to root. And anyway, you don't even need that. You can just use "dmesg" as a regular user.

Quote:
The insert the USB device into the USB slot.

The message file will tell you what Linux has decided your usb device is called, and where it has mounted it.

Run "mount" and you will get a printout of that's mounted and where.
Again no. Gentoo doesn't come preconfigured to mount anything, unless you set up ivman or something similar.

This wiki seems to be up to date on a quick overview.

HOWTO USB Mass Storage Device - Gentoo Linux Wiki

Quote:
The /etc/fstab file only holds the permanent loading file system, hence USB mounting is transient, and does not keep an entry in the /etc/fstab file.
Not necesarily. If you don't like graphical enviromnets like kde or gnome, and you don't set up ivman (I don't, because it has too many flaws) then it's handy to have the entry on fstab, so you can just write "mount pen" instead of having to write a full mount line like "mount -tvfat /dev/sdd1 /mnt/pen". Same for cdroms, dvd's and sshfs filesystems that I use a lot.

You will need to setup an udev rule so the given device is always named with the same device node, otherwise, the line in fstab will be useless if you plug many usb devices on different orders each time.
i92guboj is offline   Reply With Quote
Old 04-23-2008   #4 (permalink)
richag99
Just Joined!
 
Join Date: Feb 2008
Location: Katanning WA, Australia
Posts: 6
Thanks

Thanks a lot guys. I didn't have sudo but was able to use the "tail -f /var/log/messages" to find out the device name and now I am up and running. Thanks again. Bye
Regards richag99
richag99 is offline   Reply With Quote
Old 05-24-2008   #5 (permalink)
Delta_Echo
Just Joined!
 
Join Date: May 2008
Posts: 9
Insert the drive then issue these arguments to the bash shell.
Code:
 
su --login
fdisk -l
Look for a device that you knwo isn't a harddrive.
Lets just say that that device would be /dev/sdb1
Code:
mkdir /gentoo/mnt/Flash
mount /dev/sdb1 /gentoo/mnt/Flash
cd /gentoo/mnt/Flash
Note: the directory MIGHT be /mnt/gentoo! Not sure

Goodluck
Delta_Echo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 05:48 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0