LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2008, 09:53 AM   #1
radamsiii
Member
 
Registered: Feb 2008
Location: North Carolina
Distribution: PCLinuxOS
Posts: 36

Rep: Reputation: 15
how do i find fstab and menu.list to post my errors


I installed PCLinuxOS onto my USB drive by making it the second boot device, When I tried to boot from it I got a NTDLR error. I booted from the live CD again and reinstalled it with the same results. Thought I would get online and read some more posting, changed the boot back to normal boot, system loads Grub at command prompt. i can see everything that should be on the win operating system from here (linux) but it will not load. In a post I was told I may have the boot sectors switched (new to this i have no idea what they are talking about) but i was also told to post fstab and menu.list. I am about as new as it gets here and I need my computer for school and work. Can anyone help.
 
Old 02-17-2008, 09:58 AM   #2
zoranp
Member
 
Registered: Nov 2007
Location: Belgrade, RS
Distribution: Mandriva 2009.0 X86_64
Posts: 44

Rep: Reputation: 15
fstab is a file in /etc,

/etc/fstab

manu.list resides in

/boot/grub/
 
Old 02-17-2008, 10:03 AM   #3
radamsiii
Member
 
Registered: Feb 2008
Location: North Carolina
Distribution: PCLinuxOS
Posts: 36

Original Poster
Rep: Reputation: 15
thank you for the reply and can use all the help i can get. How do i get to it Do I restart without the live cd and type something at the grub command or is there a way to do it here in the Linux window?
 
Old 02-17-2008, 10:05 AM   #4
zoranp
Member
 
Registered: Nov 2007
Location: Belgrade, RS
Distribution: Mandriva 2009.0 X86_64
Posts: 44

Rep: Reputation: 15
Try (in terminal window)

$ cat /etc/fstab

then

$ cat /boot/grub/menu.list
 
Old 02-17-2008, 10:26 AM   #5
radamsiii
Member
 
Registered: Feb 2008
Location: North Carolina
Distribution: PCLinuxOS
Posts: 36

Original Poster
Rep: Reputation: 15
I tried both of them and recieved
[guest@localhost ~]$ cat/etc/fstab
bash: cat/etc/fstab: No such file or directory
[guest@localhost ~]$ cat/boot/grub/menu.list
bash: cat/boot/grub/menu.list: No such file or directory
[guest@localhost ~]$
 
Old 02-17-2008, 10:39 AM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
You may not be accustomed to command-line operations. So, a pointer or two is in order.

You can look at the contents of /etc/fstab in any wordprocessor or text editing utility. Boot/grub/menu.lst requires system administrator (root) priviledge to look at it. You won't be able to use a GUI editor or wordprocessor to see it unless you jump through a hoop or two that you probably aren't ready for just yet. You can look at it in a text editor such as vim, with root priviledge.

Here's how to do it. Look for an icon in the panel that looks like a computer monitor. If you don't have one there, right-click on an empty part of the panel, and click on Add to panel - Application. Then search (probably in the System menu) for Terminal, Console, or Konsole.

Once you have that, left-click on the terminal icon in the panel to open a terminal window (the famous command-line).

The commands:
cat /etc/fstab will list the contents of fstab.

su to switch user. you will be prompted for the root password.
password give the root password
cat /boot/grub/menu.lst to list the contents of menu.lst.

To copy relevant portions of those files:
start up an editor or wordprocessor and open a blank file.
bring the terminal back to foreground. when you do the cat command, highlight the portion of the list you want to show, then go the the terminal menu, and do Edit - Copy.
bring the wordprocessor to foreground and paste the copy.
Do the same with menu.lst.

Then it's just a matter of copy that wordprocessor page and paste it into this forum.. Please use the Quote or Code block icons above the input box (letter or #) and paste the copy between the tags.

Last edited by bigrigdriver; 02-17-2008 at 10:42 AM.
 
Old 02-17-2008, 10:52 AM   #7
radamsiii
Member
 
Registered: Feb 2008
Location: North Carolina
Distribution: PCLinuxOS
Posts: 36

Original Poster
Rep: Reputation: 15
### Entries below this line were automatically added by hwdetect v0.7.0
# ROOT
/dev/root / rootfs defaults 0 0
# PROC
none /proc proc defaults 0 0
# PTS
none /dev/pts devpts mode=0620 0 0

# cdrom: TSSTcorp CDDVDW SH-S202J
/dev/hda /media/cdrom auto user,exec,ro,noauto 0 0

# /dev/sda1, size=312560577, type=7: NTFS (primary)
/dev/sda1 /mnt/win_c ntfs user,exec,ro,auto,nls=utf8,umask=0 0 0

