mount drives on start up
i m glad i find this forum, i m total new to linux and i have a problem,
i have a server (debian installed) and it have some hard disks all mirrored in dev/sda1 /test/test1 (i dont use raid) i have added the disks to test1 dir with this ssh commant : mount -t xfs /dev/sda1 /test/test1 the problem is that when i m restarting the server its not possible to see the disks and i have to run the commant once more. how is possible to run this commant on the server start up? can anyone help with this? thanks in advance |
You need to edit /etc/fstab. Reading the man page on fstab would also be a good idea.
|
As root, edit the /etc/fstab file. The line that corresponds to your drive will have a 'noauto' entry. Set this to 'auto' and it will mount upon start up.
|
An example may help. Here's what I have for my /etc/fstab:
Code:
/dev/hda5 swap swap defaults 0 0 Not to confuse with the "auto" on the 3rd column though... "auto" on the 3rd column means "detect the filesystem automatically" |
> my /fstab lines looks like this now:
Quote:
i have added the line: Quote:
but i think that i have to move this 1: Quote:
|
1. What filesystem does your SCSI drive [/dev/sda1] use? It can't be "ext3" and "xfs" in the same time. This means one of the line just won't work. Issuing "fdisk /dev/sda" and pressing "p" will make it clear which filesystem is correct [press "q" to quit the fdisk].
2. Where do you want your SCSI drive to be mounted? If /test/test1 is OK for you and you don't need to have it available from /raid, you can just comment the "/dev/sda1 /raid ext3 defaults 0 0" line out. Hope it helps Vitalie CIUBOTARU |
here is what i have
Quote:
|
All times are GMT -5. The time now is 11:45 PM. |