Solved

Create file system on Linux 9 and change fstab file

Posted on 2006-10-23
2
225 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 40

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get maximum transfer speed over LAN 4 81
i can not do linux commands in cygwin windows 10 6 74
Video Streaming 6 72
Bash script - Exit out of choice loop 2 27
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

776 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