LinuxQuestions.org
Visit Jeremy's Blog.
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 05-18-2012, 11:24 AM   #1
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 1
mounted drive missing after reboot


I mounted a drive I also added this new drive in /etc/fstab and I did a reboot the drive is no more mapped.

here my /proc/partitions
Code:
[ec2-user@ip-10-140-5-209 ~]$ cat /proc/partitions 
major minor  #blocks  name

 202        1    8388608 xvda1
 202       80    8388608 xvdf
here my fstab
Code:
[ec2-user@ip-10-140-5-209 ~]$ sudo cat /etc/fstab 
#
LABEL=/     /           ext4    defaults,noatime  1   1
tmpfs       /dev/shm    tmpfs   defaults        0   0
devpts      /dev/pts    devpts  gid=5,mode=620  0   0
sysfs       /sys        sysfs   defaults        0   0
proc        /proc       proc    defaults        0   0
/dev/xvdf   /dev/xvdb1  ext3    defaults        0   0


am I missing anything ?

I want the drive to be mounted even after restart.

Please advice me .
 
Old 05-18-2012, 01:01 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,514

Rep: Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436
which drive is missing? how did you mount it? you do not need sudo to execute cat /etc/fstab
 
Old 05-18-2012, 02:00 PM   #3
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by pan64 View Post
which drive is missing? how did you mount it? you do not need sudo to execute cat /etc/fstab
Code:
[ec2-user@ip-10-140-5-209 ~]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/xvda1             8362320   1911960   6366496  24% /
tmpfs                  3817396         0   3817396   0% /dev/shm
/dev/xvdf              8256952    168948   7668576   3% /dev/xvdb1
which drive is missing? xvdf


how did you mount it? mount /dev/xvdf /dev/xvdb1

if I restart I have to mount it again why ?
 
Old 05-18-2012, 03:08 PM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,514

Rep: Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436
this /dev/xvdf is a strange mount point for me. I do not know why did you choose this one. I suggest you to not use /dev at all. Try something outside, for example /xvdf.
 
Old 05-18-2012, 04:49 PM   #5
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by pan64 View Post
this /dev/xvdf is a strange mount point for me. I do not know why did you choose this one. I suggest you to not use /dev at all. Try something outside, for example /xvdf.
It worked. Thanks
 
Old 05-18-2012, 04:58 PM   #6
mikey99
Member
 
Registered: Nov 2008
Location: UK
Distribution: RHEL, Fedora
Posts: 68

Rep: Reputation: 12
Quote:
Originally Posted by fachhoch@gmail.com View Post
I mounted a drive I also added this new drive in /etc/fstab and I did a reboot the drive is no more mapped.

here my /proc/partitions
Code:
[ec2-user@ip-10-140-5-209 ~]$ cat /proc/partitions 
major minor  #blocks  name

 202        1    8388608 xvda1
 202       80    8388608 xvdf
I am assuming you are using Xen para-virtualized disks ?

/dev/xvdf is the whole disk.

/dev/xvdf1 is the first partition on the disk.

You did create a partition and put a file system on, yes?

Quote:
Originally Posted by fachhoch@gmail.com View Post
here my fstab
Code:
/dev/xvdf   /dev/xvdb1  ext3    defaults        0   0
am I missing anything ?
Try the following
Code:
mkdir /test
and update your /etc/fstab to read...
Code:
/dev/xvdf1    /test   ext3    defaults        1   2
Mike
 
  


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
[SOLVED] Safe to tune2fs a mounted volume to prevent disk checks at reboot? rjo98 Linux - Newbie 6 02-06-2012 05:37 PM
[SOLVED] /home/ghar goes missing after it is mounted on a new partition. Mr. ameya sathe Linux - Newbie 13 02-28-2008 08:54 AM
How to keep a mounted device after reboot? jacksonb Linux - Software 2 03-01-2006 02:17 PM
Missing iptables after reboot trucktime SUSE / openSUSE 1 02-16-2006 04:58 PM
NTLDR is missing after reboot robertko SUSE / openSUSE 37 11-10-2005 12:52 PM


All times are GMT -5. The time now is 03:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration