LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-31-2005, 05:18 AM   #1
alint7
LQ Newbie
 
Registered: Feb 2005
Distribution: Mandrake
Posts: 4

Rep: Reputation: 0
[SOLVED] Hard disk Information


Hello,

How can I see my hardisk information?
I have 2 hardisks on the computer. How can I see information about them.
And how can I know which partition is on which hardisk.
I want to copy some files from one hard disk to another and do not know how to access.

I only have comand line access.

Thanks.

Last edited by alint7; 04-11-2005 at 09:23 AM.
 
Old 03-31-2005, 05:26 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try using these commands:
hdparm -i /dev/hda
hdparm -I /dev/hda
fdisk -l
 
Old 03-31-2005, 05:42 AM   #3
alint7
LQ Newbie
 
Registered: Feb 2005
Distribution: Mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
yes,

that works but I want to see disk size (there I see cylindres etc.) and how can I access 2nd hardisk.
 
Old 03-31-2005, 05:48 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
fdisk should should show the size as well. You can access any drive by changing the device name away from hda.
 
Old 03-31-2005, 05:55 AM   #5
alint7
LQ Newbie
 
Registered: Feb 2005
Distribution: Mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
This is what I get for fdisk /dev/hda

Disk /dev/hda: 255 heads, 63 sectors, 5005 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 6 48163+ 83 Linux
/dev/hda2 7 134 1028160 82 Linux swap
/dev/hda3 135 200 530145 83 Linux
/dev/hda4 201 5005 38596162+ f Win95 Ext'd (LBA)
/dev/hda5 201 266 530113+ 83 Linux
/dev/hda6 267 649 3076416 83 Linux
/dev/hda7 650 1287 5124703+ 83 Linux
/dev/hda8 1288 5005 29864803+ 83 Linux

for fdisk /dev/hda1 I don't get anything, just a message saying it's not a ...
 
Old 03-31-2005, 05:58 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Maybe you have an older version of fdisk - mine is "fdisk v2.12" (fdisk -v). You could use df:
df -h

hda1 is the first partition on the first fisk - try hdb, hdc etc.
 
Old 03-31-2005, 06:31 AM   #7
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Rep: Reputation: 31
Yeah it seems likely that you could have an old fdisk because I just tried it and the first thing listed is size in GB then in bytes

root@darkstar:/home/adam# fdisk -l

Disk /dev/hda: 40.0 GB, 40027029504 bytes
16 heads, 63 sectors/track, 77557 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 30543 15393640+ c W95 FAT32 (LBA)
/dev/hda2 46538 77552 15631245 f W95 Ext'd (LBA)
/dev/hda3 30544 31039 249984 82 Linux swap
/dev/hda4 31040 46538 7811244 83 Linux
/dev/hda5 46538 77552 15631213+ b W95 FAT32

Partition table entries are not in disk order
 
Old 04-11-2005, 09:16 AM   #8
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Rep: Reputation: 30
You can also use cfdisk as well. It shows it in a very clean format.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
programmatic disk free information vidi Linux - Software 2 06-10-2004 01:27 AM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM
hard drive information vanhalen Linux - Newbie 3 07-08-2002 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:26 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