Koozali.org: home of the SME Server

Various command errors adding HDD

Offline shano

  • 2
  • +0/-0
Various command errors adding HDD
« on: July 10, 2013, 05:00:14 AM »
Hi all. 8 year user first time poster.

I have been using 8.X now for a few months and as the system is now all new hardware (No more P3 600EB) I would like to integrate the server into my network more.

The system has been installed 64bit on a 120GB SSD, Intel i3.

I have tried to add a 4TB WD Black and symlinking an ibay for network shares, workstation backups and various other things.

following http://wiki.contribs.org/AddExtraHardDisk there are a few errors and missing commands???

So no raid. Just a stand alone disk.

I knew the disk had to be GPT. So initialized the disk in win7 as a GPT disk with no format.

Put the disk in the system and proceeded and realized fdisk cant format this drive. Not knowing how to install or use Parted I put the disk back into the win7 pc and formatted it ext3.

Put the drive back into SME and proceeded with the instructions.

smartctl -i /dev/hda or hdc - failed no such device. for some reason my system sees the hdds as sd not hd. EG I already have sda1 and sda2 now trying to install sdb / sdb1.
So my command is smartctl -i /dev/sdb

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD4001FAEX-00MJRA0
Serial Number:    WD-WCC130397133
LU WWN Device Id: 5 0014ee 2b2dcdfc0
Firmware Version: 01.01L01
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Size:      512 bytes logical/physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Wed Jul 10 12:37:57 2013 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

"Device is:" got my attention but my main disk has the same response so left it alone.

mkfs.ext3 /dev/hdc1
my command mkfs.ext3 /dev/sdb1 could not stat /dev/sdb1 --- no such file or directory

tried mkfs.ext3 /dev/sdb Is entire device, Not just one partition! proceed anyway "y"
Writes 29809 inode tables

mkdir /mnt/newdisk

didnt get a confirmation so typed it again to see if i got an error
mkdir /mnt/newdisk got an error saying file already exists

pico /etc/fstab command not found

cant mount it???


Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: Various command errors adding HDD
« Reply #1 on: July 10, 2013, 05:23:39 AM »
pico is no longer available in SME8

use nano

# nano /etc/fstab

and I prefer the laternatiove methods shown at Mapping Alternatives, in particular Alternative 2: Mounting a specific ibay or user
« Last Edit: July 10, 2013, 05:26:01 AM by TerryF »
--
qui scribit bis legit

Offline shano

  • 2
  • +0/-0
Re: Various command errors adding HDD
« Reply #2 on: July 10, 2013, 06:44:38 AM »
Thanks. I'll try that.

Is this hd and sd thing normal or is there another issue.

So the drive appears fine just needs to be mounted?

Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: Various command errors adding HDD
« Reply #3 on: July 10, 2013, 08:14:13 AM »
Thanks. I'll try that.

No worries..

Is this hd and sd thing normal or is there another issue.

Not a problem as such but something to be awatre of, see HERE and HERE for a couple of many discussions re this issue

So the drive appears fine just needs to be mounted?

Yep...pick your method and go with it.
--
qui scribit bis legit

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Various command errors adding HDD
« Reply #4 on: July 10, 2013, 09:27:08 AM »
@shano: I believed that it is a known fact that we can't use hard disks larger than 2TB with SME for certain reasons that you have started to see, but it is really interesting to watch your work and we have to document it in the wiki if you can get some good results. So post here the result please and above all the exact way you have proceeded to be written in the wiki.

@Terry: the howTo which shano refers seems out of date notably because it refers to hda/hdb/hdc.
Some mentions should be given on how your disk is called when you are on a sata Disk.....what do you think Terry ?
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: Various command errors adding HDD
« Reply #5 on: July 10, 2013, 09:42:43 AM »
@Terry: the howTo which shano refers seems out of date notably because it refers to hda/hdb/hdc.
Some mentions should be given on how your disk is called when you are on a sata Disk.....what do you think Terry ?

Maybe just a coverall statement in early pages of manual or those sections dealing with raid, adding hds etc, that depending on your system (ATA) and hard drive, hard drives will be labeled hdx or sdx, older motherboards and drives seem to be problamatic. Newer stuff doesn't seem to have an issue. BIOS settings also play a part.
--
qui scribit bis legit

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Various command errors adding HDD
« Reply #6 on: July 10, 2013, 10:14:56 AM »
I have added a note box, but with less things that you have proposed Terry, feel free to add more stuff
http://wiki.contribs.org/AddExtraHardDisk#Assumptions
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: Various command errors adding HDD
« Reply #7 on: July 10, 2013, 10:28:19 AM »
I have added a note box, but with less things that you have proposed Terry, feel free to add more stuff
http://wiki.contribs.org/AddExtraHardDisk#Assumptions

No worries stephdl, I will add a tid bit or two from some of the discussions that have flowed here..
--
qui scribit bis legit

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Various command errors adding HDD
« Reply #8 on: July 10, 2013, 10:46:17 AM »
No worries stephdl, I will add a tid bit or two from some of the discussions that have flowed here..
I know it is a pleasure to work with you Terry....there are some promotions of flower in Spain (i'm in holidays), really they are not expensive :D
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!