praegune kellaaeg 17.06.2025 20:12:36
|
Hinnavaatlus
:: Foorum
:: Uudised
:: Ärifoorumid
:: HV F1 ennustusvõistlus
:: Pangalink
:: Telekavad
:: HV toote otsing
|
|
autor |
|
busse
HV veteran
liitunud: 14.03.2004
|
16.04.2015 01:20:15
Linuxis ketta formaatimine |
|
|
oleks vaja abi 500gb ketta formaatimisel lacie cloudboxi tarbeks.
juhend on 1tb jaoks, kuid selle alusel 500gb (samsung hd501lj) formattimine ebaõnnestus. partitsioonid tekkisid kuid mahte mitte külge. ehk viitsib keegi kirjeldada ära, mis numbritega partitsioonid peaks tekitama. lisaks tuvastasin, et partitsioon 4 number algas 3000 juures, mitte 1 nagu juhend.
For a 500 GB HDD the number of cylinders will be 60801 instead of 121601. Then use in the instructions below this number instead of 121601.
Version 30 may 2014
First time install instruction for 5big2 and 2big2 Cloudbox, internetspace 2, networkspace max v2 and 2big1 using fvdw-sl console and fvdw-sl-installer script.
(1) 5big2 and 2big2, cloudbox, internetspace 2, networkspace_max 2
For first time install put only one empty disk in your nas in slot 1. (remove all partition first). slot 1 is the most lefthand side one seen from the back
Pretend that you have a nwsp2-classic and use the fvdw-sl installer included in the fvdw-sl console to install the install the firmware (choose the nwsp2 standalone kernel when the console ask you which standalone kernel to use).
Do not use the option to make backup of lacie firmware.
After installation boot the nas and install the latest fvdw-sl upgrade package for your device using the web interface of the firmware.
After this you can add more disks in case you have a multiple disk nas.
Only add disk with NAS switched off
sda is always the first disk in slot 1 containing the firmware.
Raid is not yet supported in our firmware.
How to prepare an additional disk for use with the firmware see chapter (3)
(2) 2big1
The same as above described procedure but use the 2big1 standalone kernel instead of the nwsp2 one.
The system disk of this device cannot be bigger then 2TB and must use a ms-dos partition table because the bootloader only support ms-dos partition tables.
For the rest still pretend that you have a nwsp2 and follow the instruction described in (1)
The other no system disk could be bigger than 2TB and can have a gpt partition table.
(3) Create partitions on additional disks and format them (for multi disks nas only).
In this chapter it is assumed that you installed the firmware on the system disk succesfully.
Switch off your nas when adding the other disks in the free slots and then reboot.
After completing boot access the nas via the ssh server with a ssh client like putty.
After connecting via ssh use either the command fdisk to create an ms-dos partition on disks smaller then 2TB (chapter 3.1) or use gdisk for creating a GPT partition table for disk bigger then 2TB (chapter (3.2).
Remark: For disks bigger then 2TB you must use gdisk to make a GPT partition table, ms-dos partition tables do not support partitions bigger then 2 TB.
Both programs are present in the firmware
Example commands are for disk sdb, if your nas has 5 disks then use sdb,sdc,sdd or sde.
Be sure that you use the right drive letter for the disk you want to prepare. Creating a partition table will destroy all data on the disk.
3.1 Making ms-dos partition table (for disks smaller then 2TB) using fdisk
fdisk is started by typing (as root) fdisk "device" at the command prompt, replace "device" by /dev/sdb (assuming your HDD is /dev/sdb).
The basic fdisk commands you need are:
p (print the partition table on the screen)
n (create a new partition)
d (delete a partition)
t (change partition id)
q (quit without saving changes)
w (write the new partition table and exit)
Remarks
You must use fdisk with unit setting cylinders (and not sectors). Cylinders is in fdisk version in the firmware the default setting.
Changes you make to the partition table are not actually written to disk until you issue the write (w) command. So if you do not use the w command to exit fdisk but the q command then the partition table remains unchanged, regardless what you did.
Commands you have to type are red bold italic in the text below
Type at the following command on the command line and hit enter:
fdisk /dev/sdb
You will get as response:
Command (m for help):
type behind this the command p and hit enter
You should get output like this assuming you will have a 1 TB (1000GB) disk with 121601 cylinders and a cylinder size of 8225280 bytes.
NOTE:
For a 500 GB HDD the number of cylinders will be 60801 instead of 121601. Then use in the instructions below this number instead of 121601.
For a 2 TB HDD the number of cylinders will be 243201 instead of 121601. Then use in the instructions below this number instead of 121601.
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
...partition table
We are going the repartition the HDD to make it suitable for the fvdw firmware. All data on the HDD will be lost
delete existing partitions
Assume the disk is known as /dev/sdb
Start fdisk
fdisk /dev/sdb
You will get the response
Command (m for help):
type command d behind it and hit enter,
It will then ask you which partition to delete, give the number and hit enter
Repeat this until all partitions are deleted.
After deleting all the partitions you can check that the partition table is empty by using the p command
Now write the changes made to the disk and quite fdisk by using the command: w
NOTE if you leave fdisk not using the w command the changes will not be written to disk !
Double check if there is still a partition table by using again fdisk
fdisk /dev/sdb
and entering p as command.
If any partition is listed delete them using the d command.
When all are deleted leave fdisk with the w command.
Create the new partition table and store it on the disk
Start again fdisk if it not already running
fdisk /dev/sdb
use the command: n
it will respond with
command action
e extended
p primary (1-4)
type e as command and hit enter
now you get as response
Partition number (1-4):
type 4 behind it and hit enter
then you get as response
first cylinder 1-121601, default 1):
type 201 behind it and hit enter
response
last cylinder or...:
type 121600 behind it and hit enter
create partition 5
n
it will respond with
Command action
l logical (5 or over)
p primary partition (1-4)
type l as command and hit enter
and for the start and end cylinders
209
312
create partition 6
n
l
321
328
create partition 7
n
l
337
400
create partition 8
n
l
409
121600
note 121600 (this is for a 1 TB disk, for 500 GB HDD us 60800, for 2 TB disk use 243200 or accept the default)
Now use the command p and see if the result is like this
Device Boot Start End Blocks Id System
/dev/sdb4 201 121600 9xxxx+ 5 Extended
/dev/sdb5 209 312 803218+ 83 Linux
/dev/sdb6 321 328 8001 83 Linux
/dev/sdb7 337 400 514048+ 83 Linux
/dev/sdb8 409 121600 9xxxx+ 83 Linux
(this is for a 1 TB disk, for a 500 GB HDD 121601 will be 60801, for 2 TB disk it will be 243201)
If you have this result then use the command w to write the table to disk
Note, important if you give the command q then you will leave fdisk without making any changes and all your work was for nothing and need to be repeated. Its easy to check if the changes are written to disk just start up fdisk again and use the p command.
format partition sbd8 in ext3 format
Commands to format the partitions sdb8:
mke2fs -j -m 1 /dev/sdb8
3.2 Making gpt partition table using gdisk
Using a gpt partition table is required for disks bigger then 2TB, but you can also use it for disks smaller then 2TB
In principle the idea is the same as in 3.1 only now we use the program gdisk, the commands to be used are slightly different
gpt doesn't use extended partitions.
Before creating new partitions delete al existing partitions first(use the d command)
Create partition sdb8
start the program
gdisk /dev/sdb
The commands to be given are:
x
l
4096
m
n
8
5804032 (start sector)
(enter) (end sector)
8300
w
y
You can check if the partition table is ok by starting gdisk again and use the p command
partition 8 should be 512 MB, partition 4 and 6: 8MB and partion 8 the remaining space on the disk
format partition sbd8 in ext3 format
Commands to format the partitions sdb8, (we need to use mke2fs if the disk is bigger then 2TB):
mke2fs-64 -j -m 1 /dev/sdb8
|
_________________ http://foto.urmo.ee/ |
|
Kommentaarid: 60 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
58 |
|
tagasi üles |
|
 |
1dumbpcuser
HV Guru
liitunud: 05.03.2002
|
16.04.2015 08:39:24
|
|
|
Kopeeri palun partitsioonitabel, siis on väheke lihtsam diagnoosida
_________________ O: Low-profile pci bracket |
|
Kommentaarid: 100 loe/lisa |
Kasutajad arvavad: |
   |
:: |
1 :: |
0 :: |
95 |
|
tagasi üles |
|
 |
karu
HV kasutaja
liitunud: 08.08.2002
|
16.04.2015 08:49:31
|
|
|
tundub, et õpetus on ketta jagamiseks neljaks
partition 4 algus ei oma tähtsust. tänapäeval loetakse ketta "alguseks" 2048 ja mitte 1'te
kui teed fdisk'is uue partitioni, siis algus jäta tühjaks (vaikimisi) ja lõpp märgu suurusega, +8M tekitab 8mega suuruse jupi. kui tahad kogu vaba ruumi kasutada, jäta lõpp ka tühjaks.
ära unusta salvestamast enne fdisk'ist väljumist
|
|
Kommentaarid: 1 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
1 |
|
tagasi üles |
|
 |
busse
HV veteran
liitunud: 14.03.2004
|
16.04.2015 19:54:34
|
|
|
Now use the command p and see if the result is like this
Device Boot Start End Blocks Id System
/dev/sdb4 201 121600 9xxxx+ 5 Extended
/dev/sdb5 209 312 803218+ 83 Linux
/dev/sdb6 321 328 8001 83 Linux
/dev/sdb7 337 400 514048+ 83 Linux
/dev/sdb8 409 121600 9xxxx+ 83 Linux
|
Oskab keegi samasugust nimekirja välja pakkuda 500gb ketta puhul?
_________________ http://foto.urmo.ee/ |
|
Kommentaarid: 60 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
58 |
|
tagasi üles |
|
 |
Dogbert
HV Guru

liitunud: 03.05.2004
|
16.04.2015 21:46:11
|
|
|
Juhul kui seal süsteemis parted puudub, siis ma teeks need partitsioonid valmis PC peal, kasutaks parted-i. Kes see viitsib neid sektoreid käsitsi arvutada, puhta kilplane peab olema. Parted paneb alignmenti ka kenasti automaatselt paika.
Vaja on vaid teada vajalikke partitsioonide suuruseid. Juhend on puuksus nähtavasti: "partition 8 should be 512 MB, partition 4 and 6: 8MB and partion 8 the remaining space on the disk" - kui suur see 8 peab siis olema, 512MB või kogu ülejäänud ruum? Kas see esimene 8 ei peaks mitte 5 olema? Ja 4 on üldse extended, mis antud juhul hõlmab terve ketta. Mis kuradi moodi nad siin neid partitsioone loendavad?
Minu arvutamise järgi on selle terabaidise ketta sdb5 808MiB (847MB), sdb6 on 55MiB (58MB), sdb7 on 494 MiB (518MB) ja sdb8 siis ülejäänud ruum. Kas vana pealt ei saa neid mahtusid vaadata, see juhend on jabur, räägib iseendale vastu.
_________________ Tee inimesele lõke ja tal on soe üheks päevaks, pista ta põlema ja tal on soe elu lõpuni. (Terry Pratchett)
e.k spikker: muhk on kumer, lohk on nõgus.
viimati muutis Dogbert 16.04.2015 21:50:57, muudetud 1 kord |
|
Kommentaarid: 33 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
32 |
|
tagasi üles |
|
 |
busse
HV veteran
liitunud: 14.03.2004
|
16.04.2015 21:48:23
|
|
|
Dogbert kirjutas: |
Läheb see sul süsteemikettaks siis, et sinna nii palju partitisioone teha tahad? Laiendusketastel ei ole seda tarvis.
Juhul kui seal süsteemis parted puudub, siis ma teeks need partitsioonid valmis PC peal, kasutaks parted-i. Kes see viitsib neid sektoreid käsitsi arvutada, puhta kilplane peab olema. Parted paneb alignmenti ka kenasti automaatselt paika.
Vaja on vaid teada vajalikke partitsioonide suuruseid. Juhend on puuksus nähtavasti: "partition 8 should be 512 MB, partition 4 and 6: 8MB and partion 8 the remaining space on the disk" - kui suur see 8 peab siis olema, 512MB või kogu ülejäänud ruum? Kas see esimene 8 ei peaks mitte 5 olema? Ja 4 on üldse extended, mis antud juhul hõlmab terve ketta. Mis kuradi moodi nad siin neid partitsioone loendavad?
Minu arvutamise järgi on selle terabaidise ketta sdb5 808MiB (847MB), sdb6 on 55MiB (58MB), sdb7 on 494 MiB (518MB) ja sdb8 siis ülejäänud ruum. Kas vana pealt ei saa neid mahtusid vaadata, see juhend on jabur, räägib iseendale vastu. |
see läheb lacie cloudboxi karpi. kuna ketast karbis orginaalis polnud, siis mötlesin, et teen ise ketta partid ja lasen firmware peale ja vötan kasutusse. tahaks vahetada välja lacie network space 2 kasti, kuna cloudbox toetab ka wualat.
_________________ http://foto.urmo.ee/ |
|
Kommentaarid: 60 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
58 |
|
tagasi üles |
|
 |
Dogbert
HV Guru

liitunud: 03.05.2004
|
16.04.2015 22:46:19
|
|
|
Ma ei tea sellest NAS-ist midagi kahjuks, oskan vaid partitsioneerimise osas nõu anda. Nähtavasti on ikka kõigil ketastel neid partitsioone tarvis, ma lugesin nüüd juhendit hoolikamalt enda meelest. Aga selgust sealt ei saa, kui suured need partitsioonid peavad olema. Lõpus mainitud mahud ei klapi ühegi näidises oleva partitsiooni suurusega ei mega- ega mebibaitides. Noh, sdb7 enam-vähem on sinnapoole, aga teised on ju ma ei tea mis. See juhend oleks nagu mingilt määrdunud paberilt OCR-ga tekstiks tehtud.
Muidu oleks partediga lihtne - kui selle juhendi eeskujul kirjeldada firmwarega ketta partitsioneerimist, kui ketas on 500GB-ne ja teha sama suured partitsioonid kui näidises:
sudo parted -a optimal /dev/sdb
mklabel msdos
mkpart extended 0GB 500GB
mkpart logical 0GB 0,85GB
mkpart logical 0,85GB 0,91GB
mkpart logical 0,91GB 1,43GB
mkpart logical 1,43GB 500GB
Iga uue partitsiooni loomise järel võiks igaks juhuks kontrollida loodud partitsiooni optimaalset paigutust. Mida väiksemad on partitsioonid ja mida täpsemalt anda nende algus ja lõpp, seda suurem on tõenäosus, et parted ei saa selle optimaalse paigutamisega hakkama. Enamasti annab ta sel juhul ka hoiatuse selle kohta.
Kontrollimiseks
align-check opt 4 (ja edasi 5, 6, 7, 8)
Tabeli vaatamiseks on käsk print. Kasutab vaikimisi SI ühikuid, st 1000kB=1MB. Ühikute muutmiseks: unit MiB (mebibaitideks 1024kB=1MB), MB, GiB, GB jne
Spoiler 
tsitaat: |
unit can be one of
"s" (sectors), "B" (bytes), "kB", "MB", "GB", "TB", "%"
(percentage of device size), "cyl" (cylinders), "chs"
(cylinders, heads, sectors), or "compact" (megabytes for
input, and a human-friendly form for output). |
Parted töötab reaalajas, st et iga käsk tekitab kettal reaalse muutuse, mitte ei tehta tabelit valmis ja siis salvestata korraga kettale.
Lõpetab käsk quit.
fdiskis ja sektoreid käsitsi kokku rehkendades tehakse partitsioone vaid juhul kui käepärast polegi muid vahendeid peale mingi äranuditud fdiski, millest isegi mahuühikute tundmine on välja jäetud kompileerimisel. Busyboxis ehk leidub mingi selline? Lihtsam on mälupulgale täisvereline linux tõmmata ja PC peal live'na käima panna, kui busyboxis jukerdada ja lõpuks ikka vigase alignmentiga tabel saada.
_________________ Tee inimesele lõke ja tal on soe üheks päevaks, pista ta põlema ja tal on soe elu lõpuni. (Terry Pratchett)
e.k spikker: muhk on kumer, lohk on nõgus. |
|
Kommentaarid: 33 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
32 |
|
tagasi üles |
|
 |
estdata
Kreisi kasutaja

liitunud: 27.09.2004
|
23.04.2015 07:21:15
|
|
|
Dogbert kirjutas: |
Ma ei tea sellest NAS-ist midagi kahjuks, oskan vaid partitsioneerimise osas nõu anda. Nähtavasti on ikka kõigil ketastel neid partitsioone tarvis, ma lugesin nüüd juhendit hoolikamalt enda meelest. Aga selgust sealt ei saa, kui suured need partitsioonid peavad olema. Lõpus mainitud mahud ei klapi ühegi näidises oleva partitsiooni suurusega ei mega- ega mebibaitides. Noh, sdb7 enam-vähem on sinnapoole, aga teised on ju ma ei tea mis. See juhend oleks nagu mingilt määrdunud paberilt OCR-ga tekstiks tehtud.
Muidu oleks partediga lihtne - kui selle juhendi eeskujul kirjeldada firmwarega ketta partitsioneerimist, kui ketas on 500GB-ne ja teha sama suured partitsioonid kui näidises:
sudo parted -a optimal /dev/sdb
mklabel msdos
mkpart extended 0GB 500GB
mkpart logical 0GB 0,85GB
mkpart logical 0,85GB 0,91GB
mkpart logical 0,91GB 1,43GB
mkpart logical 1,43GB 500GB
Iga uue partitsiooni loomise järel võiks igaks juhuks kontrollida loodud partitsiooni optimaalset paigutust. Mida väiksemad on partitsioonid ja mida täpsemalt anda nende algus ja lõpp, seda suurem on tõenäosus, et parted ei saa selle optimaalse paigutamisega hakkama. Enamasti annab ta sel juhul ka hoiatuse selle kohta.
Kontrollimiseks
align-check opt 4 (ja edasi 5, 6, 7, 8)
Tabeli vaatamiseks on käsk print. Kasutab vaikimisi SI ühikuid, st 1000kB=1MB. Ühikute muutmiseks: unit MiB (mebibaitideks 1024kB=1MB), MB, GiB, GB jne
Spoiler 
tsitaat: |
unit can be one of
"s" (sectors), "B" (bytes), "kB", "MB", "GB", "TB", "%"
(percentage of device size), "cyl" (cylinders), "chs"
(cylinders, heads, sectors), or "compact" (megabytes for
input, and a human-friendly form for output). |
Parted töötab reaalajas, st et iga käsk tekitab kettal reaalse muutuse, mitte ei tehta tabelit valmis ja siis salvestata korraga kettale.
Lõpetab käsk quit.
fdiskis ja sektoreid käsitsi kokku rehkendades tehakse partitsioone vaid juhul kui käepärast polegi muid vahendeid peale mingi äranuditud fdiski, millest isegi mahuühikute tundmine on välja jäetud kompileerimisel. Busyboxis ehk leidub mingi selline? Lihtsam on mälupulgale täisvereline linux tõmmata ja PC peal live'na käima panna, kui busyboxis jukerdada ja lõpuks ikka vigase alignmentiga tabel saada. |
kettaformatimine vb ka dd=/ käsurealt ehk siis nullidega üle kirjutada
|
|
Kommentaarid: 22 loe/lisa |
Kasutajad arvavad: |
   |
:: |
1 :: |
0 :: |
16 |
|
tagasi üles |
|
 |
Dogbert
HV Guru

liitunud: 03.05.2004
|
23.04.2015 08:39:44
|
|
|
Pealkirja järgi ehk küll, teemaks on aga siiski loomine, mitte hävitamine.
_________________ Tee inimesele lõke ja tal on soe üheks päevaks, pista ta põlema ja tal on soe elu lõpuni. (Terry Pratchett)
e.k spikker: muhk on kumer, lohk on nõgus. |
|
Kommentaarid: 33 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
32 |
|
tagasi üles |
|
 |
|
lisa lemmikuks |
|
|
sa ei või postitada uusi teemasid siia foorumisse sa ei või vastata selle foorumi teemadele sa ei või muuta oma postitusi selles foorumis sa ei või kustutada oma postitusi selles foorumis sa ei või vastata küsitlustele selles foorumis sa ei saa lisada manuseid selles foorumis sa võid manuseid alla laadida selles foorumis
|
|
Hinnavaatlus ei vastuta foorumis tehtud postituste eest.
|