fstab 修改 - Linux
By Kelly
at 2009-12-07T06:46
at 2009-12-07T06:46
Table of Contents
小弟日前安裝 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 裡的東西
需不需要先備份…
先謝謝大家看完我的問題
希望有人可以救救我…
--
本來打算硬碟割兩區 /, /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 裡的東西
需不需要先備份…
先謝謝大家看完我的問題
希望有人可以救救我…
--
Tags:
Linux
All Comments
Related Posts
linux 架的mail問題
By Robert
at 2009-12-06T19:47
at 2009-12-06T19:47
解開檔案時發生錯誤
By Blanche
at 2009-12-06T17:22
at 2009-12-06T17:22
解開檔案時發生錯誤
By Doris
at 2009-12-06T15:28
at 2009-12-06T15:28
LPIC_LV1 課本習題
By Oliver
at 2009-12-06T12:43
at 2009-12-06T12:43
LPIC_LV1 課本習題
By Christine
at 2009-12-06T12:37
at 2009-12-06T12:37