LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-03-2007, 07:50 PM   #1
p2pfire
LQ Newbie
 
Registered: Dec 2006
Distribution: Slackware 11
Posts: 7

Rep: Reputation: 0
Creating fstab entry for Linux (Red Hat 9 & Slackware 11)


I'll give you some backround info.

I have a RedHat 9 Machine I use for computer programming in school. And I want to use my pendrive. The teacher told me to research the way to automount. I came upon the fstab threads...but I want to understand what I need in the fstab.

I also plan on using what I learn here to create a fstab on my personal Slackware 11 machine.

What I need:
I need the USB Flash Drive to AUTOMOUNT when plugged into the computer. I will be using a Non Root username.

I would also like to know if there is a way to unmount it then, or something. While on the non-root username. I don't want to frack it up.


What I know:
The drive is showing up on /dev/sda1 and my mount folder is /mnt/sandisk (should be scandisk but either the teacher can't read, or can't type.

The filesystem type is vfat.

What I know needs to be in the fstab so far:

(my entry)
/dev/sda1 /mnt/sandisk vfat ....(not sure what I need here for what I want)

auto, owner, ro, 0 0..not sure what this all means...or what I want for the special flags. Maybe defaults would be perfect.

I don't know.

If someone could write be a post explaining this all, I would be grateful. If there is a thread that explains this, and I missed it, please paste the URL Here
 
Old 01-03-2007, 08:04 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I have a RedHat 9 Machine I use for computer programming in school. And I want to use my pendrive. The teacher told me to research the way to automount. I came upon the fstab threads...but I want to understand what I need in the fstab.
RH9 will not hotplug pendrives. You can only automount at boot time using fstab. (To hotplug usb, you need udev.) Note: RH9 will not always assign /dev/sda to the pendrive. You'll need to figure out what to do about this.

The options in fstab are explained in the man pages. (man fstab, man mount)

Does your teacher realize that RH9 is very legacy at this stage? Much of what you will learn doing this will no longer be relevant.

BTW: you should realise that we won't actually do you homework for you. The point is for you to learn. We will merely point in a hopeful direction - wherever we feel you will learn best
 
Old 01-04-2007, 05:49 AM   #3
p2pfire
LQ Newbie
 
Registered: Dec 2006
Distribution: Slackware 11
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Does your teacher realize that RH9 is very legacy at this stage? Much of what you will learn doing this will no longer be relevant.

BTW: you should realise that we won't actually do you homework for you. The point is for you to learn. We will merely point in a hopeful direction - wherever we feel you will learn best
The class is C++ Programming. I needed an easy credit, this has nothing to do with "doing" my homework.

It's a way to get my class-work to my home computer, and back to school to be printed for my techer to grade. I currently have a 127%, so I shouldn't worry about homework too much. But this was a way to get the information back-and-forth.

And I thank you for that post...I just made an entry in the fstab on my at home linux box. Created a normal username, and managed to mount the item with non-root level access...

/dev/sda1 /mnt/pen vfat users 0 0

element@ignar:~$mount /mnt/pen

Thank you for pointing me in the right direction.

Last edited by p2pfire; 01-04-2007 at 05:51 AM.
 
Old 01-06-2007, 03:38 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
But this was a way to get the information back-and-forth.
Ahhh... you just want to sneakernet data - (most reliable, and secure method) - then you don't need to automount anyways.
Quote:
managed to mount the item with non-root level access
Well done, and nice sharing.

You ca use the "owner" option instead of "users" so noone else gets to access your data. However, if there is only one user then this is not a worry.
Quote:
Thank you for pointing me in the right direction.
No sweat - you didn't need to be spoon-fed: this is good.

Welcome to LQ

BTW: what's this "RH9"?
http://www.linuxquestions.org/questi...d.php?t=437396
 
  


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
Red Hat Linux 9 & Win 98 bigmark Linux - Newbie 4 06-15-2005 02:11 AM
entry of red hat boot loader in mandrake b0nd Linux - Newbie 3 02-01-2005 06:06 AM
Installed Red Hat 9 - need help with lilo entry.... rrfish72 Red Hat 1 11-21-2004 03:02 AM
ADSL & Red Hat Linux 9 rajanr Linux - Networking 2 08-03-2003 01:34 AM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:56 AM.

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