LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need to know the command which shows all non-partitioned & partitioned hard drive (http://www.linuxquestions.org/questions/linux-newbie-8/need-to-know-the-command-which-shows-all-non-partitioned-and-partitioned-hard-drive-604428/)

saidul 12-04-2007 09:43 AM

Need to know the command which shows all non-partitioned & partitioned hard drive
 
hi,

i am just a tyro. plz answer my question which i asked as my subject line.when i use the command fdisk -l it just shows the partitioned drive. but i want to see the all drive irrespective of partitioned and non partitioned.

saidul

MasterC 12-04-2007 10:56 AM

fdisk -l should show both, check your distro's alias commands to make sure it's not hiding them.

-Chad

pixellany 12-04-2007 04:02 PM

fdisk gives you the total size of the drive, and the parameters for each partition. You have to calculate the remaining space. GUI tools such as GParted do the math for you.

Don't know what you mean by "see all the drive"--in the unpartitioned areas, there's nothing to see.

If you want to see everything on the drive--byte by byte---you can use dd + hexdump.


All times are GMT -5. The time now is 02:37 AM.