fstab 修改 - Linux

Kelly avatar
By Kelly
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 裡的東西

需不需要先備份…


先謝謝大家看完我的問題

希望有人可以救救我…

--
Tags: Linux

All Comments

linux 架的mail問題

Robert avatar
By Robert
at 2009-12-06T19:47
急急急 最近小弟mail發生一點問題就是 因為下錯指令,因下太急了把指令串在一起下 好死不死剛好有那個東西在跑 指令如下ls /webmail /log_archivrm -rf 2009_01 居然有反應上面顯示路進不對不過一直跑執行= = 用後進去mail那邊險是系統缺件= =他是刪除到那個不該 ...

解開檔案時發生錯誤

Blanche avatar
By Blanche
at 2009-12-06T17:22
※ 引述《jerry5 (.)(.)》之銘言: : 這幾天再解一個tar.gz的檔案 : 裡面是編譯某個source code用的toolchain : 但是在解開壓縮的時候 看起來像是無法建立正確捷徑的錯誤 : 然後出現and#34;操作不被允許and#34; : 我是在桌面環境下直接解壓縮 : 也有在co ...

解開檔案時發生錯誤

Doris avatar
By Doris
at 2009-12-06T15:28
這幾天再解一個tar.gz的檔案 裡面是編譯某個source code用的toolchain 但是在解開壓縮的時候 看起來像是無法建立正確捷徑的錯誤 然後出現and#34;操作不被允許and#34; 我是在桌面環境下直接解壓縮 也有在command line下去解壓縮 也是無法正確的解開檔案 不知道是哪個環 ...

LPIC_LV1 課本習題

Oliver avatar
By Oliver
at 2009-12-06T12:43
http://linux.vbird.org/linux_basic/0220filemanager.php#dir_path 看完這一節你就會了 ※ 引述《reirobert (我得努力準備了)》之銘言: : Q Where is the best location for the current dir ...

LPIC_LV1 課本習題

Christine avatar
By Christine
at 2009-12-06T12:37
Q Where is the best location for the current directory indicator (.) to reside in rootand#39;s PATH environment variable? A. Before all other directorie ...