LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-02-2005, 11:33 AM   #1
zappos
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Rep: Reputation: 0
fstab settings and sfdisk etc.


I have repartitioned one of my drives that contained an NTFS partition and created a new single Linux partition using sfdisk.
I created a primary partition of type 83.

This is not the boot disk and contains none of the linux os stuff or the partitions that were created during install. However, I am having some problems.

I am not sure the type is correct. ie: 83
When sfdisk finished it didnt do a format . is this normal and should I format it and if so how!?
Lastly, the entry in the fstab was for the ntfs partition. I have changed the entry to

/dev/hde1 /mnt/lin2 ext2 defaults 0 0

but it doesnt like this. Is ext2 the correct type? and I am not even sure what 'defaults' and 0 0 do!

Any help would be greatly appriciated!

Thanks.
(major newbie but determined to get away from Windoze!!)
 
Old 03-02-2005, 12:25 PM   #2
Bre_Rea
LQ Newbie
 
Registered: Jan 2005
Location: Pearland, Texas USA
Distribution: PCLinuxOS
Posts: 14

Rep: Reputation: 0
Fstabs

Zappos

Yes type 83 is the default linux partition type. After creating your partition you will need to format it using the example below after deciding to use ext2 or ext3

# from the Gentoo handbook, Preparing the disks and file systems.
http://www.gentoo.org/doc/en/handboo...?part=1&chap=4

ext2 doesn't have metadata journaling, which means that routine ext2 file-system checks at startup time can be quite time-consuming.

ext3- ext3 is the journaled version of the ext2 file system, providing metadata journaling for fast recovery in addition to other enhanced journaling modes like full data and ordered data journaling. ext3 is a very good and reliable file system. It has an additional hashed b-tree indexing option that enables high performance in almost all situations. In short, ext3 is an excellent file system.


To format: (ext2) at bash prompt type ( # is comments not commands)
for ext2 type 'mke2fs /dev/hde1'
for ext3 type' mke2fs -j /dev/hde1'
#This is assuming your hard drive is listed correctly as hde1

Now then about the fstab entry assuming the hard drive is listed correctly your entry would need revised.. from Gentoo handbook, configuration file systems and Fstab..

http://www.gentoo.org/doc/en/handboo...?part=1&chap=8


dev/hde1 /mnt/lin2 ext2 defaults 0 0
dev/hde1 /lin2 ext2 noatime 0 1 # /mnt is not needed

<---------- still a newbie also, learned allot installing Gentoo the handbook helped.
 
Old 03-02-2005, 12:48 PM   #3
zappos
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Excellent. Thanks Bre_Rea. That did the trick nicely.

Still not sure what the default and 0 0 numbers are about but I'll trawl through the manuals!

Thanks again. It's like learning to walk again! Still, worth it in the end me thinks.
 
  


Reply



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
sfdisk problem jobesd Linux - General 12 05-04-2020 08:22 AM
Proper umask settings for /etc/fstab? stefanlasiewski Linux - General 6 06-05-2009 06:27 PM
fstab settings spaceballs Slackware 5 03-13-2005 10:21 PM
/home partition will not mount at boot despite fstab settings zach_barrow Slackware 11 03-10-2005 10:24 PM
Simple problem FSTAB File - User settings 'uid=xxx' crazyswede Linux - Networking 7 02-19-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 AM.

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