LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2005, 05:58 PM   #1
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Rep: Reputation: 15
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.
 
Old 02-08-2005, 06:19 PM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
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
 
Old 02-08-2005, 06:25 PM   #3
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
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?
 
Old 02-08-2005, 06:54 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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]
 
Old 02-08-2005, 07:21 PM   #5
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
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?
 
Old 02-08-2005, 08:10 PM   #6
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
Please help. I need this backup system setup soon.
 
Old 02-08-2005, 09:52 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 02-10-2005, 05:23 PM   #8
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks Tinkster. Sorry about the bumping. It works now.
 
Old 02-10-2005, 05:55 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Cool - glad I could help :)


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
two HDD's silentkilla06 Linux - Newbie 1 11-14-2005 08:32 PM
copy 3 hdd's to 1 sum1else Fedora 14 09-16-2005 07:11 PM
boot from 2 different hdd's vrdhananjay Linux - Newbie 1 11-19-2004 11:18 AM
Writing to hdd's majeztik Linux - Hardware 4 08-04-2003 07:58 PM
problem with HDD's guest Linux - Newbie 5 07-06-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration