PDA

View Full Version : can't mount the second HD - unmounts on reboot.


Mitrofan
Sun 8th Apr '01, 2:24pm
I just ran into this problem trying to mount the second SCSI HD on Red Hat Linux 6.1

The second SCSI is sdb1

I run mount -t ext2 -o defaults /dev/sdb1 /data

It mounts the second drive. I can then create files on /data, I can see the second HD with the df -h command.

The problem is that every time I restart the server it unmounts the second drive. I also tried with the -o auto option but the results are the same - when I reboot the server the second drive is gone - I don't see it with df -h command.

What should I do to make it automatically mount again on re-boot?

I hope someone can help me here

:rolleyes:

Mitrofan
Sun 8th Apr '01, 3:18pm
Looks like I found the way to fix the problem.

I edited the /etc/fstab file and added the second line to it to reference my second HD. It looks like this now:


/dev/sda1 / ext2 defaults 1 1
/dev/sdb1 /data ext2 defaults 1 2
/dev/cdrom /cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0

After editing it I just ran this command :


mount /dev/sdb1

That's it.

re-booted the server again and - seccess - my second HD is there!