LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 01:27 AM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
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 03:23 AM.
 
Old 01-02-2006, 01: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, 01: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, 01:58 AM   #4
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
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 03:20 AM. Reason: too muc space for signature not needed with ea. reply...after thought
 
Old 01-02-2006, 02: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, 03:42 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 05:10 PM   #7
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
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 03:25 AM.
 
Old 01-02-2006, 05: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, 06:20 PM   #9
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

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

Last edited by NightSky; 01-03-2006 at 03:28 AM.
 
Old 01-02-2006, 06:27 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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 06:29 PM.
 
Old 01-02-2006, 06: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, 08:04 PM   #12
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
Yeh! Thankyou

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


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

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

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