Jump to content

Howto: create your own linux home server using Debian

MG2R

So I decided to follow you directions and build my own server.

 

my problem comes after setting the language and region. I get prompted with the following error, "no common CD-ROM drive was detected." obviously I must live in 2014 because I dont have a cd drive to begin with. mind you I know nothing about linux. What should I do?

 

edit: also, the rig is not connected to the internet at this time. 

CM Storm Switch Tester MOD (In-Progress) - http://linustechtips.com/main/topic/409147-cm-storm-switch-tester-macro-mod/


       Ammo Can Speaker 02 (Completed) - http://linustechtips.com/main/topic/283826-ammo-can-speakers-02/       A/B Switch V 0.5 (Completed) - http://linustechtips.com/main/topic/362417-ab-switch-v0


     Build 01 - The Life of a Prodigy -  http://linustechtips.com/main/topic/13103-build-01-the-life-of-a-prodigy/             Build 02 - Silent Server 3000 - http://linustechtips.com/main/topic/116670-build-02-silent-server-3000/

Link to comment
Share on other sites

Link to post
Share on other sites

What installer are you running? 'netinst'?

yes, debian-7.4.0-amd64-netinst.iso

 

and using pendrive to install to the external HDD

CM Storm Switch Tester MOD (In-Progress) - http://linustechtips.com/main/topic/409147-cm-storm-switch-tester-macro-mod/


       Ammo Can Speaker 02 (Completed) - http://linustechtips.com/main/topic/283826-ammo-can-speakers-02/       A/B Switch V 0.5 (Completed) - http://linustechtips.com/main/topic/362417-ab-switch-v0


     Build 01 - The Life of a Prodigy -  http://linustechtips.com/main/topic/13103-build-01-the-life-of-a-prodigy/             Build 02 - Silent Server 3000 - http://linustechtips.com/main/topic/116670-build-02-silent-server-3000/

Link to comment
Share on other sites

Link to post
Share on other sites

yes, debian-7.4.0-amd64-netinst.iso

 

and using pendrive to install to the external HDD

 

You need to be connected to the internet for it to work.

i'm a potato

Link to comment
Share on other sites

Link to post
Share on other sites

You need to be connected to the internet for it to work.

yeah, that isnt going to happen. I am at a hotel and I do not think their weird network works. 

CM Storm Switch Tester MOD (In-Progress) - http://linustechtips.com/main/topic/409147-cm-storm-switch-tester-macro-mod/


       Ammo Can Speaker 02 (Completed) - http://linustechtips.com/main/topic/283826-ammo-can-speakers-02/       A/B Switch V 0.5 (Completed) - http://linustechtips.com/main/topic/362417-ab-switch-v0


     Build 01 - The Life of a Prodigy -  http://linustechtips.com/main/topic/13103-build-01-the-life-of-a-prodigy/             Build 02 - Silent Server 3000 - http://linustechtips.com/main/topic/116670-build-02-silent-server-3000/

Link to comment
Share on other sites

Link to post
Share on other sites

yeah, that isnt going to happen. I am at a hotel and I do not think their weird network works. 

 

Then get the full instalation ISO.

i'm a potato

Link to comment
Share on other sites

Link to post
Share on other sites

Then get the full instalation ISO.

yeah, trying to figure that out now. jigdo method? or is there an easier way?

CM Storm Switch Tester MOD (In-Progress) - http://linustechtips.com/main/topic/409147-cm-storm-switch-tester-macro-mod/


       Ammo Can Speaker 02 (Completed) - http://linustechtips.com/main/topic/283826-ammo-can-speakers-02/       A/B Switch V 0.5 (Completed) - http://linustechtips.com/main/topic/362417-ab-switch-v0


     Build 01 - The Life of a Prodigy -  http://linustechtips.com/main/topic/13103-build-01-the-life-of-a-prodigy/             Build 02 - Silent Server 3000 - http://linustechtips.com/main/topic/116670-build-02-silent-server-3000/

Link to comment
Share on other sites

Link to post
Share on other sites

Have you tried different ports?

Yes, no difference.

 

I have tried my best, using different USB ports, killing power while writing to the USB drive, hot and cold reboot, ... I can't seem to recreate the issue. I'm afraid that, apart from what I've already said, Google and reinstalling, there isn't much I can offer from here on. Could always be a hardware issue, though (a bad contact on your USB port or sth like that)

Thanks for the effort.

I'm starting to get really sick and annoyed with all the problems I have with this NAS. So frustrated that I'm thinking of getting a small SSD for the OS, to improve the stability, that was the idea at least.

NAS build log: Gimli, a NAS build by Shaqalac.

Mechanical keyboards: Ducky Mini YotH - Ducky Mini

Link to comment
Share on other sites

Link to post
Share on other sites

is it possible to use a ssd to cache a mdadm array?

Link to comment
Share on other sites

Link to post
Share on other sites

Came across this article.

 

http://www.raid6.com.au/posts/SSD_caching/

 

was wondering if anyone has tried using a ssd to speed up a mdadm array? But after reading this article it seems like using external journal to optimise performance. Anyone have any thoughts on this?

 

Great link (site), lots of info on there, pinning it on my plethora of pinned tabs ;)

I roll with sigs off so I have no idea what you're advertising.

 

This is NOT the signature you are looking for.

Link to comment
Share on other sites

Link to post
Share on other sites

Yea the whole idea of ssd caching on mdadm raid seems pretty new. There isnt that much information out there :(

Link to comment
Share on other sites

Link to post
Share on other sites

Yea the whole idea of ssd caching on mdadm raid seems pretty new. There isnt that much information out there :(

 

Its not new, just not implemented in an OpenSource manner. Plenty of companies are doing it, they just use their proprietary algorithm and proprietary stats. Having some open options is going to be good for us all!

I roll with sigs off so I have no idea what you're advertising.

 

This is NOT the signature you are looking for.

Link to comment
Share on other sites

Link to post
Share on other sites

Just go for it!

Got any recommendations?

 

Another question.

If I use the USB stick for the next year or so and then decides to swap it out with a SSD, how hard will it be to transfer the whole system to the SSD without having to reinstall every package and set the whole thing up again? Can it be done with a simple backup of the whole system and then transfer it to the SSD?

NAS build log: Gimli, a NAS build by Shaqalac.

Mechanical keyboards: Ducky Mini YotH - Ducky Mini

Link to comment
Share on other sites

Link to post
Share on other sites

Awww disapointing.... From the main page it says "How to create your own linu..."

I thought i could make a linus...

n0ah1897, on 05 Mar 2014 - 2:08 PM, said:  "Computers are like girls. It's whats in the inside that matters.  I don't know about you, but I like my girls like I like my cases. Just as beautiful on the inside as the outside."

Link to comment
Share on other sites

Link to post
Share on other sites

Got any recommendations?

I've never had any issues whatsoever with Kingston SSDnow series. The 840 series might be a good option as well.

 

 

Another question.

If I use the USB stick for the next year or so and then decides to swap it out with a SSD, how hard will it be to transfer the whole system to the SSD without having to reinstall every package and set the whole thing up again? Can it be done with a simple backup of the whole system and then transfer it to the SSD?

  1. Boot from live CD/USB
  2. say OS USB = sdb and SSD = sdc
  3. execute the command below

  4. grow OS partition

  5. boot from SSD

Command:

sudo dd if=/dev/sdb of=/dev/sdc bs=64M

Little word of warning, be careful with `dd`, if you screw up the parameters, you could screw everything up REAL bad.

 

 

 

disapointing

I'm terribly sorry about that.

Link to comment
Share on other sites

Link to post
Share on other sites

I've never had any issues whatsoever with Kingston SSDnow series. The 840 series might be a good option as well.

I have been looking at the Kingston SSDnow series, the V300 60GB & 120GB in particular. I'm a bit unsure on which one I should go for. 60GB is undoubtedly enough for Debian and my needs at the moment but will be enough in the 5 years time or so? That's the question, is it worth to use the extra €17 on double the storage even though it might never is going to be utilised.

 

  1. Boot from live CD/USB
  2. say OS USB = sdb and SSD = sdc
  3. execute the command below

  4. grow OS partition

  5. boot from SSD

Command:

sudo dd if=/dev/sdb of=/dev/sdc bs=64M

Little word of warning, be careful with `dd`, if you screw up the parameters, you could screw everything up REAL bad.

Lets say I screw the parameters up, will I only screw Debian up or could I risk the data on the NAS drives, or is that hard to tell?

NAS build log: Gimli, a NAS build by Shaqalac.

Mechanical keyboards: Ducky Mini YotH - Ducky Mini

Link to comment
Share on other sites

Link to post
Share on other sites

Lets say I screw the parameters up, will I only screw Debian up or could I risk the data on the NAS drives, or is that hard to tell?

If you give dd the wrong drive, it will wipe that drive without asking

for confirmation. Personally I always unplug any drives I do not wish

to be wiped when using dd, just to be sure I don't accidentally select

the wrong one. It's a pretty "popular" error in Linux lore. ;)

BUILD LOGS: HELIOS - Latest Update: 2015-SEP-06 ::: ZEUS - BOTW 2013-JUN-28 ::: APOLLO - Complete: 2014-MAY-10
OTHER STUFF: Cable Lacing Tutorial ::: What Is ZFS? ::: mincss Primer ::: LSI RAID Card Flashing Tutorial
FORUM INFO: Community Standards ::: The Moderating Team ::: 10TB+ Storage Showoff Topic

Link to comment
Share on other sites

Link to post
Share on other sites

<all the SSDs>

For reference: I'm running an SSDnow v300 120GB in my laptop, it replaced an SSDnow v100 120 GB. My Desktop has two SSDnow v200 120GB in RAID 0. My server is running an SSDnow V200+ 60 GB. My parents' system downstairs also runs an SSDnow V200+, they used to run an SSDnow v100 60 GB.

 

If you're willing to spend the money, just go for the bigger one. If you're planning on using safe storage (e.g. your array), 60 GB is more than enough.

 

 

 

Lets say I screw the parameters up, will I only screw Debian up or could I risk the data on the NAS drives, or is that hard to tell?

If you give dd the wrong drive, it will wipe that drive without asking

for confirmation. Personally I always unplug any drives I do not wish

to be wiped when using dd, just to be sure I don't accidentally select

the wrong one. It's a pretty "popular" error in Linux lore. ;)

 

Basically what AW said. I usually just triple check and back up everything before dd'ing. It is an awesome piece of copy-goodness, but there are risks involved with its usage. Just be carful and you'll be fine. If you do want to be extra sure, you can always unplug all your HDD's, mdadm shouldn't notice it, since you're running off the live CD.

 

So, TL;DR, there's a reason you need root to use it on complete block devices ;)

 

 

EDIT: side note

The reason `dd` is so dangerous when you use it to wirte directly to a block device is because it just copies data byte for byte. Meaning that the first byte in if will be written to the first byte on of. In case of a drive, this means that dd will completely overwrite your superblock without even blinking, thus erasing any info on the partition layout and used blocks of the device.

Link to comment
Share on other sites

Link to post
Share on other sites

If you give dd the wrong drive, it will wipe that drive without asking

for confirmation. Personally I always unplug any drives I do not wish

to be wiped when using dd, just to be sure I don't accidentally select

the wrong one. It's a pretty "popular" error in Linux lore. ;)

 

Its the Alt-F4 of device writing :lol:

I roll with sigs off so I have no idea what you're advertising.

 

This is NOT the signature you are looking for.

Link to comment
Share on other sites

Link to post
Share on other sites

Its the Alt-F4 of device writing :lol:

Haha, that's an analogy I'm going to keep in mind for future

reference, excellent! :D

BUILD LOGS: HELIOS - Latest Update: 2015-SEP-06 ::: ZEUS - BOTW 2013-JUN-28 ::: APOLLO - Complete: 2014-MAY-10
OTHER STUFF: Cable Lacing Tutorial ::: What Is ZFS? ::: mincss Primer ::: LSI RAID Card Flashing Tutorial
FORUM INFO: Community Standards ::: The Moderating Team ::: 10TB+ Storage Showoff Topic

Link to comment
Share on other sites

Link to post
Share on other sites

If you give dd the wrong drive, it will wipe that drive without asking

for confirmation. Personally I always unplug any drives I do not wish

to be wiped when using dd, just to be sure I don't accidentally select

the wrong one. It's a pretty "popular" error in Linux lore. ;)

It's probably a good idea to unplug my RAID array, better safe than sorry.

 

For reference: I'm running an SSDnow v300 120GB in my laptop, it replaced an SSDnow v100 120 GB. My Desktop has two SSDnow v200 120GB in RAID 0. My server is running an SSDnow V200+ 60 GB. My parents' system downstairs also runs an SSDnow V200+, they used to run an SSDnow v100 60 GB.

 

If you're willing to spend the money, just go for the bigger one. If you're planning on using safe storage (e.g. your array), 60 GB is more than enough.

From your experience with Kingston's SSDs I will probably buy the SSDnow V300 60GB. Don't think there's a reason to spend more money than necessary on storage, that I most likely wont use.

Edited by Shaqalac

NAS build log: Gimli, a NAS build by Shaqalac.

Mechanical keyboards: Ducky Mini YotH - Ducky Mini

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×