Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-14-2005, 09:29 AM
|
#1
|
Member
Registered: Aug 2005
Location: West Midlands, UK
Posts: 61
Rep:
|
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
|
|
|
08-14-2005, 10:43 AM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
08-14-2005, 03:27 PM
|
#3
|
Member
Registered: Aug 2005
Location: West Midlands, UK
Posts: 61
Original Poster
Rep:
|
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!
|
|
|
08-14-2005, 03:35 PM
|
#4
|
Member
Registered: Aug 2005
Location: West Midlands, UK
Posts: 61
Original Poster
Rep:
|
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 05:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|