Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fstab ouchers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
vericgar
Retired Dev
Retired Dev


Joined: 13 Dec 2002
Posts: 79
Location: Spokane, WA

PostPosted: Tue Mar 04, 2003 6:33 am    Post subject: fstab ouchers Reply with quote

I walked a friend through a gentoo install since he was being kind enough to install gentoo on the box and let me use it as a backup server... anyways... some files I was doing the config for him and would have him wget it from me... one of these such files was the fstab... but instead of saving as fstab, it saved as fstab.1

Now since I wasn't in front of the box (in fact it's several hundred miles away) I didn't notice this until now... the server's been up and running a few days now, and I do a df -h to see how much space there is and notice there is only 10 GB showing up on a 60GB hard drive.... umn... so I do a mount:

Code:

/dev/ROOT on / type xfs (rw,noatime)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /mnt/.init.d type tmpfs (rw,mode=0644,size=2048k)
tmpfs on /dev/shm type tmpfs (rw)


now I *know* this kernel doesn't support XFS, and the proof of that is a simple cat /proc/filesystems:

Code:

nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   shm
nodev   pipefs
nodev   binfmt_misc
        ext3
        ext2
nodev   ramfs
        iso9660
nodev   devfs
nodev   autofs


so my questions are>

1. What is the root partition mounted as (is my assumption of ext2 correct?)
2. If I fix the fstab and reboot, will the partition be alright?

side note: they were originally mke2fs -j..
can I safely mount it as ext3? or should I recreate the journal first?

Thanks!
_________________
+~+ Sometimes a good ole loving kick is all it needs +~+
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Tue Mar 04, 2003 6:48 am    Post subject: Reply with quote

Quote:
side note: they were originally mke2fs -j..

mke2fs -j == ext3 , u mount ur partition accordint to ur "mk" :-) keep in mind when u first edit /etc/fstab ... whatever u see there , are all diff examples , and i know it could be confusing good luck :D
Back to top
View user's profile Send private message
vericgar
Retired Dev
Retired Dev


Joined: 13 Dec 2002
Posts: 79
Location: Spokane, WA

PostPosted: Tue Mar 04, 2003 6:55 am    Post subject: Reply with quote

yes, I'm fully aware that the -j mean ext3... but if the kernel has automounted it has ext2 (if my assumption that it fell back on that is true), then does the journal need to be remade, or is it safe to mount a partition as ext3 after it's been mounted and written to as ext2?

[wow long run on sentence, does it make any sense? my English sucks and I grew up in the USA... that's public schools for ya]
_________________
+~+ Sometimes a good ole loving kick is all it needs +~+
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Mar 04, 2003 7:08 am    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
vericgar
Retired Dev
Retired Dev


Joined: 13 Dec 2002
Posts: 79
Location: Spokane, WA

PostPosted: Wed Mar 05, 2003 6:03 am    Post subject: Reply with quote

ok, I fixed the fstab (mv /etc/fstab.1 /etc/fstab) and rebooted... and everything seems to be working perfectly so far (only been back up for about 20 minutes or so though.......). working on copying all the data to their correct partitons now....

just FYI for anyone else who finds them in this situation....

1. The kernel autodetected that the root partition was ext2 compatible and did mount it as ext2

2. ext2 and ext3 are compatible enough that you can mount a partion ext2 and write to it and still have it work successfully mounting it as ext3 and using it.
_________________
+~+ Sometimes a good ole loving kick is all it needs +~+
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum