Re: [問題] fstab 修改
如果你只是改/etc/fstab
把/boot改成/home
那當然會無法開機
用rescue進去修改回/boot
或是找片livecd進去改都可以解決 @_@
-
如果你是把/boot幹掉(ex:mke2fs boot partition)裏面換成/home的檔案就比較麻煩
可能要重裝/boot的相關套件
然後重做grub-install來修復
※ 引述《diedpigs (牙線)》之銘言:
: 小弟日前安裝 debian testing的時候
: 本來打算硬碟割兩區 /, /home
: 但誰知道在跑安裝程式的時候
: 我眼殘了
: 把 /home 那區選錯變 /boot
: 這幾天在用
: 突然出現 硬碟空間不足
: 才發現這件事
: 稍微找了一下 fstab 的用法
: 但是改了之後確無法登入了
: 只好上來求救…
: 以下是我的 /etc/fstab 檔內容:
: # /etc/fstab: static file system information.
: #
: # Use 'vol_id --uuid' 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 defaults 0 0
: # / was on /dev/sda2 during installation
: UUID=8cc1cf8d-93fe-4b76-97ab-21921a6d6aaa / ext4
: errors=remount-ro 0 1
: # /boot was on /dev/sda3 during installation
: UUID=f93a1cc7-a745-4b32-baa3-764db520c5a8 /boot ext4 defaults
: 0 2
: # swap was on /dev/sda5 during installation
: UUID=eed1bd3a-4328-42fe-b1ad-f536ee0217df none swap sw
: 0 0
: /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
: 請問有辦法直接修改就搞定嗎?
: 還有,現在 /home 裡的東西
: 需不需要先備份…
: 先謝謝大家看完我的問題
: 希望有人可以救救我…
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.147.152.2
推
12/07 14:39, , 1F
12/07 14:39, 1F
→
12/07 14:40, , 2F
12/07 14:40, 2F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 3 篇):