LinuxQuestions.org
Visit Jeremy's Blog.
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 06-16-2008, 06:05 AM   #16
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128

Quote:
Originally Posted by Stin View Post
I tailed the /var/log/messages file and then tried the fdisk command in another window, and it had no effect on the log.
The ouput of dmesg wasnt very helpful, but this seems a step closer to what I need.
Those messages would be generated as the computer boots, not when you run the fdisk command.
Quote:
Originally Posted by Stin View Post
I just want to know how to translate this into what I need from fdisk -l


[root@rpc1 /proc]# more partitions
Code:
major minor  #blocks  name

  72     0    8878080 ida/c0d0
  72     1     134640 ida/c0d0p1
  72     2          1 ida/c0d0p2
  72     3      36704 ida/c0d0p3
  72     5    2431664 ida/c0d0p5
  72     6     134624 ida/c0d0p6
  72     7     134624 ida/c0d0p7
  72     8    6001664 ida/c0d0p8
  22     0 1073741823 hdc
[root@rpc1 /proc]# exit
As I understand it, this is similar to how UNIX operating systems report their disk layout:

cylinder0disk0partition1
cylinder0disk0partition2
cylinder0disk0partition3
cylinder0disk0partition4
etc.

What is it you need from fdisk -l that you can't get from that information? Does /etc/fstab have what you're looking for?
 
Old 06-16-2008, 08:13 AM   #17
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Might be able to make use of cciss_vol_status or one of the other Compaq array utilities listed on that page to get more info on monitoring and maintaining your array.
 
Old 06-16-2008, 08:22 AM   #18
Stin
LQ Newbie
 
Registered: Feb 2008
Distribution: Redhat 7.3 Valhalla, Solaris 8, HP Tru64
Posts: 25

Rep: Reputation: 15
Thanks for the help and time guys.

If i do fdisk /dev/ida/c0d0 and then 'p' to print table info i get this information which I think is the same as what would have been output by fdisk -l, but why doesnt fdisk -l work?


Code:
 Disk /dev/ida/c0d0: 255 heads, 32 sectors, 4357 cylinders
Units = cylinders of 8160 * 512 bytes

         Device Boot    Start       End    Blocks   Id  System
/dev/ida/c0d0p1   *        10        42    134640   83  Linux
/dev/ida/c0d0p2            43      2175   8702640    f  Win95 Ext'd (LBA)
/dev/ida/c0d0p3             1         9     36704   12  Compaq diagnostics
/dev/ida/c0d0p5            43       638   2431664   83  Linux
/dev/ida/c0d0p6           639       671    134624   83  Linux
/dev/ida/c0d0p7           672       704    134624   82  Linux swap
/dev/ida/c0d0p8           705      2175   6001664   83  Linux

Last edited by Stin; 06-16-2008 at 08:26 AM.
 
Old 06-16-2008, 08:27 AM   #19
Stin
LQ Newbie
 
Registered: Feb 2008
Distribution: Redhat 7.3 Valhalla, Solaris 8, HP Tru64
Posts: 25

Rep: Reputation: 15
Quote:
Originally Posted by pwc101 View Post
What is it you need from fdisk -l that you can't get from that information? Does /etc/fstab have what you're looking for?
I was after the start and end blocks of each partition in case I have to re-build a disk from scratch.
 
Old 06-16-2008, 11:26 AM   #20
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Hmmm... not sure how you might do that. Sorry

Perhaps dd can give you that information - make sure you read the man page first!
 
Old 06-16-2008, 01:15 PM   #21
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Were you root when you issued fdisk -l ? Works fine for me as root, but not as normal user..

Code:
normaluser@mail:~$ /sbin/fdisk -l
mormaluser@mail:~$ 

mormaluser@mail:~$ su - 
Password: 

mail:~# fdisk -l 

Disk /dev/cciss/c0d0: 146.7 GB, 146747220480 bytes
255 heads, 63 sectors/track, 17841 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          30      240943+  83  Linux
/dev/cciss/c0d0p2              31         395     2931862+  83  Linux
/dev/cciss/c0d0p3             396         760     2931862+  82  Linux swap / Solaris
/dev/cciss/c0d0p4             761       17841   137203132+   5  Extended
/dev/cciss/c0d0p5             761        3192    19535008+  83  Linux
/dev/cciss/c0d0p6            3193        3435     1951866   83  Linux
/dev/cciss/c0d0p7            3436        4408     7815591   83  Linux
/dev/cciss/c0d0p8            4409        4773     2931831   83  Linux
/dev/cciss/c0d0p9            4774       17841   104968678+  83  Linux
 
  


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
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
How can I get konqueror's media:/ to list hard drives by label instead of size? DaneM Linux - Software 1 06-03-2006 02:57 PM
I have two 35 GB hard-drives with Ubuntu installed. How to set up RAID? Mateo1041 Linux - Hardware 31 01-19-2006 01:32 PM
System's locks when running games installed via apt JackieBrown Debian 7 09-01-2005 08:42 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM

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

All times are GMT -5. The time now is 10:05 PM.

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