

- How to install linux on a blank hard drive update#
- How to install linux on a blank hard drive mac#
- How to install linux on a blank hard drive windows#
We could run a quick read and write test on the new hard drive. $ sudo chown -R leimao:leimao /media/panda # sudo chown -R USERNAME:USERNAME /media/panda


The procedure shown here works for Ubuntu and all other distributions based on it such as Kubuntu, Xubuntu, Lubuntu, Ubuntu.
How to install linux on a blank hard drive windows#
Install Ubuntu by replacing Windows and other operating systems The screenshot might look a little bit different but the steps are basically the same.
How to install linux on a blank hard drive mac#
To add write privilege to user, we could run the following command. Can you install linux on a mac that has a blank hard drive windows. With the settings mentioned above, we could read the data from the new hard drive, and write to the new hard drive with sudo. To activate the mounting immediately without rebooting the computer, we could run the following command. To know what exactly those values means in the /etc/fstab file, please check fstab.

We add the following line to the /etc/fstab file. To automatically mount the new hard drive file system, we have to edit the /etc/fstab file. To mount and unmount manually, we could run the following commands. To mount the new hard drive file system, we have to create an empty directory for mounting first. However, its file system is not visible on our operating system because it has not been mounted. So far we have prepared a new hard drive with partitions. Writing superblocks and filesystem accounting information: done Make sure the device partition name is the desired one. This can be done easily using the following command. The next step is to format the partitions. We could see that the only partition for our new hard drive is sdb1. Once it is done, we could confirm the partitions of the disk using the following command.
How to install linux on a blank hard drive update#
Information: You may need to update /etc/fstab. Number Start End Size File system Name Flags Sector size (logical/physical): 512B/512B Welcome to GNU Parted! Type 'help' to view a list of commands. So I partition the entire entire hard drive as one partition. I never partition the hard drive into multiple partitions unless it is very necessary. The next step is to partition the hard drive. We could also query the type of the hard drive using the following command. In my case, the new hard drive is the 1TB hard drive and its logical name is /dev/sdb. 1Ĭapabilities: 15000rpm gpt-1.00 partitioned partitioned:gptĬonfiguration: ansiversion=6 guid=19af133c-b0ce-45ab-ab5d-9f3d22a9e606 logicalsectorsize=512 sectorsize=512Ĭonfiguration: ansiversion=6 logicalsectorsize=512 sectorsize=512Ĭapabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ramĬonfiguration: ansiversion=5 status=nodisc Once we have plugin the new hard drive to the computer, we have to first determine the logical name of the drive. Installation Protocol Determine Drive Information In this blog post, I quickly documented the installation protocol of a new hard drive using commands on Ubuntu 18.04 LTS.
