update some content
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"articleSection" : "post",
|
||||
"name" : "[筆記] 用ubuntu livecd 救援群暉 synology NAS內的資料 \/ rescue synology nas with ubuntu livecd",
|
||||
"headline" : "[筆記] 用ubuntu livecd 救援群暉 synology NAS內的資料 \/ rescue synology nas with ubuntu livecd",
|
||||
"description" : "\x3cp\x3e2020\/01\/02 , 2020年上工的第一天,群暉的 DS415\x2b NAS 掛了!\x3c\/p\x3e\n\x3cp\x3e因為群暉的文件在最關鍵的一步寫得亂七八糟!\x3c\/p\x3e\n\x3cp\x3e所以在這邊紀錄一下我操作的步驟!\x3c\/p\x3e",
|
||||
"description" : "\u003cp\u003e2020\/01\/02 , 2020年上工的第一天,群暉的 DS415\u002b NAS 掛了!\u003c\/p\u003e\n\u003cp\u003e因為群暉的文件在最關鍵的一步寫得亂七八糟!\u003c\/p\u003e\n\u003cp\u003e所以在這邊紀錄一下我操作的步驟!\u003c\/p\u003e",
|
||||
"inLanguage" : "en",
|
||||
"author" : "Eric Chang",
|
||||
"creator" : "Eric Chang",
|
||||
@@ -21,8 +21,8 @@
|
||||
"accountablePerson" : "Eric Chang",
|
||||
"copyrightHolder" : "Eric Chang",
|
||||
"copyrightYear" : "2020",
|
||||
"datePublished": "2020-01-03 15:43:45 \x2b0800 CST",
|
||||
"dateModified" : "2020-01-03 15:43:45 \x2b0800 CST",
|
||||
"datePublished": "2020-01-03 15:43:45 \u002b0800 CST",
|
||||
"dateModified" : "2020-01-03 15:43:45 \u002b0800 CST",
|
||||
"url" : "https:\/\/h.cowbay.org\/post\/rescue-synology-nas-with-ubuntu-livecd\/",
|
||||
"wordCount" : "444",
|
||||
"image" : "https://h.cowbay.orghttps://h.cowbay.org/images/post-default-11.jpg"",
|
||||
@@ -45,9 +45,9 @@
|
||||
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
|
||||
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1632901489" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1634607506" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1632901489" rel="stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1634607506" rel="stylesheet" type='text/css' media='all'>
|
||||
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
|
||||
@@ -317,7 +317,7 @@ if (!doNotTrack) {
|
||||
<h4 id="安裝必要套件">安裝必要套件</h4>
|
||||
<p>進入 ubuntu Live 之後,按 ctal + alt + t</p>
|
||||
<p>開啟 terminal ,然後先安裝 mdadm & lvm2</p>
|
||||
<pre><code>ubuntu@ubuntu:~$ sudo apt install mdadm lvm2
|
||||
<pre tabindex="0"><code>ubuntu@ubuntu:~$ sudo apt install mdadm lvm2
|
||||
Reading package lists... Done
|
||||
Building dependency tree
|
||||
Reading state information... Done
|
||||
@@ -339,13 +339,13 @@ Fetched 1,346 kB in 3s (501 kB/s)
|
||||
以下省略
|
||||
</code></pre><h4 id="scan-raid-and-lvm">scan raid and lvm</h4>
|
||||
<p>接下來先換成 root 操作</p>
|
||||
<pre><code>ubuntu@ubuntu:~$ sudo su -
|
||||
<pre tabindex="0"><code>ubuntu@ubuntu:~$ sudo su -
|
||||
</code></pre><p>然後掃描 raid & LVM</p>
|
||||
<pre><code>root@ubuntu:~# mdadm -Asf && vgchange -ay
|
||||
<pre tabindex="0"><code>root@ubuntu:~# mdadm -Asf && vgchange -ay
|
||||
mdadm: /dev/md/2 has been started with 4 drives.
|
||||
2 logical volume(s) in volume group "vg1" now active
|
||||
</code></pre><p>COOL! 原本的VG出現了!</p>
|
||||
<pre><code>root@ubuntu:~# vgdisplay
|
||||
<pre tabindex="0"><code>root@ubuntu:~# vgdisplay
|
||||
--- Volume group ---
|
||||
VG Name vg1
|
||||
System ID
|
||||
@@ -367,7 +367,7 @@ mdadm: /dev/md/2 has been started with 4 drives.
|
||||
Free PE / Size 0 / 0
|
||||
VG UUID O1c8Uw-JmKy-EiKt-92OB-3K3y-roMi-9NUZ6H
|
||||
</code></pre><p>也可以看到 RAID 資訊了!</p>
|
||||
<pre><code>root@ubuntu:~# mdadm -D /dev/md2
|
||||
<pre tabindex="0"><code>root@ubuntu:~# mdadm -D /dev/md2
|
||||
/dev/md2:
|
||||
Version : 1.2
|
||||
Creation Time : Thu Oct 13 07:26:12 2016
|
||||
@@ -403,14 +403,14 @@ Consistency Policy : resync
|
||||
<p><a href="https://h.cowbay.org/post/what-a-piss-in-synology-document/">https://h.cowbay.org/post/what-a-piss-in-synology-document/</a></p>
|
||||
<p>問題發生了,總是要想辦法解決</p>
|
||||
<h4 id="scan-lv">scan lv</h4>
|
||||
<pre><code>root@ubuntu:~# lvscan
|
||||
<pre tabindex="0"><code>root@ubuntu:~# lvscan
|
||||
ACTIVE '/dev/vg1/syno_vg_reserved_area' [12.00 MiB] inherit
|
||||
ACTIVE '/dev/vg1/volume_1' [5.44 TiB] inherit
|
||||
</code></pre><p>OK ,在 vg1 底下有兩個 volume ,看大小來判斷,第二個是我們要的</p>
|
||||
<p>用底下的指令就可以掛載了</p>
|
||||
<pre><code>mount /dev/vg1/volume_1 /mnt
|
||||
<pre tabindex="0"><code>mount /dev/vg1/volume_1 /mnt
|
||||
</code></pre><p>請依照自己的環境,把第一個路徑改掉,如果要掛載到別的目錄,那也把第二個 /mnt 改掉</p>
|
||||
<pre><code>root@ubuntu:/dev# mount /dev/vg1/volume_1 /mnt
|
||||
<pre tabindex="0"><code>root@ubuntu:/dev# mount /dev/vg1/volume_1 /mnt
|
||||
root@ubuntu:/dev# cd /mnt
|
||||
root@ubuntu:/mnt# ls
|
||||
@appstore @database @EP_trash @MailScanner @S2S
|
||||
@@ -706,7 +706,7 @@ title="pinterest icon"></i>
|
||||
</div>
|
||||
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
|
||||
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1632901489"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1634607506"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user