LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 01-10-2010, 06:24 AM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 775

Rep: Reputation: 67
Question fdisk in Solaris


Hi all,

I have got a spare box up and running with the latest stable OpenSolaris and have to say I'm pretty impressed with it. It's a relief to find there aren't too many significant differences to the more mainstream Linux flavors I'm used to. I'd sort of feared it might be as exotic as BSD, but fortunately not.

Anyway, one of my mainstay commands in the regular Linux world is "fdisk -l" (that's a lower-case L by the way) which shows all the volumes the system can detect whether mounted or not. However, when I run this in OpenSolaris I get a message telling me that the "l" switch is an "illegal option." What should I be inputting to get the info I want?

THanks.

Last edited by Completely Clueless; 01-10-2010 at 06:25 AM.
 
Old 01-10-2010, 07:41 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

Solaris uses format for partitioning/creating slices. You can run
Code:
format
, select your disk from the list and view the slices there. To only printout the partition table you can use
Code:
prtvtoc $DEVICENAME
where is $DEVICENAME is something like
Code:
/dev/rdsk/c0t0d0
.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing fdisk with gnu fdisk in busybox? Alkisx Slackware 5 10-23-2009 11:51 AM
LXer: Compiz on Solaris x86 - Eye Candy for Solarisís Desktop LXer Syndicated Linux News 1 05-30-2007 02:31 PM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
Viewing Partitions with fdisk - Solaris 10 hal8000b Solaris / OpenSolaris 3 04-02-2007 01:14 PM
LXer: Hp Puts Solaris on More X64 Servers, Partners for Solaris Emulation LXer Syndicated Linux News 0 02-07-2007 07:21 AM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration