[SOLVED] New to Linux Trying to understand Drive label structure
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
New to Linux Trying to understand Drive label structure
I am new to linux. I am using Knoppix 6.2 I am trying to understand the drive (device) structure. I think that my c:\ drive is /media/sda1 and my d:\ is /media/sda5. What does the letters sda stand for? The number 1 seems to mean the first drive, but does my second drive d:\ have the number 5 assigned to it. When looking around I find that these drives are listed in what looks like different directories, \media, \mount, and the like. What are these? Is there a good tutorial somewhere or can someone suggest a good book (paper, I'm an old guy) that can help me with these basic questions. I'd appreciated any help, Thanks Mike
I am new to linux. I am using Knoppix 6.2 I am trying to understand the drive (device) structure. I think that my c:\ drive is /media/sda1 and my d:\ is /media/sda5. What does the letters sda stand for? The number 1 seems to mean the first drive, but does my second drive d:\ have the number 5 assigned to it. When looking around I find that these drives are listed in what looks like different directories, \media, \mount, and the like. What are these? Is there a good tutorial somewhere or can someone suggest a good book (paper, I'm an old guy) that can help me with these basic questions. I'd appreciated any help, Thanks Mike
the sd stands for SCSI driver or something like that, I don't quite remember off-hand; the "a" is just a label, so you can have sda and sdb if you have two SATA hard drives in the machine, for IDE hard drives you would have hda and so on.
the number indicates partitions on the disk, so sda1 is the first partition on the drive, sda5 is most likely the first logical partition under an extended partition.
/media and /mnt tend to be very similar in my experience, basically they're both places to mount a file system (eg. a CD, USB stick, hard disk, etc)note that in many cases the folder where a filesystem would be mounted exists, even if nothing is mounted there - so a /media/cdrom/ folder may exist and be empty without a CD actually mounted.
http://tldp.org/LDP/intro-linux/html/sect_03_01.html
That should be a good starting place, a good idea once you've got the basics is to search around for key words[eg. via google or duckduckgo] you come across, and keep looking around for new key words you've found etc. if you find a program name (like fdisk) then use
man <program name>
to learn more about it if it's installed in your distribution odds are good there's a man page for it.
While you can get some answers here, there are a lot of things you can simply Google such as "what does sda stand for linux". You will frequently get the answer much more quickly by Googling. Also, check out
Code:
https://en.wikipedia.org/wiki/Master_boot_record
and the "see also" at the bottom of that page. Linux is not made to the average dumbasp to use it without thinking. You have to be willing to learn about it and experiment with it. Which means you have to have a spare hard drive that you don't mind scrambling. Also check out:
There's a book on knoppix "Knowing Knoppix" advertised on the Knoppix page of distrowatchbut I have no idea how good it is. There are also links to other sources of information.
In Linux sda (strictly /dev/sda) is the first hard disc, sdb the next, and so on. HD's are often split into partitions. There are at most four "primary" partitions on each HD, numbered sda1, sda2, sda3, sda4, sdb1, etc
One only of these (any one) may be an "extended" partition, and contain "logical partitions". These are numbered sda5, sda6, sda7 etc, even if not all of the primary partitions exist.
Your guess that sda1 is C: and sda5 is D: is probably correct. You may be able to check by double clicking on an icon called /media/sda1, or by opening a terminal and typing ls /media/sda1. If it is mounted, you will see a list of files and folders which you will recognise. If it is not mounted, and you want to get to your Windows stuff, you will have to mount it/them.
Thank you for all the suggestions. I will look into the book and the internet ideas. I have just learned how to us partimage and I copied my C:\ drive (sda1). Then restored it to another drive and found that I got an exact copy. Pretty slick! I'm sure I'll have more questions as I learn. Seems the more I know, the less I really know. Mike
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.