LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting a SATA hard drive (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-a-sata-hard-drive-353106/)

ozymandias 08-14-2005 08:29 AM

Mounting a SATA hard drive
 
I am having problems mounting two SATA hard drives attached to my machine. I have tried looking at various FAQ sites but without any luck. As a (very) newbie I have tried using the mount command - but I don't know what device name to use. Would they be hde and f, or maybe sda ?? The other problem is specifying the filesystem to expect - the drives are not yet formatted so don't really have any! If I try:

mount -t auto /dev/hde /mymountpoint

It tells me that I must specify a filesystem.

I am running Debian (2.4.27) and I've read that this contains 'libata' which has drivers for (some) SATA models. Does this need some configuring? Other articles suggest I should recompile the kernel - but I'm pretty sure I don't want to be getting into that at my stage!
Most help sites talk about installing onto SATA drives, but I just want to mount them!

Any help appreciated!

Debian 2.4.27
VIA VT8237 SATA chipset
2 x WD 80Gb SATA drives

david_ross 08-14-2005 09:43 AM

Welcome to LQ.

If you run "fdisk -l" it should show you the drives on your machine. Alternatively - look at the output from dmesg.

You won't be able to mount the drives until you have set up the partitions and filesystems that you want. You can use fdisk or cfdisk (easier if you have it installed) to set up the partitions and then mkfs to create the filesystem. Which filesystem you use really depends on what you want to use the partition for.

ozymandias 08-14-2005 02:27 PM

Thanks!
Reading the dmesg output, I can see that the drives have been assigned sda and sdb (half the battle won!).

As you point out, I can't mount them without formatting them first. When I run cfdisk, it only lets me look at hda, the boot/swap volume. How can I get cfdisk to 'point' at sda or sdb so that I can format them?

The help page for cfdisk doesn't!

ozymandias 08-14-2005 02:35 PM

Ok - I've just found out how to do the above by reading your 'Guide to partitioning'

Thanks!


All times are GMT -5. The time now is 03:24 AM.