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 |
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.
|
|
02-08-2005, 05:58 PM
|
#1
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Rep:
|
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.
|
|
|
02-08-2005, 06:19 PM
|
#2
|
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460
Rep:
|
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
|
|
|
02-08-2005, 06:25 PM
|
#3
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Original Poster
Rep:
|
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?
|
|
|
02-08-2005, 06:54 PM
|
#4
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
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]
|
|
|
02-08-2005, 07:21 PM
|
#5
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Original Poster
Rep:
|
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?
|
|
|
02-08-2005, 08:10 PM
|
#6
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Original Poster
Rep:
|
Please help. I need this backup system setup soon.
|
|
|
02-08-2005, 09:52 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
02-10-2005, 05:23 PM
|
#8
|
Member
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61
Original Poster
Rep:
|
Thanks Tinkster. Sorry about the bumping. It works now.
|
|
|
02-10-2005, 05:55 PM
|
#9
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Cool - glad I could help :)
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 07:52 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
|
|