LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rebuilt RAID array with old mount points present; file system check fails on boot... (https://www.linuxquestions.org/questions/linux-software-2/rebuilt-raid-array-with-old-mount-points-present%3B-file-system-check-fails-on-boot-773099/)

mvb187 12-02-2009 10:27 PM

Rebuilt RAID array with old mount points present; file system check fails on boot...
 
Hi everyone,
Hopefully this is an easy one to fix. I have one hard disk for my root partition and a disk array on a separate mount point. I rebuilt my disk array, but I didn't delete my original mount points beforehand because I was hoping it would just "pick up". So now when I boot up, the OS tells me that the filesytem check fails because it can't find the array to map to the mount point.
I know that I need to edit my /etc/fstab and remove the line that defines my mount point on the disk array. But it appears to be read only filesystem when I am in repair mode. I can't force the write with vi.

What is the proper way to fix this? I tried booting into Knoppix and hoped to be able to edit the fstab file that way, but can't find the original copy, only the Knoppix version of the fstab file....

RedHat Ent Linux 5.4

mesiol 12-03-2009 07:17 AM

Hi,

boot from a rescue cd, mount your / filesystem to somewhere like this
Code:

mount -t ext3 /dev/hda1 /mnt
,note you have to change the partition name (hda1) to fit your needs, edit /etc/fstab, reboot That's all.

mvb187 12-03-2009 11:56 AM

where did my device go?
 
Awesome! thanks, that was easy. But now I am not sure how to redefine my mount points. Here is what my original fstab looks like. The part that is confusing me is the "LABEL=" part. I have used Linux in the past, but this seems new. I thought this should have the device, but what is this LABEL referring to?

[root@hqpsirdb ~]# more /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
#LABEL=/data /data ext3 defaults 1 2
#LABEL=/backup /backup ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

My goal is to have both /data and /backup on the disk array as two separate partitions.

My device is not listed either for my disk array. It should be something like /dev/cciss/c0d1p1, but I don't see it. How do I create that? I originally did this all through installation. I went into the LVM, but it didn't see anything new...

mesiol 12-04-2009 08:38 AM

Hi,

filesystem labels are used to prevent users from knowing device names.

To get a label from a device use:
Code:

e2label $DEVICENAME
e.g.
Code:

e2label /dev/cciss/c0d1p1


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