Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
changing filesystem type?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Jarhead
Guru
Guru


Joined: 26 Mar 2004
Posts: 474

PostPosted: Thu May 13, 2004 4:11 pm    Post subject: changing filesystem type? Reply with quote

I am using a Dell Inspiron 1100 with kernel 2.6.5-gentoo-r1. I set up my system to use ext3 filesystems for boot and root, but they show up as ext2 and xfs respectively. I have tried just altering the file in the past, but that doesn't work... Can I change this?
_________________
Hats off to everyone in leadership, developmental, or administrative capacities for Gentoo Linux. Your hard work is very much appreciated.
Back to top
View user's profile Send private message
Nate_S
Guru
Guru


Joined: 18 Mar 2004
Posts: 414

PostPosted: Thu May 13, 2004 4:14 pm    Post subject: Reply with quote

I'm confused, are you wanting to change the filesystem type or what it shows up as? Where is it showing up incorrectly? Also, could you post your fstab?
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Thu May 13, 2004 4:15 pm    Post subject: Reply with quote

I guess you didn't edit your /etc/fstab correctly.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Jarhead
Guru
Guru


Joined: 26 Mar 2004
Posts: 474

PostPosted: Thu May 13, 2004 4:20 pm    Post subject: Reply with quote

That is how my /etc/fstab showed up. I have just simply edited it in the past, but it wouldn't boot afterwards. My question is, how do I successfully make the change?
_________________
Hats off to everyone in leadership, developmental, or administrative capacities for Gentoo Linux. Your hard work is very much appreciated.
Back to top
View user's profile Send private message
Jarhead
Guru
Guru


Joined: 26 Mar 2004
Posts: 474

PostPosted: Thu May 13, 2004 8:22 pm    Post subject: Reply with quote

does anyone have any ideas?
_________________
Hats off to everyone in leadership, developmental, or administrative capacities for Gentoo Linux. Your hard work is very much appreciated.
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Thu May 13, 2004 9:38 pm    Post subject: Reply with quote

Post your current fstab and we'll help you.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
altorus
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2003
Posts: 89
Location: Melbourne, Australia

PostPosted: Thu May 13, 2004 11:26 pm    Post subject: Reply with quote

Yeah, your fstab would come in handy.

Does booting them is just ext2 file systems work?
Back to top
View user's profile Send private message
Jarhead
Guru
Guru


Joined: 26 Mar 2004
Posts: 474

PostPosted: Fri May 14, 2004 9:23 am    Post subject: Reply with quote

/etc/fstab
Code:

                                                                                                                             
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
                                                                                                                             
# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>
                                                                                                                             
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT               /boot           ext2            noauto,noatime          1 1
/dev/ROOT               /               xfs             noatime                 0 0
/dev/SWAP               none            swap            sw                      0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro               0 0
#/dev/fd0               /mnt/floppy     auto            noauto                  0 0
                                                                                                                             
# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0
                                                                                                                             
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
                                                                                                                             
none                    /dev/shm        tmpfs           defaults                0 0
                                                                                                                             


The machine boots and works fine, save an error that the root filesystem isn't ext2 during boot. Only problem is that it isn't doing what it is told. :-D
_________________
Hats off to everyone in leadership, developmental, or administrative capacities for Gentoo Linux. Your hard work is very much appreciated.
Back to top
View user's profile Send private message
blue.sca
l33t
l33t


Joined: 28 Aug 2003
Posts: 680
Location: Mainz, Germany

PostPosted: Fri May 14, 2004 9:35 am    Post subject: Reply with quote

Jarhead wrote:
Code:


/dev/BOOT               /boot           ext2            noauto,noatime          1 1
/dev/ROOT               /               xfs             noatime                 0 0
/dev/SWAP               none            swap            sw                      0 0


your machine boots with this? you have do change these lines to your needs, if boot-partition is the first partition on the first hd it should be /dev/hda1, not BOOT...
_________________
geek by nature, linux by choice
i want my avatar back... thank you
:wq
Back to top
View user's profile Send private message
vonhelmet
l33t
l33t


Joined: 06 Apr 2004
Posts: 770
Location: Somewhere in a school

PostPosted: Fri May 14, 2004 9:37 am    Post subject: Reply with quote

Jarhead wrote:
/etc/fstab
Code:

                                                                                                                             
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
                                                                                                                             
# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>
                                                                                                                             
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT               /boot           ext2            noauto,noatime          1 1
/dev/ROOT               /               xfs             noatime                 0 0
/dev/SWAP               none            swap            sw                      0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro               0 0
#/dev/fd0               /mnt/floppy     auto            noauto                  0 0
                                                                                                                             
# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0
                                                                                                                             
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
                                                                                                                             
none                    /dev/shm        tmpfs           defaults                0 0
                                                                                                                             


The machine boots and works fine, save an error that the root filesystem isn't ext2 during boot. Only problem is that it isn't doing what it is told. :-D


Well, it shouldn't work!
You should have to change those device names from /dev/ROOT to /dev/hda4 or whatever.

Very strange.
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Fri May 14, 2004 9:41 am    Post subject: Reply with quote

It's amazing your system boots with such a fstab! I suppose your root is mounted because of the root= parameter of grub if you boot with it. Swap is most likely not used.

As mentioned in the installation instructions, you need to replace the BOOT, ROOT and SWAP with your partition names and file system types, e.g. (mine, not yours, do not copy verbatim)
Code:
/dev/hde1       none            swap            sw              0 0

/dev/hda1       /boot           ext2            noauto,noatime  1 2
/dev/hda2       /               reiserfs        noatime         0 1
/dev/hda3       /tmp            reiserfs        noatime         0 1
/dev/hde2       /usr2           ext3            noatime         0 1
/dev/hdf3       /usr            ext3            noatime         0 1
/dev/hde3       /db             ext3            noatime         0 1
/dev/hdf1       /home           reiserfs        noatime         0 1
/dev/hdf2       /var            ext3            noatime         0 1

/dev/lvm/mirrors /mirrors       ext3            noatime         0 1

/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
/dev/cdroms/cdrom1      /mnt/dvdrom     iso9660         noauto,ro       0 0
/dev/cdroms/cdrom2      /mnt/cdrw       iso9660         noauto,ro       0 0

none                    /proc           proc            defaults        0 0
none            /dev/shm        tmpfs           defaults        0 0
Back to top
View user's profile Send private message
Jarhead
Guru
Guru


Joined: 26 Mar 2004
Posts: 474

PostPosted: Fri May 14, 2004 6:55 pm    Post subject: Reply with quote

my new fstab:

Code:

                                                                                                                             
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
                                                                                                                             
# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>
                                                                                                                             
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdc1               /boot           ext3            noauto,noatime          1 2
/dev/hdc2               none            swap            sw                      0 0
/dev/hdc3               /               ext3            noatime                 0 1
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro               0 0
#/dev/fd0               /mnt/floppy     auto            noauto                  0 0
                                                                                                                             
# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0
                                                                                                                             
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
                                                                                                                             
none                    /dev/shm        tmpfs           defaults                0 0


I'll give this a whirl and see how it goes.
_________________
Hats off to everyone in leadership, developmental, or administrative capacities for Gentoo Linux. Your hard work is very much appreciated.
Back to top
View user's profile Send private message
Jarhead
Guru
Guru


Joined: 26 Mar 2004
Posts: 474

PostPosted: Sat May 15, 2004 12:21 am    Post subject: Reply with quote

beautiful.... thank you!
_________________
Hats off to everyone in leadership, developmental, or administrative capacities for Gentoo Linux. Your hard work is very much appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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