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 (14)
  • Accepted Answer

    Monday, January 14 2019, 06:00 PM - #Permalink
    Resolved
    0 votes
    I dont know if the attached images help any, I am not that good on linux anymore, my brain gets battered at work report writing..
    I have rechecked all the drives, would a drive failure prevent it rebooting ? it seems the os drive is intact.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 14 2019, 05:10 PM - #Permalink
    Resolved
    0 votes
    Settings are backed up (by and large). Just download a copy f the backup before reinstalling.

    I am still not understanding why your system won't boot. I can understand it not seeing the new disks but not not booting. I'd need to play around with my Microserver (also G10) and look at it's BIOS, but I've just stuck it in the attic so it is not easy to get to and I don't have a screen connected for the moment. The main things I'd check are that RAID is off in the BIOS and that the SATA settings are all correct.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 14 2019, 04:38 PM - #Permalink
    Resolved
    0 votes
    Nick.
    I have now checked the drives, they all appear to be intact and plugged in as they should, I have a HP Gen 10 microserver, so all drives are in carriers, So now I am wondering whether to just reinstall the system, with the new drives installed, I beleive the settings etc are backed up, so should be able to reinstall, then restore the settings, am I correct in this thinking?
    I would like to move all my files onto the 2 new drives. can i do this during the reinstall?

    Apologise if we are a little off piste with this thread now.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 13 2019, 10:26 PM - #Permalink
    Resolved
    0 votes
    It is worth checking connections. SATA connectors are not designed for replugging too often.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 13 2019, 10:05 PM - #Permalink
    Resolved
    0 votes
    Nick,
    I added 2 x 4tb drives, now you have said that, I’m wondering if an original drive has lost its connection ?,
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 13 2019, 09:40 PM - #Permalink
    Resolved
    0 votes
    Not booting is not an issue mentioned here in this thread. Is it in another thread? Or is it booting but not displaying in the monitor?

    Did you just add two new disks or did you take any out?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 13 2019, 09:18 PM - #Permalink
    Resolved
    0 votes
    So today I had 2 x 4tb drives delivered, shutdown the server, installed the hard drives only for the server to not reboot, same old issue, several boot options, but none work, im now left to do a full reinstall, really not impressed, the screen shows welcome to emergency mode! after logging in blah blah blah.
    This happens after evey reboot, but one of the versions normally work, just not this time..
    So I have lost all my vpn, all my files, everything.. seriously wondering if it is worth reinstalling, trying amahi or just installing a linux distro that is more reliable. :(
    The reply is currently minimized Show
  • 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