LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Listing hdd's (https://www.linuxquestions.org/questions/linux-general-1/listing-hdds-287845/)

Sevoma 02-08-2005 04:58 PM

Listing hdd's
 
I know this is a very n00bish question, but how do you list the harddrives in linux? I am using Debian 3.0 Sarge. I want to do this so I can setup backup2l for my personal server.

oneandoneis2 02-08-2005 05:19 PM

cd /proc

ls ide


If you have SATA or SCSI, then also

ls scsi

Also, dmesg should mention all your drives, but you may need to search around a bit for them

Sevoma 02-08-2005 05:25 PM

Thanks. It is /dev/hdc as I suspected, but I could not mount. How could I mount it.

I tried (as root):

mkdir /mnt/backup
mount /dev/hdc /mnt/backup

I know I am missing something in the mount command but I dont know what.

what filesystem hould I use?

XavierP 02-08-2005 05:54 PM

Do you have a directory called /mnt/backup?

You would need to do:
mkdir /mnt/backup
mount /dev/hdc /mnt/backup
cd /mnt/backup

This may need to be done as root, via su

[edit]Sorry, just reread your post, what error messages are you getting?[/edit]

Sevoma 02-08-2005 06:21 PM

I type this:
mount /dev/hdc /mnt/backup fat32
and it gives me the commands for mount
if I leave of the fat32, it says to specify filesystem

In fdisk I cannot find how to change the filesystem. I put that on and it defaulted to fat32 (i did this on linux) How could I change it?

Sevoma 02-08-2005 07:10 PM

Please help. I need this backup system setup soon.

Tinkster 02-08-2005 08:52 PM

Per the LQ rules that you accepted please do NOT
bump your posts until 24 hours have passed...

You can't mount the raw-device, it doesn't have ANY
filesystem that you can use with mount.

First find out what partitions you have:
(as root)
fdisk -l


Then try
mount -t vfat /dev/hdc<N> /mnt/backup
where <N> is the number of the partition that
would be the fat-one ...



Cheers,
Tink

Sevoma 02-10-2005 04:23 PM

Thanks Tinkster. Sorry about the bumping. It works now.

Tinkster 02-10-2005 04:55 PM

Cool - glad I could help :)


Cheers,
Tink


All times are GMT -5. The time now is 01:32 PM.