LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 07-31-2005, 10:48 PM   #1
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Rep: Reputation: 16
Mounting Drives


Hi guys,

I am trying to figure out how to mount my hdb4 at boot up. I have read several posts on doing this but couldnt find them when i wanted to do the above.

Any advice would be good
 
Old 07-31-2005, 10:52 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
If you go to /etc/fstab, do you see how there are two sections--static and dynamic? Put the mount in the static section--that way it'll be mounted every time you boot up.
 
Old 07-31-2005, 10:58 PM   #3
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Original Poster
Rep: Reputation: 16
This is my fstab file:

# Static entries below, do not use 'users' option in this area
/dev/hdb1 / ext3 defaults,noatime 1 1
/dev/hdb3 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/hdb2 /home ext3 defaults,noatime 1 2
# Dynamic entries below, identified by 'users' option
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdb4 /mnt/hdb4 vfat noauto,users,exec,umask=000 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,dev,ro 0 0
/dev/floppy /mnt/floppy vfat,ext2,hfsplus noauto,users,dev,sync,dirsync 0 0

Where do i add my line and will i need to add anymore information? Id like to have this mounted when i log in as user and root

Than you!

Last edited by JediDB; 07-31-2005 at 10:59 PM.
 
Old 07-31-2005, 11:24 PM   #4
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Quote:
Originally posted by JediDB
/dev/hdb4 /mnt/hdb4 vfat iocharset=utf8,umask=000 0 0
Add this line to the top section.
 
Old 07-31-2005, 11:25 PM   #5
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Original Poster
Rep: Reputation: 16
Quote:
iocharset=utf8,umask=000 0 0
What does that part of the line mean?

Thanks
 
Old 08-01-2005, 01:31 AM   #6
mos
Member
 
Registered: May 2005
Location: Orlando, Fl
Distribution: ArchLinux (Can use any distro though)
Posts: 231

Rep: Reputation: 30
actualy, thats not entirely what you want

add:
/dev/hdb4 /mnt/hdb4 vfat auto,users,exec,umask=000 0 0
to the top section
and remove:
/dev/hdb4 /mnt/hdb4 vfat noauto,users,exec,umask=000 0 0
from the bottom

the auto makes it automount
the users makes it user readable
exec makes it so executables can be run from it
unmask changes permissions
 
Old 08-01-2005, 06:06 PM   #7
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Original Poster
Rep: Reputation: 16
Quote:
the auto makes it automount
the users makes it user readable
exec makes it so executables can be run from it
unmask changes permissions
Thanks, i love these types of answers for us newbies

Thanks again, goning to give it a try in a few....
 
Old 08-03-2005, 03:24 PM   #8
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Original Poster
Rep: Reputation: 16
Hi,

Ok, i tried to enter that line in 'user' mode but it wouldnt let me 'write' to the disk. Do i need to be in /root to do this? I was using Kwrite.

Thanks.
 
Old 08-03-2005, 03:30 PM   #9
hippyhenge
LQ Newbie
 
Registered: Nov 2004
Distribution: slackware
Posts: 23

Rep: Reputation: 15
Quote:
Originally posted by JediDB
Hi,

Ok, i tried to enter that line in 'user' mode but it wouldnt let me 'write' to the disk. Do i need to be in /root to do this? I was using Kwrite.

Thanks.
its ok to do it logged in as user but you have to open the text editor with root privages so, click on the K button > run command and in that box type kdesu kwrite, enter your root password. kwrite will open with root privalages, navigate to your fstab file and make your changes save and exit
 
Old 08-03-2005, 03:34 PM   #10
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Original Poster
Rep: Reputation: 16
Hi,

Thanks for the quick response. A small question, what does the 'su' stand for after kde?

Just been a curious newbie
 
Old 08-03-2005, 03:37 PM   #11
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Original Poster
Rep: Reputation: 16
Hmm, im ediitng my Fstab file and at the top, where it says Static, it says not to use any "users" here and i was told to have the word "user" in the mount line for all users to access...

Any ideaS?
 
Old 08-03-2005, 03:45 PM   #12
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Original Poster
Rep: Reputation: 16
I edited my Fstab file and the hdb4 is still not mounting at startup.

Heres my Fstab File now:

# Static entries below, do not use 'users' option in this area
/dev/hdb1 / ext3 defaults,noatime 1 1
/dev/hdb3 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/hdb2 /home ext3 defaults,noatime 1 2
# Dynamic entries below, identified by 'users' option
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdb4 /mnt/hdb4 vfat auto,users,exec,umask=000 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,dev,ro 0 0
/dev/floppy /mnt/floppy vfat,ext2,hfsplus noauto,users,dev,sync,dirsync 0 0

What did i do wrong?

Last edited by JediDB; 08-03-2005 at 03:49 PM.
 
Old 08-03-2005, 03:51 PM   #13
hippyhenge
LQ Newbie
 
Registered: Nov 2004
Distribution: slackware
Posts: 23

Rep: Reputation: 15
Quote:
Originally posted by JediDB
Hi,

Thanks for the quick response. A small question, what does the 'su' stand for after kde?

Just been a curious newbie
The Unix su (subsitute user) command is used to assume the login shell of another user without logging out. It is commonly used to change to root user permissions for administrative work without logging off and back on. Desktop environments such as KDE and GNOME have programs that pop up a password query box before allowing a user to run commands that would typically require such access.
en.wikipedia.org/wiki/Su_(computing)

your welcome
 
Old 08-03-2005, 04:06 PM   #14
hippyhenge
LQ Newbie
 
Registered: Nov 2004
Distribution: slackware
Posts: 23

Rep: Reputation: 15
Quote:
Originally posted by JediDB
I edited my Fstab file and the hdb4 is still not mounting at startup.

Heres my Fstab File now:

# Static entries below, do not use 'users' option in this area
/dev/hdb1 / ext3 defaults,noatime 1 1
/dev/hdb3 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/hdb2 /home ext3 defaults,noatime 1 2
# Dynamic entries below, identified by 'users' option
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdb4 /mnt/hdb4 vfat auto,users,exec,umask=000 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,dev,ro 0 0
/dev/floppy /mnt/floppy vfat,ext2,hfsplus noauto,users,dev,sync,dirsync 0 0

What did i do wrong?
if you look at the post above by mos he says to put your /dev/hdb4 line in static entries not dynamic at least thats how i read it

add:
/dev/hdb4 /mnt/hdb4 vfat auto,users,exec,umask=000 0 0
to the top section
and remove:
/dev/hdb4 /mnt/hdb4 vfat noauto,users,exec,umask=000 0 0
from the bottom
 
Old 08-03-2005, 04:09 PM   #15
JediDB
Member
 
Registered: Jul 2005
Location: USA - IL
Distribution: Mepis
Posts: 131

Original Poster
Rep: Reputation: 16
Yes, i saw that but, on the static line it reads:

Quote:
# Static entries below, do not use 'users' option in this area
So, thats why i didnt add the line there.... but im guessing i need to do this anyhow, lol
 
  


Reply



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
Mounting Drives the_imax Linux - Newbie 3 01-10-2005 12:28 PM
mounting my drives mark alan Fedora 7 12-05-2004 08:52 PM
Help in Mounting my cd drives coderasm SUSE / openSUSE 2 12-05-2004 11:40 AM
how do i know what drives are available for mounting joepesci Linux - Newbie 13 07-20-2004 01:41 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 09:48 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
Open Source Consulting | Domain Registration