# /dev/sdb1, size=16370172, type=131: Linux native (primary)
/dev/sdb1 /mnt/win_d ntfs user,exec,ro,auto,nls=utf8,umask=0 0 0

# /dev/sdb5, size=8177022, type=130: Linux swap (extended)
/dev/sdb5 swap swap defaults 0 0

# /dev/sdb6, size=215560107, type=131: Linux native (extended)
/dev/sdb6 /mnt/sdb6 ext2 user,exec,rw,auto 0 0

[guest@localhost ~]$

[guest@localhost ~]$ cat /boot/grub/menu.lst
cat: /boot/grub/menu.lst: No such file or directory
[guest@localhost ~]$

Thank you so much. I have tried to get the help files to open but they wont. tell me to report to the site but i am sure it is me not the program. didn't get the boot menu i guess there isn't one

Do you see anything wrong with this one? I just do not understand why i can't load winxp. I am somewhat familiar with dos command line structure but this is all new to me.
 
Old 02-17-2008, 12:07 PM   #8
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Do you understand this:

Quote:
Originally Posted by bigrigdriver View Post


su to switch user. you will be prompted for the root password.
password give the root password
cat /boot/grub/menu.lst to list the contents of menu.lst.
In others words you must be root to do something important on your system,in meaning of configuration.This sign $ is not a root sign.This is the root sign #.
In terminal type su and press enter
In passwd type root passwd(you want see anything,but press enter when you enter your root passwd)
Now do the cat /boot/grub/menu.lst
and cat /etc/fstab
 
Old 02-17-2008, 12:31 PM   #9
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Use your filemanager to look at the contents of /boot and /boot/grub. The file is either menu.lst or grub.conf. You will need root authority to look into the file, which you can do in a terminal.
 
Old 02-17-2008, 12:44 PM   #10
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
I don't know quite enough to tell you what could be in /boot/grub/menu.lst to make windows bootable, but I can explain what has happened to you so far and some of the concepts.

The process of booting a disk drive starts in a tiny program in the MBR (master boot record) of that disk drive. That loads a pre-loader program, that in the case of GRUB is usually called "stage 1.5", which in turn loads the loader program, that in the case of GRUP is usually called "stage 2". That may offer a menu (from that menu.lst file) before loading the OS.

When you installed PCLinuxOS onto your USB drive, you unfortunately installed GRUB to start in the MBR of the main disk drive. That overwrote the Windows MBR. I don't know what you did wrong to make it use the MBR of the main disk drive rather than the MBR of the USB drive.

I'm also not sure where the GRUB installer put stage 1.5 (it could be on the main drive or on the USB).

There are things you could put in the menu.lst file to give you the option to boot Windows from inside GRUB on the USB drive. But then you would need to always have that USB drive present to boot Windows, which you probably don't want.

If you have your original Windows install CD, you can boot that and it has an option to repair the MBR (put it back to booting just Windows). But its choices are not all that clear and I don't recall details and there is risk of doing further harm if you do the wrong thing. If you did that right, you could then use the Linux liveCD to reinstall GRUB entirely on the USB drive, so the Window/Linux boot choice is at the BIOS level of hard drive or USB.

