How do I tell what hard drive corresponds to sda1, sda2, sdb

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
meganreeves

How do I tell what hard drive corresponds to sda1, sda2, sdb

Post by meganreeves »

I ran sudo fdisk -lu to try identifying my drives and got this:

Disk /dev/sda: 4034 MB, 4034838528 bytes
255 heads, 63 sectors/track, 490 cylinders, total 7880544 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007679c

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 7419903 3708928 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 7421950 7878655 228353 5 Extended
Partition 2 does not end on cylinder boundary.
/dev/sda5 7421952 7878655 228352 82 Linux swap / Solaris

Disk /dev/sdb: 8069 MB, 8069677056 bytes
255 heads, 63 sectors/track, 981 cylinders, total 15761088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb89d9a27

Device Boot Start End Blocks Id System
/dev/sdb1 63 15743699 7871818+ 7 HPFS/NTFS

I have a 4 gb drive which Mint runs on, and another 8 gb drive which goes basically unused. The 8gb drive has like 7.1 gb left and the 4gb one has 605 mb left on it. The 4gb and 8gb are physically separate. Which one is the 8gb one? /dev/sdb? Which one is my mint filesystem?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
dawgdoc

Re: How do I tell what hard drive corresponds to sda1, sda2,

Post by dawgdoc »

meganreeves wrote:I ran sudo fdisk -lu to try identifying my drives and got this:

Disk /dev/sda: 4034 MB, 4034838528 bytes
/dev/sda1 * 2048 7419903 3708928 83 Linux
/dev/sda5 7421952 7878655 228352 82 Linux swap / Solaris

Disk /dev/sdb: 8069 MB, 8069677056 bytes
/dev/sdb1 63 15743699 7871818+ 7 HPFS/NTFS

I have a 4 gb drive which Mint runs on, and another 8 gb drive which goes basically unused. The 8gb drive has like 7.1 gb left and the 4gb one has 605 mb left on it. The 4gb and 8gb are physically separate. Which one is the 8gb one? /dev/sdb? Which one is my mint filesystem?
sdb is your 8Gb drive, it is formated for Windows, NTFS, which Mint is able to access. Mint is on sda, it has two partitions sda1 for your root partition and sda5 for the swap partition.
meganreeves

Re: How do I tell what hard drive corresponds to sda1, sda2,

Post by meganreeves »

Thanks for the help! :D
dawgdoc

Re: How do I tell what hard drive corresponds to sda1, sda2,

Post by dawgdoc »

The command

Code: Select all

df -h
gives very friendly output of the mounted partitions.

The output will look something like

Code: Select all

dawgdoc-lm9@dawgdoc-lm9-laptop ~ $ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda11            9.2G  4.4G  4.4G  51% /
/dev/sda10             25G   14G   11G  56% /media/Music_Partition
/dev/sda8              20G   12G  8.4G  58% /media/Data
/dev/sda9              40G  3.9G   36G  10% /media/Vids_Pics
/dev/sda6              14G  763M   13G   6% /home
meganreeves

Re: How do I tell what hard drive corresponds to sda1, sda2,

Post by meganreeves »

dawgdoc wrote:The command

Code: Select all

df -h
gives very friendly output of the mounted partitions.

The output will look something like

Code: Select all

dawgdoc-lm9@dawgdoc-lm9-laptop ~ $ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda11            9.2G  4.4G  4.4G  51% /
/dev/sda10             25G   14G   11G  56% /media/Music_Partition
/dev/sda8              20G   12G  8.4G  58% /media/Data
/dev/sda9              40G  3.9G   36G  10% /media/Vids_Pics
/dev/sda6              14G  763M   13G   6% /home
I saw that some place else and thought it looked quite handy. Thanks for the tip!
Locked

Return to “Beginner Questions”