Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Create file system on Linux 9 and change fstab file

Posted on 2006-10-23
2
Medium Priority
?
233 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 1000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

650 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