Ubuntuパーティション(/、/ home&swap)がWindows拡張パーティションの下に表示されていますか?そして、既存の/ homeパーティションをどのように使用するのですか?

v-lan

エラーメッセージが頻繁に表示されていました(通常はIbusプリファレンスで非常に頻繁に発生し、他のカテゴリでもエラーが発生することはほとんどありませんでした)。そこで、LiveCDを使用して再インストールし、ルート(/)とスワップ(linux-swap)の新しいパーティションをフォーマットして作成しました。ただし、既存のホームパーティション(/ home)を選択しないという間違いを犯しました実際、/ homeには特定のスペースを指定しませんでした

(再)インストール後、古い/ homeパーティションをマウントし直すために何かを試みましたそして、これを行った後(または少なくとも私はそう思います)、すべてのubuntuパーティションがWindows(拡張)パーティション(/ dev / sda3)の下に表示されます。空のウィンドウ(NTFS)パーティション(下の図の195.1GBの/ dev / sda3)にubuntuをインストールしたためだと思いました

パーティションデータ-最初の(再)インストール後。

残念ながら、元のubuntuのインストール後に撮影したスクリーンショットはありません

私は、ubuntuパーティションをHDDのWindows NTFSパーティション(それらのいずれにも含まれない)と並べて配置したかったのです。そこで、ubuntuを再インストールしましたが、今回は未割り当て領域(上図では220.35GB)を選択してインストールしました。そして、既存のホームパーティションを/ homeとして選択しました(フォーマットボタンがオフになっています)。ただし、ubuntuパーティションはWindowsパーティション(/ dev / sda3)の下に表示されたままです。理由はわかりません。

1回目と2回目のインストール後の/ dev / sda3のサイズの違いに注意してください。スクリーンショットを参照してください)。

パーティションデータ-2回目の(再)インストール後。

さて、2つの質問があります。

1. How can I install ubuntu in the hdd along-side windows, without any dependency? (Note that the **temp** is a NTFS, which is another windows partition & I’m not sure why it is also brought under this extended partition).
   
2. How to make an exiting home partition (not directory) to be the default **/home** for ubuntu – after completing the installation (without using LiveCD i.e. from a Ubuntu terminal). I’m sure there are ways, but I guess they all assume **/home** to contain user info only & not the data.
    i. I am (understandably) unable to access the **dev/sdax** (**/home** partition) using **cd/cp/mv** commands. Without these, how can I backup my data before doing this?
    ii. When I mount the old home partition as **/home**, the user folder created in the new home (during install) is getting removed. I don’t mind this, but can I restore my old users from the old **/home** partition when I mount it. If so, how can I do so.
    iii. Somewhere while trying, I saw my home partition listed as **/media/<something>** in the **Files** window. What does it mean & how can I handle mounting in such cases.

注:すべてのデータは/ homeパーティションにあります。

2020年10月7日に編集します(@heynnemaへの返信として)。

@heynnema: Sorry about the delay. I didn’t want to reply until I have tried everything suggested & get something working (or, not working).

Thank you. Yes, your answer was (very) helpful in understanding why my Ubuntu partitions (which need to be primary) were showing under the Windows extended partition (which is a logical partition). In fact, I missed to notice that I already had 3 primary partitions in Windows. I knew the MBR & Windows(C:) partitions to be primary, but I missed to consider Windows RE tools to be another primary partition (and, I still don’t understand the reason why there should be one – as it still expects one to have a recovery image in an external drive).

And, Ubuntu is not my primary, Windows-10 is (for now).

I couldn’t try your suggestion, as I don’t have an external drive with that much empty space. That is why I had to try copying /home data via terminal and that’s why I had to mention that I was unable to access /dev/sdax/ (/home).

But I still have 2 questions.

  1. When we install ubuntu using “Install along side of Windows” method, we’d still have the same problem of the No. of max. Primary partitions, right? Or, would it be handled internally, somehow?
  2. Let’s say I format the entire drive & install Ubuntu first, how can Windows be installed properly (as Ubuntu would have already taken 3 Primary partitions)? Will it be the reverse of how it is now (or) Ubuntu doens’t have those limitations on the No. of Primary partitions? And, both Ubuntu & Windows would show under /dev/sda?.

Anyway, so I tried to live with my existing hardware & installed ubuntu again with a completely new /home space.

@walttheboss: Thank you. That was a neat trick with fstab. I get fascinated by these kind of tweaks, as they let me understand the underlying structure/code better.

I tried it, but somehow I couldn’t get my old users to work. I was also unable to access my 3rd-party applications - which I installed in /home/software, assuming I can always have them with me (I still think I’m right to assume). I will try your method next time I mess-up something (I’m sure I will, as that’s how I learn – mostly). So, I re-installed it completely.

I’m still interested in knowing tweaks/workarounds (if there are any) as an answer to my other questions.

Finally, @heynnema: Sorry, I don't have a check-mark icon next to your answer (see screenshot below). I’m also not sure if I should accept if I haven’t tried it (yet). However, I have up-voted (up-arrow) as I was able to do so.

@walttheboss: Sorry, I couldn't find a way to up-vote your answer.

スクリーンショット-回答を受け入れるためのチェックマークなし

heynnema

You have a bit of a mess on your hands. Let me explain.

You have a smallish 500G HDD, formatted with a MBR style partition table. This kind of format can only have 4 partitions max. So they trick the system and usually have 3 primary partitions, and 1 extended partition that can hold a bunch of logical partitions.

When installing Ubuntu on a smallish disk, the mistake many new users make is to try and manually partition their disk during install. Bad idea... for a number of reasons. In your case, you've ended up only using 1/2 of your total available disk space. I recommend letting the Ubuntu installer partition the disk for you.

I assume that Ubuntu is your primary OS, and that Windows is your secondary OS.

You MUST backup your important data from the NTFS temp partition (as we'll be deleting that partition), AND the Ubuntu /home partition (as we'll be deleting that partition). Backing up important files from your Windows C: drive wouldn't hurt either.

Then boot to a Ubuntu Live DVD/USB, and deleting partitions sda5/6/7, doing a swapoff on sda8, then delete sda8, and finally sda3. Then reinstall Ubuntu, without manual partitioning, and using the "Install along side of Windows" option.

If you need to share files between Windows and Ubuntu, with little effort, later you can create a new NTFS partition for that. It would become the D: drive in Windows.

Much better long term results.

Update #1:

Since Windows is currently your primary OS, we have to consider if your existing C: drive has a large enough partition. If it IS large enough, then just perform the process I outline above. If your C: drive IS NOT large enough, then we should consider what to do about that now.

In the BEST scenario, you'd have backups of all of your important data, then we'd wipe the disk, reinstall Windows first, then boot to Windows and use Disk Management tools to shrink the C: partition to approximately 100-200G. Turn off Fast Boot in Windows, and turn off Secure Boot in your BIOS. Then install Ubuntu using the "Install along side Windows" option. Lastly, you'd restore your data to the Windows and Ubuntu partitions.

後で、WindowsとUbuntuの間でファイルを共有したい場合は、少しの労力で、追加のNTFSパーティションを作成できます。

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

Related 関連記事

ホットタグ

アーカイブ