Solved

Create file system on Linux 9 and change fstab file

Posted on 2006-10-23
2
223 Views
Last Modified: 2013-12-16
hi,
I have nstall second on my linux box. I used fdisk created 3partitions /dev/sdb1, /dev/sdb2, /dev/sdb3. I can see them fdisk -l.
I want to mount them to linux but have some errors.
1. I used command
      mount -t ext3 /dev/sdb1 /work1
 is ok without problem but I used another command
      mount -t ext3 /dev/sdb2 /work2
gave me error msg, Wrong fs type, bad option, bad superblock...

How can I make it work?

2. I want to put them in fstab file to mount them when I reboot machine
...
/dev/hdb1               /work1                  ext3    defaults        0 0
/dev/hdb2               /work2                  ext3    defaults        0 0
...
but they did not work.
What is the correct configuration?

Thanks,
Yan



0
Comment
Question by:luyan
2 Comments
 
LVL 39

Accepted Solution

by:
noci earned 250 total points
ID: 17792433
first you have to format them (like in dos: first fdisk -> format) on linux:
partition and then mkfs.ext2 -j /dev/sdb1 etc.
the -j makes it an ext3 filesystem.
If you need other options (more/less inodes etc.) please consult man mkfs.ext2

the in fstab you need to put the /dev/sdb1 .. /dev/sdb3 entries there (you had /dev/sdb1 .. /dev/sdb3 according to the first line of your question)
not /dev/hdb (unless you allready had a hdb device)
0
 

Author Comment

by:luyan
ID: 17798153
noci
Thanks,
I was missing the command mkfs.ext2 -j /dev/sdb2.
And I have replaced /dev/hdb with /dev/sdb.

Everything is fine.

thanks a lot.
Yan
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now