Solved

Create file system on Linux 9 and change fstab file

Posted on 2006-10-23
2
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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