Linux 掛載目錄問題

我原本有個ubuntu 裝系/dev/sda5, boot 機入/dev/sda5個ubuntu後, 用gparted介一個/dev/sda4後, 再用DD將/dev/sda5 COPY去/dev/sda4(先整左個sda5 iso, 再restore去sda4), 成個DD 過程都好順利。

但上面DD copy 完, 我開唔到/dev/sda4, 睇唔到裏面既內容, 但如果用live cd開機, 好順利咁睇到/dev/sda4 或/dev/sda5內容.

有冇人知點解? (是否唔可以同一時間掛載兩個系統sda4 & sda5)

附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

Did grub2 installed yet ?

TOP

標題

回覆 2# cal22cal

我dd restore 個iso 去sda4後, 沒update grub,我吾系想用sda4 boot機。   我主要目的,其實系想睇下個iso 有冇問題, 所以restore 去sda4
( 我先前沒辦法用軟件解壓dd 出黎個iso ,睇吾到入邊內容,所以諗左另一方法,介一個sda4, 再dd restore入去 )

TOP

本帖最後由 cal22cal 於 2015-8-27 07:56 編輯

回覆 3# bongbong3481
iso can use winrar to extract the files, though.

Sorry, if u use dd it is a raw partition image.
Not really is a true iso file.

sorry, again, sda4 & sda5 same mount point to /

TOP

try to start a root terminal
mkdir /mnt/iso-partition
mount -t ext4 -o ro /dev/sda4 /mnt/iso-partition
ls -l /mnt/iso-partition

TOP

標題

回覆 4# cal22cal

因為sda5 sda4 都是mount 左去  /  , 所以沒辦法開到sda4。 咁是否dd 是另一個地方先得?

TOP

回覆 6# bongbong3481
not actually,
1. since, u are using dd, the UUID for sda4 & sda5 remain unchanged.
2. /etc/fstab get confused about that.
3. try as #5 as read only fs to read the files.
or
change the uuid for sda4 (the restore iso testing partition)
add a new entry in /etc/fstab, say,
UUID=xxxxx  ext4 ....
or
/dev/sda4 ext4  ..........

TOP