LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   1TB disk divided into 3 partitions (https://www.linuxquestions.org/questions/linux-newbie-8/1tb-disk-divided-into-3-partitions-906950/)

trinityforce 10-07-2011 09:44 AM

1TB disk divided into 3 partitions
 
I am using RHEL5 and I am trying to partition a second 1TB disk into 3 primary partitions using fdisk. I got all 3 created, formated, file system ext3, and then mounted them fine. Added the entries into fstab and rebooted. When I rebooted it came up with a problem with fsck checking these file systems and not mounting them? Do I need to set these up differently?

/dev/sdb1 primary 40GB
/dev/sdb2 primary 60GB
/dev/sdb3 primary remainder of space

I used mkfs.ext3

JSkywalker 10-07-2011 10:44 AM

how does your /etc/fstab look like?

yout should have created three additional lines like this (untested, and i'm not sure if they are complete):
/dev/sdb1 /mountpoint1 ext3 defaults 0 0

the first argument (/dev/sdb1) is the name of the disppartition
the second argument (/mountpoint1) is the name of the directory where you want to mount this partition
the third argument (ext3) is the filesystemtype
for the rest of the argument i recomend a look at 'man fstab' ;)

snapshot15 10-07-2011 10:53 AM

Quote:

Originally Posted by JSkywalker (Post 4492534)
yout should have created three additional lines like this (untested, and i'm not sure if they are complete):
/dev/sdb1 /mountpoint1 ext3 defaults 0 0

the first argument (/dev/sdb1) is the name of the disppartition
the second argument (/mountpoint1) is the name of the directory where you want to mount this partition
the third argument (ext3) is the filesystemtype
for the rest of the argument i recomend a look at 'man fstab' ;)

Here is some great documentation directly correlating to the above post:

http://www.tuxfiles.org/linuxhelp/fstab.html

I think this is a great reference for fstab and mount options.

trinityforce 10-07-2011 11:10 AM

I had the fstab setup per the instructions as

/dev/sdb1 /mountpoint ext3 default 1 2
/dev/sdb2 /mountpoint ext3 default 1 2
/dev/sdb3 /mountpoint ext3 default 1 2

snapshot15 10-07-2011 11:54 AM

Quote:

Originally Posted by trinityforce (Post 4492550)
I had the fstab setup per the instructions as

/dev/sdb1 /mountpoint ext3 default 1 2
/dev/sdb2 /mountpoint ext3 default 1 2
/dev/sdb3 /mountpoint ext3 default 1 2


I'm a little confused here:

If this is your exact fstab you are mounting each partition on sdb to the mountpoint /mountpoint. Did you create a location called /mountpoint?

I would change default to defaults

Your <dump> column of 1 indicates that you have dump installed and you want each partition backed up. I would recommend changing to 0.

Your <pass> column of 2 will run fsck to check the filesystems at boot with secondary priority after whichever is labeled 1. Change to 0 if you do not want the systems checked by fsck.

EDIT: One last suggestion! I would recommend using each partition's UUID instead of "/dev/sdb1". I do this as a precautionary measure so nothing can get borked reading the information.

trinityforce 10-07-2011 11:55 AM

I think the issue was the 1 2 at the end. It was doing a fsck and bombing, just not sure why. When I orginally set the partitions up I mounted them and they seem to be fine. It was just on the reboot that fsck had a problem?

kbscores 10-07-2011 01:54 PM

Perhaps stagger your checks. What is error you get when fsck runs? Or does it keep forcing fsck in maint mode? Try w/fsck and dump as 0. See if it mounts like that first. How often does this machine get rebooted?


All times are GMT -5. The time now is 06:45 PM.