Another good approach needs more grub-install expertise than I have, but any of the experts here should be able to tell you how to do this:
Reinstall grub (while running in the liveCD) so grub is entirely on the Windows hard drive. Set up the menu.lst file of that new install of grub, so it presents a menu and after a short timeout boots Windows, but during that timeout lets you select booting Linux from the USB (so from the BIOS's viewpoint you always boot the hard drive, not the USB, but once booted into grub on the hard drive you can select Linux on the USB drive if you want it.

Last edited by johnsfine; 02-17-2008 at 12:48 PM.
 
Old 02-17-2008, 03:34 PM   #11
radamsiii
Member
 
Registered: Feb 2008
Location: North Carolina
Distribution: PCLinuxOS
Posts: 36

Original Poster
Rep: Reputation: 15
bash-3.1# cat /etc/fstab

### Entries below this line were automatically added by hwdetect v0.7.0
# ROOT
/dev/root / rootfs defaults 0 0
# PROC
none /proc proc defaults 0 0
# PTS
none /dev/pts devpts mode=0620 0 0

# cdrom: TSSTcorp CDDVDW SH-S202J
/dev/hda /media/cdrom auto user,exec,ro,noauto 0 0

# /dev/sda1, size=312560577, type=7: NTFS (primary)
/dev/sda1 /mnt/win_c ntfs user,exec,ro,auto,nls=utf8,umask=0 0 0

# /dev/sdb1, size=16370172, type=131: Linux native (primary)
/dev/sdb1 /mnt/win_d ntfs user,exec,ro,auto,nls=utf8,umask=0 0 0

# /dev/sdb5, size=8177022, type=130: Linux swap (extended)
/dev/sdb5 swap swap defaults 0 0

# /dev/sdb6, size=215560107, type=131: Linux native (extended)
/dev/sdb6 /mnt/sdb6 ext2 user,exec,rw,auto 0 0

bash-3.1# cat /boot/grub/menu.lst
cat: /boot/grub/menu.lst: No such file or directory
bash-3.1#

I think I did it correctly this time but it look the same to my uneducated eyes
 
Old 02-17-2008, 03:54 PM   #12
radamsiii
Member
 
Registered: Feb 2008
Location: North Carolina
Distribution: PCLinuxOS
Posts: 36

Original Poster
Rep: Reputation: 15
does this help any

bash-3.1# mount
/dev/root on / type rootfs (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/sdb6 on /mnt/sdb6 type ext2 (rw,nosuid,nodev)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
/dev/sdb1 on /mnt/win_d type ntfs (ro,nosuid,nodev,nls=utf8,umask=0,user=guest)
/dev/sda1 on /mnt/win_c type ntfs (ro,nosuid,nodev,nls=utf8,umask=0,user=guest)
bash-3.1#
 
Old 02-17-2008, 04:16 PM   #13
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by radamsiii View Post
I installed PCLinuxOS onto my USB drive
Quote:
changed the boot back to normal boot, system loads Grub at command prompt.
Not sure what you mean by "at command prompt". But if you get to grub by booting your main hard drive, then the installation of Linux took over the MBR of your main hard drive as I explained in post #10 of this thread.

Quote:
i can see everything that should be on the win operating system from here (linux)
Not sure what that means either. On first read, I assumed you meant you booted into Linux and knew how to use either some GUI tool or some command line tool to look at the available file systems, and you saw the files and directories of your windows system in the partition sda1. But your later post implies you don't know how to look around from within Linux, so now I don't know what "can see everything" meant.

Quote:
Originally Posted by radamsiii View Post
cat: /boot/grub/menu.lst: No such file or directory
I guess someone who knows the PCLinuxOS distribution would both learn more from that fstab and know where to expect to find the grub info.

The fstab files I've looked at before make it clear what partition is booted at the moment. Your fstab doesn't seem to, so I have to ask: Were you booted in the liveCD when you captured that fstab and tried to get /boot/grub/menu.lst? Or were you booted in the copy of PCLinuxOS that was installed?

Whoever asked to see those files meant the ones from your installed linux, not the ones from the liveCD.

I was also worried to see your sdb1 partition in fstab listed as named win_d but type "Linux native". That sounds like the install trashed your Windows D partition. But while I was typing the above you posted mount output (very good step) showing that sdb1 is ntfs, implying it is still the Windows D and hasn't been trashed.

Quote:
Originally Posted by bigrigdriver View Post
Use your filemanager to look at the contents of /boot and /boot/grub. The file is either menu.lst or grub.conf.
probably he knows something I don't in saying the file may be named "grub.conf" instead of "menu.lst". So be sure to try that as well.

If you haven't figured out any filemanager, the ls command in linux does roughly the job of the dir command in dos prompt (but make sure you use / not \ as a directory separator). The cd command does what cd does in dos prompt. Those two should be enough to look around and find your grub directory and what is in it.

Last edited by johnsfine; 02-17-2008 at 04:29 PM.
 
Old 02-17-2008, 04:23 PM   #14
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Will you please search for /boot/grub with your file manager and post the output here and please type this command in terminal:fdisk -l and also post it here.Did you install any GNU/Linux distro on hard drive or just partition of PCLOS because that's what I see.
 
Old 02-17-2008, 05:17 PM   #15
radamsiii
Member
 
Registered: Feb 2008
Location: North Carolina
Distribution: PCLinuxOS
Posts: 36

Original Poster
Rep: Reputation: 15
"If you haven't figured out any filemanager, the ls command in linux does roughly the job of the dir command in dos prompt (but make sure you use / not \ as a directory separator). The cd command does what cd does in dos prompt. Those two should be enough to look around and find your grub directory and what is in it."

Thank you. I have found the grub file in main drive and replaced. WinXP loading properly now. Formatting the USB drive because I bought the ubuntu desktop install cd today along with the ubuntu bible, pocket reference, pocket guide and Linux for dummies. I hope this doesn't happen again but by the time it does I will at lease understand what you are asking me to do.

I want to thank everyone for their help and I cannot tell you how much I appreciate it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Post your source.list craigevil Debian 279 07-15-2016 11:00 PM
Post your sources.list el amigo* Ubuntu 1 06-24-2007 08:57 PM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration