LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Q: How do I permanently mount a SATA RAID device? (https://www.linuxquestions.org/questions/linux-hardware-18/q-how-do-i-permanently-mount-a-sata-raid-device-583254/)

csantrim 09-08-2007 07:15 PM

Q: How do I permanently mount a SATA RAID device?
 
I do this everytime, but having a problem with the FSTAB file:

/dev/sda on /mnt type ext3 (rw)

Thanks

Sean

MensaWater 09-09-2007 01:38 AM

An entry in fstab like the following should be sufficient:

/dev/sda /mnt ext3 defaults 1 2

However:
1) It is unusual to mount /dev/sda as opposed to a partition of it (e.g. /dev/sda1, /dev/sda2). You might want to run "fdisk -l /dev/sda" to see what partitions are there.

2) /mnt is intended for temporary mounts (e.g. cdroms, floppies). You really ought to come up with a permanent name/directory if you intend to mount this automatically via fstab. You can just name something like /myraid by doing "mkdir /myraid" then substituting /myraid for /mnt on your command line and in your fstab.

You can verify the fstab entry without rebooting simply by typing "mount /dev/sda" and "umount /dev/sda" (or sda1 etc... see note about partitions above). If the fstab entry is correct it will get the rest of what it needs from there rather than requiring you to input details on the command line.


All times are GMT -5. The time now is 05:43 AM.