Forums

Resolved
0 votes
Hi. Just done my first install of the Clearos Home. Used to run clarke connect many moons ago.
I installed my system on a 60gb ssd drive to test it and it seems to work fine. I now want to add further 2.5 hard drives as they are cheaper to run, so I found a couple in my cupboard to have a play with so to speak before i go lashing out money on more ssd drives. So here is what i have done so far:

Create partition and format the disk
fdisk /dev/sdb
Press "n" to create new partition
press "p" to create primary partition
Press "w" to write change to the disk

mkdir /mnt/disk2
mount /dev/sdb /mnt/disk2


Create partition and format the disk
fdisk /dev/sdc
Press "n" to create new partition
press "p" to create primary partition
Press "w" to write change to the disk

mkdir /mnt/disk3
mount /dev/sdc /mnt/disk3


"fdisk -l"

Disk /dev/sdb: 250.1 GB, 250059350016 bytes, 488397168 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 /dev/sdc: 320.1 GB, 320072933376 bytes, 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

My questions are: Is what i have done correct?
How do I get the drives to mount at boot up as at the moment i have to mount them manually whenever the server reboots :(

Thanks in advance... its been a very long time sinse i played with linux..
Monday, February 26 2018, 07:56 PM
Share this post:

Accepted Answer

Monday, February 26 2018, 08:34 PM - #Permalink
Resolved
1 votes
To me it looks like something is missing as I don't see the different partitions on the drive (/dev/sdb1 etc - note the 1). Anyway, if the partitions are really /dev/sdb and /dev/sdc you can mount them automatically by adding them to /etc/fstab. It is generally safer to add them by UUID so they never switch identities. Use the command "blkid" to see how the UUID relates to the device. To test, if you add the disks to /etc/fstab then unmount them, typing "mount -a" should re-read fstab and remount them. BTW, I tend to chicken out and use a live disk of Gparted for my disk partitioning and formatting.

If you're a bit more ambitious, you could have a look at the Logical Volume Manager. There are pro's and con's of it. You can treat the two disks as one big space, but you then won't know where any particular file is located. Have a look at this guide for some ideas. There are plenty of LVM guides on the internet.
The reply is currently minimized Show
Responses (7)
  • Accepted Answer

    Tuesday, November 06 2018, 08:00 AM - #Permalink
    Resolved
    0 votes
    Now you need to make the change(s) permanent by modifying grub2 or you'll have to do it every time you boot. I thought you also needed the second parameter.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 05 2018, 10:38 PM - #Permalink
    Resolved
    0 votes
    I typed GFXMODE=1024x768x16 in the terminal, and it must have done something as it didnt say the code was wrong :)

    Is there any chance of having a graphical disk manager app added to clear os? that would be brilliant,

    Thanks again Nick, just need to add my new drives anbd move the fileshares onto them.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, November 04 2018, 08:28 AM - #Permalink
    Resolved
    0 votes
    Are you able to force the display resolution to something like 1024*768 or 1280*1024?

    Can I suggest you search the internet for something like "linux display Out of Range". You only want solutions for grub2 and not grub. I think it involves setting GRUB_GFXMODE, GRUB_GFXPAYLOAD_LINUX and/or GFXMODE=1024x768x16, GFXPAYLOAD_LINUX. Alternatively nomodeset may be a possibility.

    For playing round with disks, you should not need the console. You can do it with SSH from a remote PC. Win10 now comes with an SSH client built in, but I still use PuTTy.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 03 2018, 10:49 PM - #Permalink
    Resolved
    0 votes
    Ok, it's been a while since i have had time to check my machine, when i left off I was trying to sort out my hard drives, I have tried to use the configuration GUI, but every time I login a box appears on my screen saying "Out of Range" I have a brand new 24" screen which supports high resolutions, i dont understand how it can be out of range, I am using a VGA cable, but got the same result on a display cable. any idea how i can get the GUI to work ?
    My hard disk is full and I need to add further drives and reconfigure the drives I have.
    Thanks in advance.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 27 2018, 08:43 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    If you insist you can do it from the console. ClearOS comes with 2 editors, vi (yuck) and nano (better). Vi is for Linux diehards. If you don't know it and will rarely use it, don't bother learning it. Nano is a bit better and more intuitive .......... but again better avoided if possible.

    If you use Windows get hold of PuTTy for a remote console (select to copy, right-click to paste) and WinSCP for graphical file management and a text editor. Both are free. Linux and iOS come with their own file management tools but I hear Midnight Commander is good.



    Thank you for your help Nick, very much appreciated, I am going to have a look at WinSCP later, sadly i am at work today so cant do anything right now. I didnt know there was a graphical managment tool available... how times change :)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 27 2018, 08:34 AM - #Permalink
    Resolved
    1 votes
    If you insist you can do it from the console. ClearOS comes with 2 editors, vi (yuck) and nano (better). Vi is for Linux diehards. If you don't know it and will rarely use it, don't bother learning it. Nano is a bit better and more intuitive .......... but again better avoided if possible.

    If you use Windows get hold of PuTTy for a remote console (select to copy, right-click to paste) and WinSCP for graphical file management and a text editor. Both are free. Linux and iOS come with their own file management tools but I hear Midnight Commander is good.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 27 2018, 08:22 AM - #Permalink
    Resolved
    0 votes
    Thanks for your reply
    Yes that is how i partitioned the drives, I used instructions i found on the internet :)
    The only thing the instructions didnt have was how to re-mount them at boot. when the drives are mounted they are part of my flexshare and both hold about 60gb of data.
    I'd hate to sound stupid..... but... how do you add the drives to /etc/fstab ? I managed to open fstab but it would not permit me to change anything from what i could see, though the bottom of the consul showed ----- insert-----
    Im guessing im asking a question about really basic linux comands here, but i have never had to add drives to a linux box from command line before.

    thanks in advance.
    The reply is currently minimized Show
Your Reply