LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-08-2005, 11:09 AM   #1
zach_barrow
LQ Newbie
 
Registered: Mar 2004
Location: San Diego
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
Question /home partition will not mount at boot despite fstab settings


Hi all,

I just recompiled my kernel from 2.4.26 to 2.6.10. A big problem I am having is that my /home directory on its own partition does not get mounted at boot time. My fstab file for that partition is set to the default so it should. Where do I go from here to fix this? This is my /etc/fstab file. The only other thing I can imagine is that it does get mounted, but then some blank home directory gets mounted on top of that, but I assumed I would get an error that something is already mounted there. All I know is it worked in 2.4.26 and not now, so any help would be appreciated. Other than that, the new kernel is working great!

/dev/hdc3 swap swap defaults 0 0
/dev/hdc5 / ext3 defaults 1 1
/dev/hdc2 /boot ext3 defaults 1 2
/dev/hdc6 /home ext3 defaults 1 2
/dev/hdc1 /windowsxp vfat users 1 0
/dev/hdc7 /fat-d vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 ro,user,noauto 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 03-08-2005, 11:25 AM   #2
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
if you look in /etc/mtab then it shows what is currently mounted, in case it is mounted but you can't see it, as you suggest.

Have you checked the output in dmesg and the logs?

Can you mount it manually?

hamish
 
Old 03-08-2005, 07:51 PM   #3
zach_barrow
LQ Newbie
 
Registered: Mar 2004
Location: San Diego
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
>if you look in /etc/mtab then it shows what is currently mounted, in case it is mounted but you can't see it, as you suggest.
Nope, it's not mounted, just / and /procfs (I believe, going on memory)

>Have you checked the output in dmesg and the logs?
Haven't checked dmesg or the logs for this particular issue. I was perusing them for some other stuff related to my kernel upgrade, but I didn't notice anything related to hd6 or /home. I will check again when I get home.

>Can you mount it manually?
Yep, I can totally mount it.

I first tried to login as a normal user and it said that home directory didn't exist, so I logged in as root, freaked out b/c the /home directory was empty, then mounted the partition and it was all there. So, as far as I can tell, it's not getting mounted depsite the "defaults" entry in fstab or it is getting mounted then unmounted. Totally at a loss.

Zach
 
Old 03-08-2005, 08:39 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,541

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
Did you enable udev/hotplug, disable rc.devfsd (if you have it), have a /sys dir ?
 
Old 03-08-2005, 10:54 PM   #5
zach_barrow
LQ Newbie
 
Registered: Mar 2004
Location: San Diego
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by keefaz
Did you enable udev/hotplug, disable rc.devfsd (if you have it), have a /sys dir ?
udev is enabled because I added some rules so that the symlinks to my two cd drives were correct. I don't have rc.devfsd, and I do have a /sys dir.

From /var/log/messages (hdc6 is my /home partition, hdc5 is my / partition)

-------------
root@andromeda:/etc/rc.d# tail -n -600 /var/log/messages | grep hdc6
Mar 7 08:54:20 andromeda kernel: hdc: [PTBL] [9726/255/63] hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 >
Mar 8 19:23:35 andromeda kernel: hdc: hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 >
No mention of adding anything on hdc6
-------------
root@andromeda:/etc/rc.d# tail -n -600 /var/log/messages | grep hdc5
Mar 7 08:54:20 andromeda kernel: hdc: [PTBL] [9726/255/63] hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 >
Mar 8 19:23:35 andromeda kernel: hdc: hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 >
Mar 8 19:23:35 andromeda kernel: EXT3 FS on hdc5, internal journal
-------------
Nothing else seems to be showing up in the logs one way or another.
As far as my dmesg, here is the contents

BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000017ffc000 (usable)
BIOS-e820: 0000000017ffc000 - 0000000017fff000 (ACPI data)
BIOS-e820: 0000000017fff000 - 0000000018000000 (ACPI NVS)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
383MB LOWMEM available.
On node 0 totalpages: 98300
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 94204 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 ASUS ) @ 0x000f59c0
ACPI: RSDT (v001 ASUS P3B_F 0x30303031 MSFT 0x31313031) @ 0x17ffc000
ACPI: FADT (v001 ASUS P3B_F 0x30303031 MSFT 0x31313031) @ 0x17ffc080
ACPI: BOOT (v001 ASUS P3B_F 0x30303031 MSFT 0x31313031) @ 0x17ffc040
ACPI: DSDT (v001 ASUS P3B_F 0x00001000 MSFT 0x0100000b) @ 0x00000000
Built 1 zonelists
Kernel command line: BOOT_IMAGE=lin2_6 ro root=1605 pci=routeirq
Initializing CPU#0
CPU 0 irqstacks, hard=c0482000 soft=c0481000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Detected 751.857 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 385328k/393200k available (2465k kernel code, 7280k reserved, 945k data, 152k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1486.84 BogoMIPS (lpj=743424)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383f9ff 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel Pentium III (Coppermine) stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
ACPI: setting ELCR to 0200 (from 0e20)
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xf08b0, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20041105
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 13 devices
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
** Routing PCI interrupts for all devices because "pci=routeirq"
** was specified. If this was required to make a driver work,
** please email the output of "lspci" to bjorn.helgaas@hp.com
** so I can fix the driver.
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9
PCI: setting IRQ 9 as level-triggered
ACPI: PCI interrupt 0000:00:04.2[D] -> GSI 9 (level, low) -> IRQ 9
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
PCI: setting IRQ 5 as level-triggered
ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI interrupt 0000:00:0b.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI interrupt 0000:00:0d.0[A] -> GSI 9 (level, low) -> IRQ 9
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 11 (level, low) -> IRQ 11
pnp: 00:02: ioport range 0xe400-0xe43f could not be reserved
pnp: 00:02: ioport range 0xe800-0xe80f has been reserved
Simple Boot Flag at 0x3a set to 0x1
Machine check exception polling timer started.
audit: initializing netlink socket (disabled)
audit(1110309805.474:0): initialized
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Limiting direct PCI/PCI transfers.
ACPI: Power Button (FF) [PWRF]
ACPI: Processor [CPU0] (supports C1 C2)
ACPI: Processor [CPU0] (supports 8 throttling states)
lp: driver loaded but no devices found
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP(,...)]
lp0: using parport0 (interrupt-driven).
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
elevator: using anticipatory as default io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Linux Tulip driver version 1.1.13 (May 11, 2002)
ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 5 (level, low) -> IRQ 5
tulip0: MII transceiver #1 config 3000 status 7829 advertising 01e1.
eth0: Lite-On 82c168 PNIC rev 32 at 0001b000, 00:A0:CC:5C:C7:28, IRQ 5.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 0000:00:04.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdcMA, hddio
Probing IDE interface ide0...
hda: ATAPI 48X CDROM, ATAPI CD/DVD-ROM drive
hdb: CD-W512E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: WDC WD800BB-75CAA0, ATA DISK drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide2...
ide2: Wait for ready failed before probe !
Probing IDE interface ide3...
ide3: Wait for ready failed before probe !
Probing IDE interface ide4...
ide4: Wait for ready failed before probe !
Probing IDE interface ide5...
ide5: Wait for ready failed before probe !
hdc: max request size: 128KiB
hdc: Host Protected Area detected.
current capacity is 156250000 sectors (80000 MB)
native capacity is 156250080 sectors (80000 MB)
hdc: Host Protected Area disabled.
hdc: 156250080 sectors (80000 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(33)
hdc: cache flushes not supported
hdc: hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 >
hda: ATAPI 48X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
hdb: ATAPI 32X CD-ROM CD-R/RW drive, 2976kB Cache, UDMA(33)
libata version 1.10 loaded.
ieee1394: raw1394: /dev/raw1394 device initialized
USB Universal Host Controller Interface driver v2.2
ACPI: PCI interrupt 0000:00:04.2[D] -> GSI 9 (level, low) -> IRQ 9
uhci_hcd 0000:00:04.2: Intel Corp. 82371AB/EB/MB PIIX4 USB
uhci_hcd 0000:00:04.2: irq 9, io base 0xb400
uhci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard on isa0060/serio0
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
oprofile: using timer interrupt.
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
ip_conntrack version 2.1 (3071 buckets, 24568 max) - 300 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI wakeup devices:
PCI0 UAR1 UAR2 PS2K PS2M USB0
ACPI: (supports S0 S1 S4 S5)
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 152k freed
kjournald starting. Commit interval 5 seconds
Adding 755044k swap on /dev/hdc3. Priority:-1 extents:1
EXT3 FS on hdc5, internal journal
eth0: Setting full-duplex based on MII#1 link partner capability of 45e1.
ACPI: PCI interrupt 0000:00:0b.0[A] -> GSI 10 (level, low) -> IRQ 10
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel 440BX Chipset.
agpgart: Maximum main memory to use for agp memory: 321M
agpgart: AGP aperture is 64M @ 0xe4000000
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[fglrx] Maximum main memory to use for locked dma buffers: 314 MBytes.
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 11 (level, low) -> IRQ 11
[fglrx] module loaded - fglrx 3.11.1 [Aug 4 2004] on minor 0
Fire GL built-in AGP-support
Based on agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 321M
agpgart: Detected Intel 440BX chipset
agpgart: AGP aperture is 64M @ 0xe4000000
Power management callback for AGP chipset installed
[fglrx] AGP detected, AgpState = 0x1f000203 (hardware caps of chipset)
AGP: Found 2 AGPv2 devices
AGP: Doing enable for AGPv2
[fglrx] AGP enabled, AgpCommand = 0x1f000302 (selected caps)
[fglrx] free AGP = 54800384
[fglrx] max AGP = 54800384
[fglrx] free LFB = 55574528
[fglrx] max LFB = 55574528
[fglrx] free Inv = 0
[fglrx] max Inv = 0
[fglrx] total Inv = 0
[fglrx] total TIM = 0
[fglrx] total FB = 0
[fglrx] total AGP = 16384
 
Old 03-09-2005, 09:11 AM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
---------
>if you look in /etc/mtab then it shows what is currently mounted, in case it is mounted but you can't see it, as you suggest.
Nope, it's not mounted, just / and /procfs (I believe, going on memory)
---------

are your vfat -partitions also not mounted ?

egag
 
Old 03-09-2005, 11:18 AM   #7
zach_barrow
LQ Newbie
 
Registered: Mar 2004
Location: San Diego
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Nope, they're not mounted either. Here is my mtab without anything done after logging in as root.

/dev/hdc5 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
 
Old 03-09-2005, 12:13 PM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
take a look at /etc/rc.d/rc.S. ( the startup script )

from line 242
# mount non-root file systems in fstab (but not NFS or SMB
# because TCP/IP is not yet configured, and not proc because
# that has already been mounted):
/sbin/mount -a -v -t nonfs,nosmbfs,noproc

maybe you don't have that, or the "mount " command is not ok..

egag
 
Old 03-09-2005, 12:59 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,541

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
This is weird, at least you could add :
Code:
if ! grep /dev/hdc6 /proc/mounts; then
    mount /home
fi
...in your /etc/rc.d/rc.local as a temp fix
 
Old 03-09-2005, 02:43 PM   #10
zach_barrow
LQ Newbie
 
Registered: Mar 2004
Location: San Diego
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by egag
take a look at /etc/rc.d/rc.S. ( the startup script )

from line 242
# mount non-root file systems in fstab (but not NFS or SMB
# because TCP/IP is not yet configured, and not proc because
# that has already been mounted):
/sbin/mount -a -v -t nonfs,nosmbfs,noproc

maybe you don't have that, or the "mount " command is not ok..

egag
That command is there, and the mount command appears to work. Here is the results of running that command, which is the same as in my rc.S:
Code:
root@andromeda:/mnt/cdrom# /sbin/mount -a -v -t nonfs,nosmbfs,noproc
/dev/hdc2 on /boot type ext3 (rw)
/dev/hdc6 on /home type ext3 (rw)
/dev/hdc1 on /windowsxp type vfat (rw,noexec,nosuid,nodev)
/dev/hdc7 on /fat-d type vfat (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
And here is the mtab afterwards:
Code:
root@andromeda:/mnt/cdrom# cat /etc/mtab
/dev/hdc5 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/hdc2 /boot ext3 rw 0 0
/dev/hdc6 /home ext3 rw 0 0
/dev/hdc1 /windowsxp vfat rw,noexec,nosuid,nodev 0 0
/dev/hdc7 /fat-d vfat rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
Haven't tried the workaround, but I assume it will work. However, I'd like to get this figured out. I looked around in the other rc's to see if something was randomly unmounting all that stuff. Didn't find anything so far.
 
Old 03-09-2005, 07:21 PM   #11
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,541

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
Maybe try to set last fields of hdc1 and hdc7 lines in fstab to : 0 0
To check if they cause /home not being mounted at boot

You may want to check with noauto option as well

Last edited by keefaz; 03-09-2005 at 07:24 PM.
 
Old 03-10-2005, 11:24 PM   #12
zach_barrow
LQ Newbie
 
Registered: Mar 2004
Location: San Diego
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, let's close this one up. The problem is that there was a syntax error in the rc.modules script that I edited for the new kernel. The rc.modules script was exiting and I think everything after that in rc.S was not getting done. Fixed it and now my box almost runs right. Now I can't log into graphical mode unless I'm root, but I'll post that question in another thread. Thanks for the help everyone!
 
  


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
how to mount an old /home partition? snakeo2 Mandriva 6 12-20-2004 10:15 PM
fstab, new /home partition and cd-rom issues YBA^[x] Slackware 15 08-05-2004 12:50 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 08:45 AM
Using fstab to point to home partition justaguynsrq Slackware 10 01-26-2004 02:44 AM
mount a partition and swapon on boot(fstab??) edman007 Linux - Newbie 4 10-01-2003 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:20 PM.

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
Open Source Consulting | Domain Registration