How to use multiple Hard drives in Ubuntu linux?
20,162
If you need to make a partition auto mounted in Ubuntu.
Run:
sudo blkid
You will see UUIDs of your partitions, the next is just an example:
/dev/sda1: LABEL="Recovery" UUID="B23613F43613B875" TYPE="ntfs"
/dev/sda2: LABEL="Windows" UUID="38CE9483CE943AD8" TYPE="ntfs"
/dev/sda3: LABEL="Data" UUID="519CB82E5888AD0F" TYPE="ntfs"
/dev/sda5: UUID="00d7d951-2a35-40fd-8e5d-411bb824ff3b" TYPE="swap"
/dev/sda6: LABEL="Ubuntu" UUID="6044b1d0-208e-4ab3-850d-03a92e1516fc" TYPE="ext4"
You shall take a UUID from your output which is corresponding to the partition you are going to automount:
sudo gedit /etc/fstab
For a general-purpose read-write mount, add this line to the end of /etc/fstab:
for ext4
UUID=6044b1d0-208e-4ab3-850d-03a92e1516fc /disk-sda5-kubuntu ext4 defaults 0 2
or for NTFS
UUID=519CB82E5888AD0F /media/Data ntfs-3g defaults,windows_names,locale=en_US.utf8 0 0
but change UUID to yours.
Related videos on Youtube
Author by
Tom
Updated on September 18, 2022Comments
-
Tom over 1 year
I am using matplotlib.pyplot.
I would like to do the following:
- I want to plot a series of background dots (single blue dot in example).
- I add an additional series of dots (3 black dots in example)
- I save the figure
- I remove the additional series of dots (black) and keep the background one (blue).
How can I perform step 4? I would like to avoid having to replot the background dots.
Hereunder is an example of code with step 4 missing.
import matplotlib.pyplot as plt fig = plt.figure() plt.xlim(-10,10) plt.ylim(-10,10) #step 1: background blue dot plt.plot(0,0,marker='o',color='b') #step 2: additional black dots points_list = [(1,2),(3,4),(5,6)] for point in points_list: plt.plot(point[0],point[1],marker='o',color='k') #step 3: save plt.savefig('test.eps') #step 4: remove additional black dots
-
oldfred over 9 yearsWhat files. Generally you want / (root) and probably /home's hidden user settings in SSD as they are accessed the most. And most data is not accessed often, so being on a slower hard drive is fine. You can put some data on SSD, but then have to manage how much so not to fill SSD unless you have a very large SSD.
-
Tom almost 6 yearsthanks, it works just fine if I add a comma after 'temporaryPoints' on the first line.