LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2006, 02:27 AM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 854

Rep: Reputation: 51
Mounting Linux Partitions?


SY6ba+IV HPT366,PIII 600copermine, 639mb ram, Yamaha PCI Sound card, GeForce 2GTS 32mb, 160gb seagate for Slackware10.2
Partition Setup: hdg1 = root, hdg2 = swap, hdg3 = /usr, and
hdg4 = /home -> all are primary partitions.

Question do I need all the partitions mounted each time I login? If so do I auto mount all 4 partitions and how do I get them to mount? I used this Partition scheme because it was suggested space efficient, security, and flexibility. I still have to compile a kernel and need to know how to manage this partition scheme. Thanks

Last edited by NightSky; 01-03-2006 at 04:23 AM.
 
Old 01-02-2006, 02:45 AM   #2
Flyen
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora 5 and CentOS 4
Posts: 21

Rep: Reputation: 15
I see no reason why you wouldn't want all those partitions automatically loaded at boot.

They should all have entries in /etc/fstab.
 
Old 01-02-2006, 02:56 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
When you install Slack, it'll ask you if you want them added to fstab.
 
Old 01-02-2006, 02:58 AM   #4
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 854

Original Poster
Rep: Reputation: 51
Thanks Flyen, auto mount at boot sounds good to me. Can I get into /etc/fstab to edit the entries as usr? How should the lines read for auto mount in 10.2?
I am trying to stay away from doing things as root because of the uncertainty regarding what I attempt to do?

Last edited by NightSky; 01-03-2006 at 04:20 AM. Reason: too muc space for signature not needed with ea. reply...after thought
 
Old 01-02-2006, 03:01 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to be root to edit fstab.
 
Old 01-02-2006, 04:42 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Take advantage of a handy Linux (Unix) thing. When you modify a file (eg with gedit), it saves the original as filename~. Of course, you can save your own backup copy with a name that makes sense to you.
 
Old 01-02-2006, 06:10 PM   #7
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 854

Original Poster
Rep: Reputation: 51
I su root and tried to get into /etc/fstab without any luck? No such directory exist?

Last edited by NightSky; 01-03-2006 at 04:25 AM.
 
Old 01-02-2006, 06:29 PM   #8
Flyen
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora 5 and CentOS 4
Posts: 21

Rep: Reputation: 15
/etc/fstab should be a regular text file. Here is an example of what yours might look like:

/dev/hdg1 / auto defaults 1 1
/dev/hdg2 swap swap defaults 0 0
/dev/hdg3 /usr auto defaults 1 2
/dev/hdg4 /home auto defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
 
Old 01-02-2006, 07:20 PM   #9
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 854

Original Poster
Rep: Reputation: 51
Flyen, what is the command line I need to get into this file? Thanks

Last edited by NightSky; 01-03-2006 at 04:28 AM.
 
Old 01-02-2006, 07:27 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by NightSky
Flyen, what is the command line I need to get into this file? Thanks
cd /etc
ls fs*
##verify that fstab exists here##
##Assuming it is here, then:
more fstab (or cat fstab)

If fstab is not there, then you have a non-standard system---try searching for it

you can, of course shortcut this and type more (or cat) /etc/fstab

Last edited by pixellany; 01-02-2006 at 07:29 PM.
 
Old 01-02-2006, 07:46 PM   #11
Flyen
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora 5 and CentOS 4
Posts: 21

Rep: Reputation: 15
There are a number of programs available to edit /etc/fstab.

Try:
nano -w /etc/fstab
vim /etc/fstab
pico /etc/fstab
emacs /etc/fstab

All these editors have their own quirks and you may have to read up on how to use them. Nano and pico are basically the same though.
 
Old 01-02-2006, 09:04 PM   #12
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 854

Original Poster
Rep: Reputation: 51
Yeh! Thankyou

Last edited by NightSky; 01-03-2006 at 04:29 AM.
 
  


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
Mounting ntfs partitions under redhat linux 9 zafar_dandoti Linux - Networking 1 12-20-2005 07:36 AM
Stil mounting problem in linux to windows partitions prince_linux Red Hat 3 11-03-2005 07:28 AM
absolute noob about linux, need gaim & mounting of windows partitions bono_head Linux - Software 9 09-29-2005 09:53 AM
mounting partitions alanbarnard Ubuntu 3 06-26-2005 05:00 PM
Mounting duplicate Linux partitions rridler Linux - Newbie 9 05-03-2004 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration