Romanian PC Forum Sabitech Media - web design, gazduire web, promovare, seo, logo design si branding


Go Back   Romanian PC Forum > Software > Unix - Linux - BSD > Arch GNU/Linux

Arch GNU/Linux Sectiune dedicata pentru Arch GNU/Linux.


Reply
 
Thread Tools
Old 14.12.2015, 20:30   #1
EdY91
RPC Special Member
 
EdY91's Avatar
 
Join Date: 26.11.2014
Location: Somewhere in the Linux World
Age: 26
Posts: 265
Thanks: 231
Thanked 141 Times in 81 Posts
Default Btrfs Arch

Deci sa zicem ca am vrut sa vad si eu cum e btrfs si am instalat, dar acuma cat de bine nu stiu ).
Cand booteaza apare ceva ca nu gaseste nu stiu ce ROOT /, dar merge ).
Acum nu stiu cum mi-as putea da seama daca s-a instalat corect sau nu.
Btrfs am instalat in felu urmator:

mkfs.btrfs -L Arch /dev/sda1 -f , ca cica era ext4 si trebuia fortat.
mount -o defaults,noatime,compress=lzo,
autodefrag,space_cache /dev/sda1 /mnt
btrfs subvolume create boot
btrfs subvolume create home
btrfs subvolume create var

pacstrap -i /mnt base base-devel btrfs-progs
genfstab -U -p /mnt >> /mnt/etc/fstab

etc...

Cand cream subvolumele eram in /mnt e bine asa ?
Cand am dat comanda pacstrap -i etc, la fel eram in /mnt si la fstab la fel, tot in /mnt eram.

Deci cum imi dau seama daca am instalat corect sistemu de partitii btrfs ?
__________________
sudo pacman -Rs windows && sudo pacman -S arch
[sudo] password for edy:
error: target not found: windows


Last edited by EdY91; 14.12.2015 at 20:32. Reason: Edit
EdY91 is offline   Reply With Quote
Old 14.12.2015, 20:49   #2
AnbuBlack
*nix enthusiast
 
AnbuBlack's Avatar
 
Join Date: 20.04.2011
Location: 127.0.0.1
Posts: 3,856
Thanks: 4,601
Thanked 6,031 Times in 2,907 Posts
Default Re: Btrfs Arch

Code:
btrfs --version
și o să-ți īntoarcă un rezultat de genul:
Code:
btrfs-progs v4.3.1
Cāt privește eroare pe care ai primit-o la boot, cred că nu īți găsește subvolumul părinte/master/principal (sau cum vrei să-i zici). Dacă te uiți atent īn acest ghid, vei vedea că eu i-am zis la acel subvolum principal tank, dar poate primi orice nume; sub acel subvolume am creat subvolume similare cu structura sistemelor unix (/boot,/root,/etc,/usr).

LE: da toate comenzile pe care le-ai invocat mai sus trebuie utilizate atunci cānd si monat hdd-ul īn /mnt.
LE2:
Code:
 btrfs subvolume list -p /
īți va arăta ce subvolume ai pe sistem.

ex:
Code:
btrfs subvolume list -p /
ID 261 gen 107525 parent 5 top level 5 path arch_root
ID 262 gen 109008 parent 261 top level 261 path arch_root/root
ID 263 gen 109044 parent 261 top level 261 path arch_root/home
ID 264 gen 109043 parent 261 top level 261 path arch_root/var
ID 352 gen 107529 parent 5 top level 5 path _snapshots
ID 361 gen 18416 parent 264 top level 264 path arch_root/var/lib/machines
ID 608 gen 107526 parent 352 top level 352 path _snapshots/root-11:12:2015-14:21:59
ID 609 gen 107527 parent 352 top level 352 path _snapshots/home-11:12:2015-14:22:18
ID 610 gen 107528 parent 352 top level 352 path _snapshots/var-11:12:2015-14:22:28
__________________
Doar Universul şi prostia umană sunt infinite, īnsă nu sunt sigur de primul. - Albert Einstein


_________________
Manuale:
_FreeBSD: FreeBSD Handbook | The Complete FreeBSD | Unix Toolbox | FAQ
_Arch GNU/Linux : ArchWiki

Last edited by AnbuBlack; 14.12.2015 at 20:56.
AnbuBlack is online now   Reply With Quote
The Following 2 Users Say Thank You to AnbuBlack For This Useful Post:
bogdan (15.12.2015), EdY91 (14.12.2015)
Old 14.12.2015, 21:05   #3
EdY91
RPC Special Member
 
EdY91's Avatar
 
Join Date: 26.11.2014
Location: Somewhere in the Linux World
Age: 26
Posts: 265
Thanks: 231
Thanked 141 Times in 81 Posts
Default Re: Btrfs Arch

Quote:
Originally Posted by AnbuBlack View Post
Code:
btrfs --version
și o să-ți īntoarcă un rezultat de genul:
Code:
btrfs-progs v4.3.1
Cāt privește eroare pe care ai primit-o la boot, cred că nu īți găsește subvolumul părinte/master/principal (sau cum vrei să-i zici). Dacă te uiți atent īn acest ghid, vei vedea că eu i-am zis la acel subvolum principal tank, dar poate primi orice nume; sub acel subvolume am creat subvolume similare cu structura sistemelor unix (/boot,/root,/etc,/usr).

LE: da toate comenzile pe care le-ai invocat mai sus trebuie utilizate atunci cānd si monat hdd-ul īn /mnt.
Apare btrfs-progrs v4.3.1
Comenzile le-am dat cand eram in /mnt.
Ti-am urmat tutorialu si aparuse o problema:

fdisk /dev/sda la urma W (pana aici e bine)
mkfs.btrfs -L "Arch" /dev/sda1 (pana aici e bine)
mount /dev/sda1 /mnt (pana aici e bine)
cd /mnt (pana aici e bine)
btrfs subvolume create ArchLinux (asa l-am pus eu, pana aici tot bine)
umount /dev/sda1 (pana aici bine)
mount -o
defaults,noatime,compress=lzo,autodefrag,space_cache,subvol=ArchLinux /dev/sda1 /mnt (aici nu e bine, primisem o eroare ceva de genu cu tree nu stiu ce etc si nu puteam monta inapoi.)

Daca fac cum am scris in primu post merge.

Daca dau comanda:

btrfs subvolume list -p

Nu imi arata subvolumele imi arate ceva cu optiuni.

Merge cu btrfs subvolume list -p /

[edy@Home-ArchLinux ~]$ sudo btrfs subvolume list -p /
[sudo] password for edy:
ID 257 gen 7 parent 5 top level 5 path ArchLinux
ID 258 gen 57 parent 5 top level 5 path boot
ID 259 gen 58 parent 5 top level 5 path root
ID 260 gen 116 parent 5 top level 5 path home
ID 261 gen 116 parent 5 top level 5 path var
ID 263 gen 26 parent 261 top level 261 path var/lib/machines

---------- Post added at 21:05 ---------- Previous post was at 20:59 ----------

Scuze de dublu post, am dat rr la pc si am vazut eroare mai bine:
Starting version 228
Scanning for Btrfs filesystems
BTRFS: could not find root 8
Apar 6 de alea cu not find root 8.
__________________
sudo pacman -Rs windows && sudo pacman -S arch
[sudo] password for edy:
error: target not found: windows


Last edited by EdY91; 14.12.2015 at 21:01. Reason: Edit
EdY91 is offline   Reply With Quote
Old 14.12.2015, 21:16   #4
AnbuBlack
*nix enthusiast
 
AnbuBlack's Avatar
 
Join Date: 20.04.2011
Location: 127.0.0.1
Posts: 3,856
Thanks: 4,601
Thanked 6,031 Times in 2,907 Posts
Default Re: Btrfs Arch

Eroarea asta (BTRFS: could not find root 8) apare și la mine și la alți, este de la dezvoltatori.
__________________
Doar Universul şi prostia umană sunt infinite, īnsă nu sunt sigur de primul. - Albert Einstein


_________________
Manuale:
_FreeBSD: FreeBSD Handbook | The Complete FreeBSD | Unix Toolbox | FAQ
_Arch GNU/Linux : ArchWiki

Last edited by AnbuBlack; 15.12.2015 at 17:36.
AnbuBlack is online now   Reply With Quote
The Following User Says Thank You to AnbuBlack For This Useful Post:
EdY91 (14.12.2015)
Old 14.12.2015, 21:19   #5
EdY91
RPC Special Member
 
EdY91's Avatar
 
Join Date: 26.11.2014
Location: Somewhere in the Linux World
Age: 26
Posts: 265
Thanks: 231
Thanked 141 Times in 81 Posts
Default Re: Btrfs Arch

Ok am inteles, iar in rest totu e ok ? Vad ca acuma tot HDD nu mai e impartit cum era la ext4, fie ca ma duc in /home fie ca ma duc in /, acelasi spatiu il am, e misto asa, imi place.

La tine vad ca apar la gen cifre mai mari si la top la fel, are vreo legatura modu de instalare ?

La comanda sudo btrfs subvolume list -p / ma refer.
__________________
sudo pacman -Rs windows && sudo pacman -S arch
[sudo] password for edy:
error: target not found: windows

EdY91 is offline   Reply With Quote
Old 14.12.2015, 21:32   #6
AnbuBlack
*nix enthusiast
 
AnbuBlack's Avatar
 
Join Date: 20.04.2011
Location: 127.0.0.1
Posts: 3,856
Thanks: 4,601
Thanked 6,031 Times in 2,907 Posts
Default Re: Btrfs Arch

Quote:
Originally Posted by EdY91 View Post
Ok am inteles, iar in rest totu e ok ? Vad ca acuma tot HDD nu mai e impartit cum era la ext4, fie ca ma duc in /home fie ca ma duc in /, acelasi spatiu il am, e misto asa, imi place.
Numai apar la fel ca la ext4 pentru că btrfs nu lucrează cu partiții, ci cu subvolume.

Quote:
Originally Posted by EdY91 View Post
La tine vad ca apar la gen cifre mai mari si la top la fel, are vreo legatura modu de instalare ?

La comanda sudo btrfs subvolume list -p / ma refer.
Tot ce știu despre acele cifre este că sunt ID-ul subvolumului părinte.

---------- Post added at 21:32 ---------- Previous post was at 21:28 ----------

_gen (generatio)= An internal counter which updates for each transaction. When a metadata block is written (using copy on write), current generation is stored in the block, so that blocks which are too new (and hence possibly inconsistent) can be identified.

_top level (top-level subvolume) = The subvolume at the very top of the filesystem. This is the only subvolume present in a newly-created btrfs filesystem, and internally has ID 5, otherwise could be referenced as 0 (eg. within the set-default subcommand of btrfs).
__________________
Doar Universul şi prostia umană sunt infinite, īnsă nu sunt sigur de primul. - Albert Einstein


_________________
Manuale:
_FreeBSD: FreeBSD Handbook | The Complete FreeBSD | Unix Toolbox | FAQ
_Arch GNU/Linux : ArchWiki
AnbuBlack is online now   Reply With Quote
The Following 2 Users Say Thank You to AnbuBlack For This Useful Post:
bogdan (15.12.2015), EdY91 (14.12.2015)
Old 14.12.2015, 21:35   #7
EdY91
RPC Special Member
 
EdY91's Avatar
 
Join Date: 26.11.2014
Location: Somewhere in the Linux World
Age: 26
Posts: 265
Thanks: 231
Thanked 141 Times in 81 Posts
Default Re: Btrfs Arch

Am mai observat ceva la tine, care la mine nu este, tie iti apar subvolumele ca facand parte din arch_root.
btrfs subvolume list -p /
ID 261 gen 107525 parent 5 top level 5 path arch_root
ID 262 gen 109008 parent 261 top level 261 path arch_root/root
ID 263 gen 109044 parent 261 top level 261 path arch_root/home
ID 264 gen 109043 parent 261 top level 261 path arch_root/var
La mine nu apar ca facand parte din ArchLinux:

ID 257 gen 7 parent 5 top level 5 path ArchLinux
ID 258 gen 57 parent 5 top level 5 path boot
ID 259 gen 124 parent 5 top level 5 path root
ID 260 gen 181 parent 5 top level 5 path home
ID 261 gen 181 parent 5 top level 5 path var

Scuze ca poate tot intreb atat sau te "sacai" atat . Imi asum riscu.
__________________
sudo pacman -Rs windows && sudo pacman -S arch
[sudo] password for edy:
error: target not found: windows


Last edited by EdY91; 14.12.2015 at 21:36. Reason: Edit
EdY91 is offline   Reply With Quote
Old 14.12.2015, 21:42   #8
AnbuBlack
*nix enthusiast
 
AnbuBlack's Avatar
 
Join Date: 20.04.2011
Location: 127.0.0.1
Posts: 3,856
Thanks: 4,601
Thanked 6,031 Times in 2,907 Posts
Default Re: Btrfs Arch

Nu īți apare acel subvolum părinte pentru că nu ai făcut exact ca īn ghid, iar din ce reiese din primul post

Quote:
mount -o defaults,noatime,compress=lzo,autodefrag,space_cache /dev/sda1 /mnt
subvolumul părinte nu există. La tine pe sistem nu există acel subvolum sau mai bine zis toate subvolumele sunt părinte. (top level =5 la toate) pe cānd la mine doar părintele are valoarea asta:

Code:
 sudo btrfs subvolume list -t /
[sudo] password for anbu: 
ID    gen    top level    path    
--    ---    ---------    ----    
261    107525    5        arch_root
262    109008    261        arch_root/root
263    109074    261        arch_root/home
264    109072    261        arch_root/var
352    107529    5        _snapshots
361    18416     264        arch_root/var/lib/machines
608    107526    352        _snapshots/root-11:12:2015-14:21:59
609    107527    352        _snapshots/home-11:12:2015-14:22:18
610    107528    352        _snapshots/var-11:12:2015-14:22:28
__________________
Doar Universul şi prostia umană sunt infinite, īnsă nu sunt sigur de primul. - Albert Einstein


_________________
Manuale:
_FreeBSD: FreeBSD Handbook | The Complete FreeBSD | Unix Toolbox | FAQ
_Arch GNU/Linux : ArchWiki

Last edited by AnbuBlack; 15.12.2015 at 14:52.
AnbuBlack is online now   Reply With Quote
The Following 2 Users Say Thank You to AnbuBlack For This Useful Post:
bogdan (15.12.2015), EdY91 (14.12.2015)
Old 15.12.2015, 13:18   #9
EdY91
RPC Special Member
 
EdY91's Avatar
 
Join Date: 26.11.2014
Location: Somewhere in the Linux World
Age: 26
Posts: 265
Thanks: 231
Thanked 141 Times in 81 Posts
Default Re: Btrfs Arch

Acum e bine Anbu ?

[edy@Home-ArchLinux ~]$ sudo btrfs subvolume list -p /
[sudo] password for edy:
ID 257 gen 459 parent 5 top level 5 path ArchLinux
ID 258 gen 21 parent 257 top level 257 path boot
ID 259 gen 285 parent 257 top level 257 path root
ID 260 gen 468 parent 257 top level 257 path home
ID 261 gen 468 parent 257 top level 257 path var
ID 263 gen 26 parent 261 top level 261 path var/lib/machines
__________________
sudo pacman -Rs windows && sudo pacman -S arch
[sudo] password for edy:
error: target not found: windows

EdY91 is offline   Reply With Quote
Old 15.12.2015, 13:25   #10
AnbuBlack
*nix enthusiast
 
AnbuBlack's Avatar
 
Join Date: 20.04.2011
Location: 127.0.0.1
Posts: 3,856
Thanks: 4,601
Thanked 6,031 Times in 2,907 Posts
Default Re: Btrfs Arch

Da acum arata exact cum trebuie și poți ușor să creezi snapshoturi.
__________________
Doar Universul şi prostia umană sunt infinite, īnsă nu sunt sigur de primul. - Albert Einstein


_________________
Manuale:
_FreeBSD: FreeBSD Handbook | The Complete FreeBSD | Unix Toolbox | FAQ
_Arch GNU/Linux : ArchWiki
AnbuBlack is online now   Reply With Quote
The Following User Says Thank You to AnbuBlack For This Useful Post:
EdY91 (15.12.2015)
Old 15.12.2015, 13:36   #11
EdY91
RPC Special Member
 
EdY91's Avatar
 
Join Date: 26.11.2014
Location: Somewhere in the Linux World
Age: 26
Posts: 265
Thanks: 231
Thanked 141 Times in 81 Posts
Default Re: Btrfs Arch

E buna varianta de pe wiki ?
https://wiki.archlinux.org/index.php...ips_and_tricks

Din cate am inteles de acolo cu systemd, ca la fiecare boot in multi-user.target, face un snapshot.
__________________
sudo pacman -Rs windows && sudo pacman -S arch
[sudo] password for edy:
error: target not found: windows

EdY91 is offline   Reply With Quote
Old 15.12.2015, 13:42   #12
AnbuBlack
*nix enthusiast
 
AnbuBlack's Avatar
 
Join Date: 20.04.2011
Location: 127.0.0.1
Posts: 3,856
Thanks: 4,601
Thanked 6,031 Times in 2,907 Posts
Default Re: Btrfs Arch

Nu știu dacă este bună metoda respectivă, nu o folosesc, eu le fac manual īn funcție de update-uri, adică dacă văd că nu sunt pachete foarte importante nu fac snapshot, dacă am īnsă update-uri de kernel, nvidia, gcc, atunci fac. Īncearcă metoda respectivă și vezi cum funcționează.
__________________
Doar Universul şi prostia umană sunt infinite, īnsă nu sunt sigur de primul. - Albert Einstein


_________________
Manuale:
_FreeBSD: FreeBSD Handbook | The Complete FreeBSD | Unix Toolbox | FAQ
_Arch GNU/Linux : ArchWiki
AnbuBlack is online now   Reply With Quote
Old 15.12.2015, 14:37   #13
EdY91
RPC Special Member
 
EdY91's Avatar
 
Join Date: 26.11.2014
Location: Somewhere in the Linux World
Age: 26
Posts: 265
Thanks: 231
Thanked 141 Times in 81 Posts
Default Re: Btrfs Arch

Am reusit pana la urma, cu mici modificari in script si la systemd.

[edy@Home-ArchLinux ~]$ sudo btrfs subvolume list '/'
[sudo] password for edy:
ID 257 gen 632 top level 5 path ArchLinux
ID 258 gen 629 top level 257 path boot
ID 259 gen 630 top level 257 path root
ID 260 gen 635 top level 257 path home
ID 261 gen 635 top level 257 path var
ID 263 gen 26 top level 261 path var/lib/machines
ID 280 gen 629 top level 257 path snapshot/boot
ID 281 gen 630 top level 257 path snapshot/root
ID 282 gen 631 top level 257 path snapshot/home
ID 283 gen 632 top level 257 path snapshot/var
__________________
sudo pacman -Rs windows && sudo pacman -S arch
[sudo] password for edy:
error: target not found: windows

EdY91 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 7: montarea in fstab a unei partitii btrfs ono CentOS 3 18.09.2015 18:36
Arch Linux Btrfs snapshots management AnbuBlack Arch GNU/Linux 0 31.03.2015 23:34
Fsck Arch EdY91 Arch GNU/Linux 3 28.03.2015 16:08
Install Arch Linux Btrfs +dm-Btrfs AnbuBlack Arch GNU/Linux 4 19.02.2015 23:37
Unity pe Arch bogdan Arch GNU/Linux 5 06.01.2014 20:40

 
Advertisement




camere foto digitale

aparate foto digitale


Partner Links
Sabitech Media - dezvoltare web, servicii media

RSP Forum - sateliti.info
Comunitate Satelitara






All times are GMT +2. The time now is 13:31.


Powered by vBulletin® - © Jelsoft Enterprises Ltd.
~ Copyright © 2007-2015 Romanian PC Forum ~
Toate drepturile rezervate

Romanian Sattelites Provider Wi-Fi Magazin