LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2003, 03:47 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
New Hard Drive


Adding a new HDD to my computer. It is /dev/hdb. I used fdisk to partition it. Deleted the old partitions, added a new primary partition, and then formatted it using mke2fs. When I use fdisk and hit "p" to print the partition table, I see:

Disk /dev/hdb: 255 heads, 63 sectors, 9732 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 9732 78172258+ 83 Linux

However, if I try to mount the drive:

# mount /dev/hdb1 /data
mount: fs type ntfs not supported by kernel

Help?
 
Old 02-10-2003, 04:00 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
add the 'type' definition. Did you make the filesystem ext2 or ext3? Try this:
Code:
# mount -t ext3 /dev/hdb1 /data
 
Old 02-10-2003, 07:07 PM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Didn't work. Got the following error:

mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
or too many mounted file systems

Any other ideas?

Thx for the help.
 
Old 02-11-2003, 01:08 AM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I was reading the mke2fs manpage, it it seems that if you use the command with no arguments it defaults to ext2, so try what I suggested above except with 'ext2', and if that doesn't work you may want to try redoing the filesystem. It might work better if you use mkfs.ext3 instead of mke2fs, although I'm not really sure of the difference, except that it explicitly creates ext3.
 
Old 02-11-2003, 11:03 AM   #5
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Okay, I can't try that until after work, so it'll be a while before I can get back to you on that. In the meantime, how would I "redo the file system" as you refer to it?
 
Old 02-11-2003, 01:15 PM   #6
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
guage, if you type "df -a -T" at the prompt. It will tell you what kind of partition you have created on your new drive.
 
Old 02-11-2003, 01:16 PM   #7
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
actually, this will show everything about your hardrives.
 
Old 02-11-2003, 01:57 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
how would I "redo the file system
What I mean is simply rerun the make filesystem command, try cojo's suggestion to find the fs type though...I was looking for that myself.
 
Old 02-11-2003, 02:07 PM   #9
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
Bulliver, I love your domain name

I wish I could comeup something like that.
 
Old 02-11-2003, 02:10 PM   #10
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Thumbs up

Okay, I was able to mount it with the following command:

mount -t ext2 /dev/hdb1 /mountpoint


I ran the df command as you said, cojo, and it was indeed an ext2 partition. Thanks again for the help, man. You rock.


As for all you other helpful people who are so dilligently trying to alleviate my ignorance, I have a host of other questions for you sparked by this issue:

1) Why do you sometimes have to mount files with the -t option and other times it's not necessary? (I mount a USB backup drive without it)

2) How can I have these mount via fstab instead of just adding a mount command in rc.local? I've tried to add both my hdb1 and sda1 drives to my fstab, but it didn't work (and these mount normally otherwise)

3) How are ext2 and ext3 different?

4) Can you add NTFS support to your kernel in some fashion? (if this is terribly complicated, just say so and let's drop it)

5) How can you unmount file systems?


Thanks for all the help, guys. You make this message board the best source of Linux information on the internet that I've found so far, and I'm sincerely thankful for it.
 
Old 02-11-2003, 02:24 PM   #11
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
1) You don't need to specify the type if it is listed in your /etc/fstab, in fact, if it is in fstab you only need to run 'mount mountpoint' and it will work.

2) open the file in your favorite editor and add something like:

Code:
/dev/hdb1 /mountpoint ext2 defaults 0 0
read 'man fstab' for all the gritty details.

3) ext3 is ext2 with journaling. This makes checking the filesystem faster after an unclean shutdown. You can change your filesystem to ext3 without losing any data with tune2fs (read the manpage) if you want.

4) kernel version 2.4.20 has read support, but the write support is experimental, and not reccomended (stupid proprietary microsoft!!) You may have to recompile your kernel, but I have seen some posts here that seem to suggest you can add a module to get NTFS support without recompiling.

5) umount /mountpoint (notice there is no 'n')
 
Old 02-11-2003, 02:28 PM   #12
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
Bulliver, I love your domain name
He he, thanks. badcomputer has been my hostname ever since I started using Linux, so it seemed natural. The no-ip bit is because I'm too cheap (poor?) to register my own FQDN...
 
Old 02-11-2003, 02:38 PM   #13
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
guage, I just emailed you the rpm that you need to install for NTFS access. Like bulliver said, this is a read only support. I won't tried to write on it from Linux. Too many horror story about it.
 
Old 02-11-2003, 03:09 PM   #14
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Thanks, bro.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 03:24 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 02:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration