[Ubuntu]為/××××準備的磁碟尚未就緒或不存在解決

來源:互聯網
上載者:User

[Ubuntu]為/××××準備的磁碟尚未就緒或不存在解決 這個是因為對原來已經掛載的磁碟分割進行了格式化或重新分區導致分區(磁碟)UUID改變而造成的。例如:為/windows/C準備的磁碟尚未就緒或不存在。解決的方法:1.查看掛載指令碼中的老的UUID。[plain] $ cat /etc/fstab   查看當前掛載指令碼中的dev裝置及UUID。eg:[plain] # /etc/fstab: static file system information.  #  # Use 'blkid' to print the universally unique identifier for a  # device; this may be used with UUID= as a more robust way to name devices  # that works even if disks are added and removed. See fstab(5).  #  # <file system> <mount point>   <type>  <options>       <dump>  <pass>  proc            /proc           proc    nodev,noexec,nosuid 0       0  # / was on /dev/sda8 during installation  UUID=0022e6f3-c3fa-44a0-8ec9-4ac91dc8edf4 /               ext4    errors=remount-ro 0       1  # /windows/C was on /dev/sda1 during installation  UUID=00FJKDN09YW7JSX6 /windows/C      ntfs    defaults,umask=007,gid=46 0       0  # /windows/D was on /dev/sda2 during installation  UUID=0008E78D000E3B9C /windows/D      ntfs    defaults,umask=007,gid=46 0       0  # /windows/E was on /dev/sda5 during installation  UUID=00063C35000A63B9 /windows/E      ntfs    defaults,umask=007,gid=46 0       0  # /windows/F was on /dev/sda6 during installation  UUID=000F6F14000372B6 /windows/F      ntfs    defaults,umask=007,gid=46 0       0  # swap was on /dev/sda7 during installation  UUID=fefe7e3c-7001-451f-afa3-9dd773ede2d7 none            swap    sw              0       0   大概記住/windows/C的UUID。 2.查看當前磁碟(分區)的UUID。這裡使用blkid命令查看當前電腦所有分區的UUID及檔案系統類型。[plain] $ sudo blkid   輸出:[plain] /dev/sda1: UUID="C2E09EDAE09ED3CF" TYPE="ntfs"   /dev/sda2: UUID="0008E78D000E3B9C" TYPE="ntfs"   /dev/sda5: UUID="00063C35000A63B9" TYPE="ntfs"   /dev/sda6: UUID="000F6F14000372B6" TYPE="ntfs"   /dev/sda7: UUID="fefe7e3c-7001-451f-afa3-9dd773ede2d7" TYPE="swap"   /dev/sda8: UUID="0022e6f3-c3fa-44a0-8ec9-4ac91dc8edf4" TYPE="ext4"    由此可見,當前的/windows/C的UUID與原fstab掛載指令碼中的UUID不符。3.修改fstab掛在指令碼。提示:修改系統檔案需要用root許可權。[plain] $ sudo gedit /etc/fstab   這裡使用的是gedit文字編輯器。修改上述UUID項,改成一致的就行了。當然如果你習慣用vi(vim)的話也可以。[plain] $ sudo vi /etc/fstab  或[plain] $ sudo vim /etc/fstab   問題解決。 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.