Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-16-2011, 10:52 AM   #1
LQ Newbie
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Device won't mount during boot - CentOS 5.4 on Amazon EC2 instance

I'm having a consistent problem with instances on Amazon EC2, which a lot of searching including here has resulted in no solution.

During boot I see the following message on the console (or "System Log" in the Amazon console):

Mounting local filesystems:  mount: /dev/sdg already mounted or /apps busy
(I'll append a extract from the full log below).

Once I log into the instance, I can access the filesystem so it's mounted somehow but I can't figure out what's going on:
# df -k /apps
Filesystem           1K-blocks      Used Available Use% Mounted on
-                     20642428    176208  19417644   1% /apps
If I force an unmount of the filesystem, then remount it then appears more normal:
# umount -f /apps
# mount -a
# df -k /apps
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdg              20642428    176208  19417644   1% /apps
Here's what's in /etc/fstab:

# cat /etc/fstab
/dev/sda1  /         ext3    defaults        0 0
/dev/sdb   /mnt      ext3    defaults        0 0
none       /dev/pts  devpts  gid=5,mode=620  0 0
none       /dev/shm  tmpfs   defaults        0 0
none       /proc     proc    defaults        0 0
none       /sys      sysfs   defaults        0 0
/swapfile1 swap      swap    defaults        0 0
/dev/sdg  /apps      ext3    defaults,noatime 0 0
Can anyone suggest some ideas of what's going on here? Or how to troubleshoot? I'd like to be able to start these up without having to login to fix things up manually.

===================== System Log Extract ==========
(elisions where I removed uninteresting stuff)
		Welcome to  CentOS release 5.4 (Final)
		Press 'I' to enter interactive startup.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Setting clock : Wed Feb 16 10:04:30 EST 2011 [  OK  ]

Starting udev: [  OK  ]

Setting hostname localhost.localdomain:  [  OK  ]

No devices found
Setting up Logical Volume Management: File descriptor 7 (/sys/kernel/hotplug) leaked on lvm.static invocation. Parent PID 231: /bin/bash
[  OK  ]

Checking filesystems
Checking all file systems.
[  OK  ]

Remounting root filesystem in read-write mode:  [  OK  ]

Mounting local filesystems:  mount: /dev/sdg already mounted or /apps busy

Enabling local filesystem quotas:  [  OK  ]

Enabling /etc/fstab swaps:  [  OK  ]

INIT: Entering runlevel: 4

Entering non-interactive startup
Starting background readahead: [  OK  ]

Bringing up loopback interface:  [  OK  ]

Bringing up interface eth0:  
Determining IP information for eth0... done.
[  OK  ]


Starting syslog-ng: [  OK  ]

Starting system message bus: [  OK  ]

Mounting other filesystems:  mount: /dev/sdg already mounted or /apps busy

Starting HAL daemon: [  OK  ]

Old 02-17-2011, 08:22 PM   #2
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
I had this issue when I wrote some deployment scripts for ec2. I ended up adding a sleep timer in between instance activation, and mounting the EBS volumes. I guess it's sort of a hack, but it worked for me.


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
Amazon EC2 + EBS security david19801 Linux - Security 1 01-10-2011 07:08 PM
Amazon EC2 + EBS security server david19801 Linux - Server 1 01-10-2011 06:03 PM
LXer: Amazon EC2 Micro: Barely Faster Than A Nokia N900? LXer Syndicated Linux News 0 01-03-2011 09:50 AM
LXer: Fedora 14 final released with Amazon EC2 support LXer Syndicated Linux News 0 11-03-2010 02:50 AM
How to built an amazon ec2 slackware AMI from scratch fietske Slackware 0 01-18-2010 04:55 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:21 AM.

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