Difference between revisions of "Add a Storage Partition & Modify your System to Suit"

m
removed unnecessary whitespace
m (removed unnecessary whitespace)
Line 1: Line 1:
==Introduction==
==Introduction==
My storage system was OK when I initially devised it, as it happens, the years have gone by & it had become inefficient & a bit messy. So, time for a makeover.
My storage system was OK when I initially devised it, as it happens, the years have gone by & it had become inefficient & a bit messy. So, time for a makeover.


Line 30: Line 27:
As previously mentioned, this took 11 -> 12 hours. The larger the partition & the more data involved the longer it takes to process a partition.
As previously mentioned, this took 11 -> 12 hours. The larger the partition & the more data involved the longer it takes to process a partition.


<br clear="all" />
''begin rant:''
''begin rant:''
''As I harp on about in the forum with partition work, finish one job then setup the next job in your partitioning software. Don't give whatever software you are using a string of jobs to do & then tell it to do them all. Your time is valuable & your data is often too valuable to run the risk of corrupting it. Sometimes it is irreplaceable for those that don't backup (baby photos for instance.) /rant''
''As I harp on about in the forum with partition work, finish one job then setup the next job in your partitioning software. Don't give whatever software you are using a string of jobs to do & then tell it to do them all. Your time is valuable & your data is often too valuable to run the risk of corrupting it. Sometimes it is irreplaceable for those that don't backup (baby photos for instance.) /rant''


<br clear="all" />
==Modifying the system to suit these changes==
==Modifying the system to suit these changes==


Line 40: Line 35:


Then in the Terminal I used the blkid command to get the UUID of the new /bdata partition so I could add a call to it into the /etc/fstab :
Then in the Terminal I used the blkid command to get the UUID of the new /bdata partition so I could add a call to it into the /etc/fstab :


  [handy@jarmano ~]$ blkid
  [handy@jarmano ~]$ blkid
Line 48: Line 42:
  /dev/sda4: LABEL="my.home" UUID="b993339d-dbb3-4fbd-adb4-e61baf43cd7f" TYPE="ext4"  
  /dev/sda4: LABEL="my.home" UUID="b993339d-dbb3-4fbd-adb4-e61baf43cd7f" TYPE="ext4"  
  /dev/sdb1: LABEL="store" UUID="05e6f212-4003-430b-a7d9-a53d98fad0b5" TYPE="ext4" PARTUUID="8cb60e1f-8d16-4d9c-bccc-3a2cd5396836"  
  /dev/sdb1: LABEL="store" UUID="05e6f212-4003-430b-a7d9-a53d98fad0b5" TYPE="ext4" PARTUUID="8cb60e1f-8d16-4d9c-bccc-3a2cd5396836"  


As you may have noticed, the new partition was given the /dev/sda2: spot (which once belonged to /swap)
As you may have noticed, the new partition was given the /dev/sda2: spot (which once belonged to /swap)


I Copied the UUID for the new partition into /etc/fstab & created a call for this new partition, like so:
I Copied the UUID for the new partition into /etc/fstab & created a call for this new partition, like so:


  UUID=9fe95af9-529e-4f68-b83c-7fa9e7fb3ba1 /mnt/bdata ext4 defaults      0      1
  UUID=9fe95af9-529e-4f68-b83c-7fa9e7fb3ba1 /mnt/bdata ext4 defaults      0      1


Then as root I made the directory /mnt/bdata , so that the new partition is accessible. You can do this in the Terminal like so (replace <directory.name> with the name you want to call your new partition:
Then as root I made the directory /mnt/bdata , so that the new partition is accessible. You can do this in the Terminal like so (replace <directory.name> with the name you want to call your new partition:


  sudo mkdir /mnt/<directory.name>
  sudo mkdir /mnt/<directory.name>


Due to GParted doing its work with root permissions we need to change the ownership (owner:group) of the new partition, which we do by modifying the ownership of the directory name (that was created in the last command above) from root:root to <user.name>:users. To do that use the following Terminal command:
Due to GParted doing its work with root permissions we need to change the ownership (owner:group) of the new partition, which we do by modifying the ownership of the directory name (that was created in the last command above) from root:root to <user.name>:users. To do that use the following Terminal command:


  sudo chown <user.name>:users  /mnt/<new.partition's.name>
  sudo chown <user.name>:users  /mnt/<new.partition's.name>
Moderators, translator
455

edits