查看積分策略說明發表回覆
Discuz! 代碼
提示插入
直接插入
說明訊息

插入粗體文本 插入斜體文本 插入下劃線 置中對齊 插入超級連結 插入信件位址 插入圖像 插入 flash 插入代碼 插入引言 插入列表
刪除線 直線分隔線 虛線分隔線
    
添加文字底框
內容 [字數檢查]:

表情符號

更多 Smilies
字型大小 |||
溫馨提示:本區開放遊客瀏覽。


文章關鍵字 : [功能說明]
(關鍵字可加強搜索準確性, 如關鍵字多於一組, 請以 , 作分隔, e.g. : 阿笨,shiuh,第一笨)

 關閉 URL 識別 | html 禁用
 關閉 表情符號 | 表情符號 可用
 關閉 Discuz! 代碼 | Discuz! 代碼 可用
使用個人簽名
接收新回覆信件通知
推薦放檔網絡空間

檔案(Torent, zip等)
  1. freedl
  2. multiupload
  3. btghost
  4. 便當狗
  5. mediafire
  6. pillowangel
圖片(JPG, GIF等)
  1. hotimg
  2. tinypic
  3. mousems2
  4. imageshack
  5. imm.io
>>>歡迎推薦好用空間


最新10篇文章回顧
ramble

 發表於 2008-2-5 05:35 PM


引用:
greensky寫到:
1. 用 root 帳號登入,就有權限可以編輯了。

或是

2. sudo gedit
             ↑ 改為你使用的編輯軟體名稱,再開檔編輯。

謝謝!已經弄好了,只差顯示仍在最下方。


greensky

 發表於 2008-2-5 12:14 AM

1. 用 root 帳號登入,就有權限可以編輯了。

或是

2. sudo gedit
             ↑ 改為你使用的編輯軟體名稱,再開檔編輯。


ramble

 發表於 2008-2-4 09:09 PM

我是用視窗模式開的檔,命令模式沒學過,剛剛去試了一下:sudo grub輸入密碼後就不知道如何開menu.lst編輯了。不能直接用視窗模式編輯嗎?


dayi

 發表於 2008-2-4 07:33 PM


引用:
ramble寫到:
剛剛去ubuntu把那個0改為3,存檔時顯示警告訊息“你沒有足夠的權限儲存檔案”真有點洩氣!
連在網頁中發表回復也被擋,每次都得回到XP來弄,還真感激各位的耐心。請各位繼續幫忙吧。


你必需有root權限才能改
sudo xxx
xxx<-你要執行的命令


ramble

 發表於 2008-2-4 12:12 AM

剛剛去ubuntu把那個0改為3,存檔時顯示警告訊息“你沒有足夠的權限儲存檔案”真有點洩氣!
連在網頁中發表回復也被擋,每次都得回到XP來弄,還真感激各位的耐心。請各位繼續幫忙吧。


greensky

 發表於 2008-2-3 11:12 PM


引用:

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default                0


default 表示開機選單的預設選擇,以你目前的設定,就是使用 Ubuntu 7.10, kernel 2.6.22-14-generic 開機,

你的設定裡已包含使用 Windows 開機的選項:


引用:

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title                Microsoft Windows XP Professional
root                (hd0,0)
savedefault
makeactive
chainloader        +1


你可以將 default 設為 3,就可以使用 Microsoft Windows XP Professional 作為開機的預設選擇


dayi

 發表於 2008-2-3 11:12 PM

這要看你 xp 的 title 設在那一個
以0為第一個
再來往上看到 default 0
這個0就是開機預設的title的號碼
就代表從你設定的第一個title為預設
也就是Ubuntu 7.10, kernel 2.6.22-14-generic


ramble

 發表於 2008-2-3 06:39 PM

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default                0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title                Windows 95/98/NT/2000
# root                (hd0,0)
# makeactive
# chainloader        +1
#
# title                Linux
# root                (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=c82355b6-16a0-497b-a4f5-755abe936e73 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,6)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title                Ubuntu 7.10, kernel 2.6.22-14-generic
root                (hd0,6)
kernel                /boot/vmlinuz-2.6.22-14-generic root=UUID=c82355b6-16a0-497b-a4f5-755abe936e73 ro quiet splash
initrd                /boot/initrd.img-2.6.22-14-generic
quiet

title                Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root                (hd0,6)
kernel                /boot/vmlinuz-2.6.22-14-generic root=UUID=c82355b6-16a0-497b-a4f5-755abe936e73 ro single
initrd                /boot/initrd.img-2.6.22-14-generic

title                Ubuntu 7.10, memtest86+
root                (hd0,6)
kernel                /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title                Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title                Microsoft Windows XP Professional
root                (hd0,0)
savedefault
makeactive
chainloader        +1

greensky兄:這是我menu.lst的內容(因為在Linux寫入軟碟,在Windows讀取,可能有點亂,在Linux 發表回復都不成功)目前用grub開機正常,開機畫面為ubuntu7.10,依次為安全模式及命令模式,我想把XP設為第一優先,是把你說的那些加到最後嗎?還是如何修改?(我的XP安裝在第一分割第一顆磁碟)謝謝!


miholee

 發表於 2008-2-3 12:04 PM


引用:
ramble寫到:
我用SPFDISK設開機檔,只能安裝到MBR中,選單中第二項為ubuntu
,都顯示目前無法啟動,Windows開機沒問題。該如何做呢?

用SPFDISK的話,沒記錯的話,需要將grub或lilo安裝到放Linux的分割的Super Block。 不是只有在SPFDISK加選單就好。


greensky

 發表於 2008-2-3 12:30 AM

如果你是使用 grub 的開機管理程式的話,可以參考一下這裡

改寫你的 /boot/grub/menu.list,加入

(此設定值需依個人電腦不同而修改)

title Windows XP Pro
        rootnoverify (hd1,0)
        chainloader +1
        makeactive
        boot

註1:紅字的"Window XP Pro"為自己取名
註2:rootnoverify (hd1, 0)
                          ↑     ↑分割區 ( 0 為第一分割區)
                          硬碟順序 (0 為第一顆)

如果看不懂的話,你需要多閱讀相關文章,或到這裡看看教學


本主題回覆較多,請 點擊這裡 檢閱。



所在時區為 GMT+8, 現在時間是 2024-3-28 07:49 PM
清除 Cookies - 連絡我們 - TWed2k © 2001-2046 - 純文字版 - 說明
Discuz! 0.1 | Processed in 0.023831 second(s), 7 queries , Qzip disabled