View previous topic :: View next topic |
Author |
Message |
Syruz n00b
Joined: 02 May 2002 Posts: 38
|
Posted: Sun May 05, 2002 4:03 pm Post subject: fstab error >> boot fails |
|
|
I edited my /etc/fstab file to mount my windows partition on boot. Apparently I made a mistake because now my system won't fully boot. It stops and says that there is an error on line 21 and it can't continue.
I opened up /etc/fstab and found that line 21 was the line I added the command to mount the windows partition.
Unfortunately I can't edit this file because my file system is set to read-only.
How can I boot my system so I can fix my mistake?
This is the command I added...
/dev/hdd5 /mnt/windows win95 fat32 noatime 0 1
I made a /mnt/windows dir, I think my mistake is the 'win95 fat32' part. I was just using what fdisk labeled the partition as, which probably is what fstab wants.
So how can I fix this without reinstall? |
|
Back to top |
|
|
Syntaxis Guru
Joined: 28 Apr 2002 Posts: 511 Location: London, UK
|
Posted: Sun May 05, 2002 4:34 pm Post subject: Re: fstab error >> boot fails |
|
|
The install CD can be used as a rescue shell. Boot into it, and mount your root partition from there. Then you can edit the /etc/fstab and reboot.
|
|
Back to top |
|
|
Syruz n00b
Joined: 02 May 2002 Posts: 38
|
Posted: Sun May 05, 2002 4:56 pm Post subject: |
|
|
boot into the install or just to where it says 'boot:'
what commands to I have to pass? I'm not exactly sure how to mount devices. |
|
Back to top |
|
|
Syntaxis Guru
Joined: 28 Apr 2002 Posts: 511 Location: London, UK
|
Posted: Sun May 05, 2002 6:01 pm Post subject: |
|
|
Boot into the install environment by pressing enter.
Type "mount --help | more" to see the options in full, but I think the option you need is "mount -t <fs type> <device> <mount point>" - you mightn't even have to specify the filesystem.
Just be sure to create the mountpoint in /mnt with "mkdir" first. |
|
Back to top |
|
|
Syruz n00b
Joined: 02 May 2002 Posts: 38
|
Posted: Sun May 05, 2002 6:41 pm Post subject: |
|
|
Ok. I fixed the fstab and now my system boots.
What is the proper way to mount a windows partition?
My windows extended partition is located at /dev/hdd2 and my logical partition is at /dev/hdd5 I don't no why its split up like it is, but it is. |
|
Back to top |
|
|
Syntaxis Guru
Joined: 28 Apr 2002 Posts: 511 Location: London, UK
|
Posted: Sun May 05, 2002 6:56 pm Post subject: |
|
|
from a prompt:
"mount -t vfat <device> <mount point>"
or in fstab, something like:
"/dev/hdd2 /mnt/win vfat defaults 0 0"
now add hdd5 in the same way.
and you should be set |
|
Back to top |
|
|
Syntaxis Guru
Joined: 28 Apr 2002 Posts: 511 Location: London, UK
|
Posted: Sun May 05, 2002 7:10 pm Post subject: |
|
|
Oh yeah, I just remembered:
Permissions with fat32 act a little screwy under Linux, you can only specify them at mount time.
If you want to be able to have the files on the windows partition owned by a user/group other than root, check out the "uid= " and "gid= " mount options. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun May 05, 2002 7:21 pm Post subject: |
|
|
On a related topic... how do you find out what type a fs is? My fstab was changed somehow.
I have a partition "/" that is now listed as xfs. During install, I'm pretty sure I set it for ext3. /boot
is listed as ext3, and I thought I had set it for ext2. I've had the system running for a while now.
I have been rebuilding kernels, but I wouldn't think that would have changed my fstab.
I asked here and included some boottime errors, but no response yet:
https://forums.gentoo.org/viewtopic.php?t=1784
My system boots and seems to work ok.
EDIT: solved, if not the easiest way. parted will apparently report fs types.
Last edited by pjp on Sun May 05, 2002 10:29 pm; edited 1 time in total |
|
Back to top |
|
|
Syruz n00b
Joined: 02 May 2002 Posts: 38
|
Posted: Sun May 05, 2002 10:00 pm Post subject: |
|
|
It tells me that vfat is not supported by kernel. I know that I included it in my kernel. Built-in not as a module. |
|
Back to top |
|
|
Syruz n00b
Joined: 02 May 2002 Posts: 38
|
Posted: Mon May 06, 2002 2:06 am Post subject: |
|
|
I compiled a new kernel with support for all microsoft filesystems and I still can't mount my windows partition.
It tells me that vfat isn't supported by the kernel. Do I have to make support built-in or as a module? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon May 06, 2002 3:07 am Post subject: |
|
|
I have mine in the kernel... here's what I've selected under File ssytem:
[*] POSIX Access Control List Support
<*> Ext3 journalling
[*] JBD (ext3) debugging
<*> DOS FAT fs support
<*> MSDOS fs support
<*> UMSDOS: Unix-like fs on top of standard MSDOS
<*> VFAT (Windows-95) fs support
[*] Virtual memory fs support
<*> ISO 9660 CDROM
[*] MS Joliet CD
<*> NTFS (read only)
[*] /proc fs
[*] /dev fs
[*] Auto mount at boot
[*] debug devfs
<*> SGI XFS fs
[*] Enable XFS quota
I've also included PC BIOS (MSDOS partition tables support) under Partitions
I doubt I need all of that, but I can mount my fat32 drive. |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
Posted: Mon May 06, 2002 4:27 am Post subject: |
|
|
Syruz wrote: | I compiled a new kernel with support for all microsoft filesystems and I still can't mount my windows partition. |
Did you remember to copy your new kernel to /boot? And to mount /boot before copying? Also, did you add it to your menu.lst? _________________ | www.gentoo.org | www.tldp.org | www.google.com | |
|
Back to top |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Mon May 06, 2002 4:01 pm Post subject: |
|
|
kanuslupus wrote: | On a related topic... how do you find out what type a fs is? My fstab was changed somehow. |
I use df -T to see the filesystem types of all my partitions. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon May 06, 2002 4:19 pm Post subject: |
|
|
arkane wrote: | I use df -T to see the filesystem types of all my partitions. |
Interesting... does -T report the fs type regardless of how it is mounted? I mounted an fs incorrectly and wanted to know the true fs type.
man df -T:
Code: |
-T, --print-type
Print each filesystem's type. The types given are
those reported by the system (and are found in a
system-dependent way, for example by reading
/etc/mtab). See also mount(8).
|
That sounds like it reports the fs type of how it is mounted... am I wrong? |
|
Back to top |
|
|
dufnutz Apprentice
Joined: 01 May 2002 Posts: 209
|
Posted: Mon May 06, 2002 5:36 pm Post subject: |
|
|
Syntaxis wrote: | Oh yeah, I just remembered:
Permissions with fat32 act a little screwy under Linux, you can only specify them at mount time.
If you want to be able to have the files on the windows partition owned by a user/group other than root, check out the "uid= " and "gid= " mount options. |
how do i put that into the /etc/fstab? thanks |
|
Back to top |
|
|
justus n00b
Joined: 16 Apr 2002 Posts: 48
|
Posted: Mon May 06, 2002 8:00 pm Post subject: FStab setup :) |
|
|
Try something along these lines:
Code: |
/dev/hdb1 /Windows ntfs noatime,rw,uid=nobody,gid=fileshare,umask=007 0 0 |
Idea is the same for vfat (fat and fat32 drives)
[Partition][MountPoint][Type][Options][dump/pass]
Where [Partition] is the partion on your drive (ie. /dev/hda1)
Where [Mountpoint] is the mountpoint on your system (ie. /Windows)
Where [Type] is the filesystem type (ie. NTFS, VFAT)
Where [Options] are options that include but isn't limited to:
noatime - don't update access time
rw - make partition read and writeable
ro - make partition read only
uid - sets the user id (can be the uid or username)
gid - sets the group id (can be the gid or groupname)
umask - permissions for device
umask = 777 - permissions you want (ie. 777-755= 022... normal rwxr-xr-x permissions)
There are other options you can use, but these are the basics. Try a Code: | man fstab
or
man mount | to learn more (or a simple google search)
Hope that helps
Justin T |
|
Back to top |
|
|
Syruz n00b
Joined: 02 May 2002 Posts: 38
|
Posted: Mon May 06, 2002 9:43 pm Post subject: |
|
|
Crap, I forgot to mount /boot before I copied the bzImage. Now I have a /boot dir with 2 images, no wonder my cdrw drive didn't work after I thought I fixed the kernel. |
|
Back to top |
|
|
Syntaxis Guru
Joined: 28 Apr 2002 Posts: 511 Location: London, UK
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Aug 22, 2002 6:14 am Post subject: |
|
|
Locking in favor of this thread.
Yes, this thread is 'newer' (by a day), but the other thread has a more helpful title. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|