Link to home
Start Free TrialLog in
Avatar of luyan
luyan

asked on

Create file system on Linux 9 and change fstab file

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



ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of luyan
luyan

ASKER

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