LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-25-2012, 10:07 AM   #1
CellBlock420
Member
 
Registered: Aug 2012
Location: Orlando, FL
Distribution: OpenSUSE 12.2 XFCE
Posts: 33

Rep: Reputation: Disabled
need help figuring out how to edit my fstab


I have three drives that I am trying to have default mounted when I boot up. I opened my fstab and this is whats showing:

proc /proc proc nodev,noexec,nosuid 0 0
UUID=e341309d-468b-4c01-83ed-ee68e22978f4 / ext4 errors=remount-ro 0 1
UUID=51890b51-f38b-40e1-90a1-a44506f004e1 none swap sw 0 0

Everything I have read about editing the fstab that gives examples don't look anything like this.
Is there something I'm doing wrong?
need help with this one, getting tired of remounting my drives every time I boot.

I realise this might not be all the info needed to help me, but I don't know what info is needed. Just ask and I'll provide whatever info necessary.

Last edited by CellBlock420; 08-25-2012 at 10:09 AM.
 
Old 08-25-2012, 10:11 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

What is the output of
Code:
sudo blkid
 
Old 08-25-2012, 10:22 AM   #3
CellBlock420
Member
 
Registered: Aug 2012
Location: Orlando, FL
Distribution: OpenSUSE 12.2 XFCE
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi

What is the output of
Code:
sudo blkid
This is the output of the above command.
This is with all the drives manually mounted.

/dev/sda1: UUID="51890b51-f38b-40e1-90a1-a44506f004e1" TYPE="swap"
/dev/sda2: LABEL="CellBlock420" UUID="e341309d-468b-4c01-83ed-ee68e22978f4" TYPE="ext4"
/dev/sdb1: LABEL="CellBlock421" UUID="60040528-4a6a-4dee-843c-9884f927149a" TYPE="ext4"
/dev/sdc1: SEC_TYPE="msdos" LABEL="STEVE'SJUMP" UUID="4E16-C529" TYPE="vfat"
/dev/sdd1: SEC_TYPE="msdos" LABEL="PENDRIVE" UUID="7C13-3219" TYPE="vfat"

Why isn't this what's in my fstab?
BTW, the pendrive and steve's jump don't need to be auto mount, just CellBlock421. CellBlock420 is already the default drive and always mounted.
 
Old 08-25-2012, 10:44 AM   #4
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
So just add the following to /etc/fstab:

Code:
UUID=60040528-4a6a-4dee-843c-9884f927149a <mount dir> ext4 defaults 0 0
You can change defaults to the mount options you want. Also, you can change the last zero to a 1 if you want filesystem checking enabled.

Alex Brinister
 
Old 08-25-2012, 10:49 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Ok make a backup of fstab
Code:
sudo cp -v /etc/fstab /etc/fstab-old
[sudo mkdir -v /media/CellBlock421[/code]
edit /etc/fstab using sudo
Quote:
proc /proc proc nodev,noexec,nosuid 0 0
UUID=e341309d-468b-4c01-83ed-ee68e22978f4 / ext4 errors=remount-ro 0 1
UUID=51890b51-f38b-40e1-90a1-a44506f004e1 none swap sw 0 0
UUID=60040528-4a6a-4dee-843c-9884f927149a /media/CellBlock421 /ext4 default 0 2
 
  


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
How to edit Fstab Robert Diggs Linux - Newbie 2 12-22-2006 09:47 AM
can't edit /etc/fstab....please help expat Linux - Software 32 10-26-2006 01:48 PM
How do I edit /etc/fstab? linusownsme Linux - Software 9 03-05-2005 11:30 AM
fstab edit craigers Linux - Software 15 12-03-2004 06:02 AM
edit fstab - what i ve to do ? thinkdifferent Linux - Newbie 4 12-23-2003 04:20 PM

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

All times are GMT -5. The time now is 12:06 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