LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help figuring out how to edit my fstab (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-figuring-out-how-to-edit-my-fstab-4175423953/)

CellBlock420 08-25-2012 10:07 AM

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.

spiky0011 08-25-2012 10:11 AM

Hi

What is the output of
Code:

sudo blkid

CellBlock420 08-25-2012 10:22 AM

Quote:

Originally Posted by spiky0011 (Post 4763969)
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.

abrinister 08-25-2012 10:44 AM

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

spiky0011 08-25-2012 10:49 AM

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


All times are GMT -5. The time now is 07:13 PM.