You are on page 1of 9

Linux Partition Naming Convention ( IDE Drive Mappings

)

http://www.cyberciti.biz/faq/linux-partition-naming-convention-and-ide-d...

Main menu BASH Shell Troubleshooting Nginx Networking MySQL Google Cloud Platform Amazon Cloud Computing Rackspace Cloud Computing Linux CentOS Debian / Ubuntu Ubuntu Linux Suse RedHat and Friends Slackware Linux UNIX AIX Mac OS X FreeBSD FreeBSD Jails (VPS) Openbsd Solaris See all tutorial topics Blog About Contact us Forum RSS/FEED

Linux FAQ / Howtos

Linux Partition Naming Convention ( IDE Drive Mappings )
by nixCraft on May 4, 2006 · 9 comments· LAST UPDATED March 6, 2009 in Debian / Ubuntu, File system, Linux Q. I am new to Linux and I not able to understand /dev/hdc (is it C: drive?) under Linux. This is quite confusing for a new Linux user like me. What device naming convention followed by Linux? Can you explain it in layman’s term? A. Linux does not follows DOS or Windows XP style partition names or drive names. It is true that it is a bit

1 of 9

10/16/2013 5:38 PM

. 9733 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id /dev/hdb1 * 1 2432 19535008+ /dev/hdb2 2433 2554 979965 /dev/hdb3 2555 6202 29302560 /dev/hdb4 6203 9733 28362757+ /dev/hdb5 6203 9733 28362726 System 83 W95 FAT32 82 Linux swap / Solaris System 83 Linux 82 Linux swap / Solaris 83 Linux 5 Extended 83 Linux In above output /dev/hda1 is FAT32 partition with Windows XP installed (windows XP/Vista C: ). Now each hard drive has 4 primary partitions (limit of PC x86 architecture). If you are using SCSI interface it will use SD word. A typical home pc or laptop has 2 or 4 IDE channels as follows: ide0 = primary ide1 = secondary ide2 = tertiary ide3 = quaternary For example: ide0 = primary master = hda ide1 = primary slave = hdb ide2 = secondary master = hdc ide3 = secondary slave = hdd and so on. SCSI devices are listed as devices sda.0 GB. 63 sectors/track. 63 sectors/track. sdc.. 2 of 9 10/16/2013 5:38 PM . 20060651520 bytes 255 heads. sdf. Linux use combination of bus and . 80060424192 bytes 255 heads. sdd.. confusing for a new Linux user. sdb. # fdisk -l Output: Disk /dev/hda: 20.Linux Partition Naming Convention ( IDE Drive Mappings ) http://www.biz/faq/linux-partition-naming-convention-and-ide-d. Use fdisk command with caution as it manipulate your partition table.. First partition is denoted by number 1.cyberciti. For example: First partition : /dev/hda1 Second partition : /dev/hda2 Third partition : /dev/hda3 Fourth partition : /dev/hda4 You can run command fdisk -l to display list of partitions: WARNING! These examples may result into data loss. Similarly. sde. partitions on these disks can range from 1 to 16 and are also in the /dev directory. 2438 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id /dev/hda1 * 1 1275 10241406 /dev/hda2 1276 1530 2048287+ Disk /dev/hdb: 80. and sdg in the /dev directory. For example if you are using IDE hard disk or CDROM it is will use HD word.0 GB.

Some time ago I was trying to do the same configuration( windows OS-primary master.cyberciti. Mac OS X. So you can have partition number as follows: a) 1-4 primary partitions b) 5-16 logical partitions For example /dev/hda5. Facebook. but one of those partitions can be designated as an extended partition. 2006 at 11:16 am Having looked at the answer to the question. I was getting error some think like ” MBR error “. Google+. and linux is ide1.. I think that output “fdisk -l” suggests that windows OS is at ide0. The installation was ok. Featured Articles: 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X Top 30 Nmap Command Examples For Sys/Network Admins 25 PHP Security Best Practices For Sys Admins 20 Linux System Monitoring Tools Every SysAdmin Should Know 20 Linux Server Hardening Security Tips Linux: 20 Iptables Examples For New SysAdmins Top 20 OpenSSH Server Best Security Practices Top 20 Nginx WebServer Best Security Practices 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors 15 Greatest Open Source Terminal Applications Of 2012 My 10 UNIX Command Line Mistakes Top 10 Open Source Web-Based Project Management Software Top 5 Email Client For Linux. Inside of this extended partition. linux – primary slave).biz/faq/linux-partition-naming-convention-and-ide-d. Reply 2 Anonymous July 20.. logical partitions can be specified. Tweet 0 0 1 Like StumbleUpon If you would like to be kept up to date with our posts. 3 of 9 10/16/2013 5:38 PM . or even by subscribing to our RSS Feed. Then I had to create a boot disk in order to get my windows to work. you can follow us on Twitter. During the boot up. 2006 at 4:53 pm It is true that PC/X86 impose a limit of 4 primary partitions per hard drive.Linux Partition Naming Convention ( IDE Drive Mappings ) http://www. and Windows Users The Novice Guide To Buying A Linux Laptop { 9 comments… read them below or add one } 1 Anonymous May 4.

For example if you had 2 parition on /dev/hda. 2006 at 9:02 pm You can install mbr on /dev/hda (IDE0) and use grub to boot both oses or use Windows 2000/XP to boot Linux. hence backup is suggested. Any suggestion how could I get the same configuration to work? Reply 3 nixcraft July 23.. you need to address it by partitions.biz/faq/linux-partition-naming-convention-and-ide-d. Is your boot loader on MBR or on hda1? My ide0 has 4 partionspartition 1(NTFS). If you need specific procedure let me know… or just post your question to our forum.biz Reply 4 Anonymous August 2.windows data partition 4 – Unallocated.cyberciti. 2009 at 1:16 pm For example: ide0 = primary master = hda ide1 = primary slave = hab ide2 = secondary master = hdc ide3 = secondary slave = hdd Hi . ide1 = primary slave = hab should be 4 of 9 10/16/2013 5:38 PM .windows os partition 2 & 3(NTFS). 2006 at 7:01 pm —————————————– DISK ==> Your device —————————————– /dev/hda ==> Primary Master IDE /dev/hdb ==> Primary Slave IDE /dev/hdc ==> Secondary Master IDE /dev/hdd ==> Secondary Slave IDE /dev/sda ==> SCSI Disk 0 /dev/sdb ==> SCSI Disk 1 /dev/sdc ==> SCSI Disk 2 /dev/sdd ==> SCSI Disk 3 —————————————– in order to address the actual data that is being held on your data.cyberciti.Linux Partition Naming Convention ( IDE Drive Mappings ) http://www. First parition => /dev/hda1 Second parition => /dev/hda2 Hope this helps someone :) Reply 5 ghanshyam Gupta March 6.. Both operations require modification of MBR.

2009 at 11:42 am hi. 5 of 9 10/16/2013 5:38 PM . Reply Leave a Comment Name * E-mail * Website You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title=""> Notify me of followup comments via e-mail Security Question: What is 16 + 10 ? Solve the simple math so we know that you are a human and not a bot. 2011 at 3:14 pm Works on openSUSE 11.Linux Partition Naming Convention ( IDE Drive Mappings ) http://www. thanks ghanshyam gupta Reply 6 ghanshyam Gupta March 6. how to run an application in linux Reply 8 VARMA April 18.. 2009 at 1:18 pm ide1 = primary slave = hab should be ide1 = primary slave = hdb Reply 7 sangeetha June 18.biz/faq/linux-partition-naming-convention-and-ide-d. 2011 at 9:51 am Shortcut Key for RUN command = Alt+f2 Reply 9 Brian Esserlieu September 14.can any one suggeess me.. make sure to change the ownership of the new partition from root (sudo chown ).cyberciti.

c drive. hard disk. primary slave.. sdg. dev directory. Tagged as: /dev/hda /dev/hdb naming standards. linux device convention.biz/faq/linux-partition-naming-convention-and-ide-d. device boot. hdc. sdc. linux hard drive naming convention. hdd. partition. linux user. fdisk command. scsi devices.155 6 of 9 10/16/2013 5:38 PM . linux hard disk name. secondary slave Previous Faq: File Size Limit Exceeded Error Under Linux and Solution Next Faq: How does SNMP work? GET FREE LINUX TIPS Sign up for our newsletter to get howto & news nixCraft on +7. linux hda naming convention. linux drive names in windows. ide vs. linux partition naming. hd linux /dev/ide0. drive names.Linux Partition Naming Convention ( IDE Drive Mappings ) http://www.cyberciti.. naming convention. format a disk in linux. convention partitions. device renaming linux convention. sdf.

Related Faqs Linux: How to delete a partition with fdisk command CentOS / Redhat: Chroot And Mount Raid Or Actual Hard Disk From 7 of 9 10/16/2013 5:38 PM ..biz/faq/linux-partition-naming-convention-and-ide-d.cyberciti..Linux Partition Naming Convention ( IDE Drive Mappings ) http://www.

Rescue Kernel / CD HowTo: Create Slackware Linux Bootable USB Pen Drive Show Linux Partitions Command How to: Formatting Linux Filesystem HowTo: Linux List Disk Partitions Command Linux Hard Disk Format Command HowTo: Reload (re-read) Partition Table In Ubuntu Linux 8 of 9 10/16/2013 5:38 PM .biz/faq/linux-partition-naming-convention-and-ide-d..cyberciti.Linux Partition Naming Convention ( IDE Drive Mappings ) http://www..

Linux Partition Naming Convention ( IDE Drive Mappings ) http://www. Cannot be reproduced without written permission.cyberciti. Privacy Policy | Terms of Service | Questions or Comments | Sitemap 9 of 9 10/16/2013 5:38 PM . All rights reserved.biz/faq/linux-partition-naming-convention-and-ide-d. Linux / UNIX: Device files FreeBSD: How To Add A Second Hard Disk Latest posts from our blog Valve SteamOS: A Linux-based Gaming Operating System Announced Download of the day: Half-Life 2 For Steam on Linux Download of The Day: Debian Linux 7 ( Wheezy ) Apache / Nginx: Visualize Web Server Access Log In Real Time Amazon AWS Route 53 GEO DNS Configurations ©2006-2013 nixCraft...