AnswerBun.com

How do I turn my partitions into a Windows-like C and D disk?

Ask Ubuntu Asked on December 31, 2021

Based on my fruitless googling I must have misunderstood how partitions work.

I have 1 hard drive on which I installed Ubuntu 18.04. I’ve then decided I want to split my 1 partition into 2. I did this with the help of a bootable Ubuntu USB stick and GParted

What I expected to happen afterwards was that I would have something like the Windows disk C and disk D which would basically just separate my storage.

How do I get from where I am now to having that Windows-like situation?

enter image description here

One Answer

In linux, there is no complicated notion of extra drive letters. You only have to understand file paths to locate any file available to you.

In Linux, everything is a file. There is one single starting folder, the "root directory", which simply is represented by "/". Many folders exist in that root directory. Most contain system files. One folder is called "home". Its full path is "/home". There, the user's home folders live. So if your login is "david", there will be a folder "david" in the "/home" folder. The full pathname to that folder is "/home/david".

Partitions that contain a file system, i.e. what Windows would see as a "different drive letter" are, in linux, integrated into the file system. This is done by mounting the partition into a folder of the file system.

USB drives that you plug in are automatically mounted in a folder under "/media". In your example, these drives would be mounted under "/media/david". The file manager shows such mounted drives in a "windowesque" manner by showing an icon for them in the left pane.

Your /dev/sda1 is your root partition. You will never be able to see that as a separate storage volume. Navigate to its contents through "Other locations" in the file manager, then "Computer".

You could have your /dev/sda2 appear as a "drive letter" if you label it. If a partition has a label, that label will be used to display the partition in File manager. So set the label to for example "D" and the partition will show up in the left pane as "D".

If you give the partition a name, it will be shown with that name.

Answered by vanadium on December 31, 2021

Add your own answers!

Related Questions

MS-CHAPv2 Success packet is badly formed

1  Asked on December 11, 2020 by utanpeople

         

Diagnosing Ubuntu Ethernet Connection

0  Asked on December 10, 2020 by nguyenistheloneliestnumber

   

How do I write a Unity system indicator in Python?

2  Asked on December 9, 2020 by user-dz

         

How do I install Java?

14  Asked on December 9, 2020

     

Unmet dependencies for MySQL Workbench

0  Asked on December 9, 2020 by patryk-kouchowski

     

Display IP address in panel ubuntu

1  Asked on December 8, 2020

   

The path to docker’s volumes in Ubuntu

3  Asked on December 7, 2020 by transcendent

   

Install Canon TS9120 in wifi mode

0  Asked on December 7, 2020 by fixit7

     

systemd update conflicts with upstart

1  Asked on December 7, 2020 by david-novk

       

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir