LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-28-2007, 12:27 PM   #16
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 48

You need a place to mount to. That is called the mountpoint. Create a mountpoint like this:
mkdir /media/mystuff <-- Call it anything you like
At this point you can mount the partition manually, like this:
mount -t ext3 /dev/sdb1 /media/mystuff
The partition should be mounted and available by browsing to /media/mystuff. It will remain mounted until you manually unmount it (umount /meda/mystuff) or you reboot. To have it mount automatically, at boot, add an entry in /etc/fstab, like this:
/dev/sdb1 /media/mystuff ext3 defaults 0 0 (Pay attention to the spaces in this line).
The partition will then mount automatically whenever you boot your system.

You can't mount /dev/sda, /dev/sdb,/dev/sdc. Those are the drives. You can only mount /dev/sda1, dev/sda2,/dev/sdb1, /dev/sdb2, etc. Those are the partitions.
 
Old 11-29-2007, 04:41 AM   #17
tractng
Member
 
Registered: Nov 2007
Posts: 75

Original Poster
Rep: Reputation: 15
Got it to work. Below is what I used (sdb1 was already define during the OS installed).


--------------------------------------------------

fdisk /dev/sdb

n = add a partition, choose primary, next available partition
w = write table to disk and exit

mkfs -t ext3 /dev/sdb2

mkdir /mnt/vol1

mount /dev/sdb2 /mnt/vol1

fstab

/dev/sdb2 /mnt/vol1 ext3 defaults 0 0


What is that option -t (mkfs -t ext3) mean?

Also, do people write table to disk after creating the partition?
When I was doing it for drive sdc, I didn't get any message after writing the writing the table to disk (my guess is because disk was empty to begin with).

For sdb, I got some message saying something about the kernel still using the old table until a reboot then it will use the new table (I guess since part of the disk has been define during the OS so the table was in used.)

Thanks again Glenzo.

Tony
 
Old 11-29-2007, 07:19 AM   #18
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 48
Quote:
Originally Posted by tractng View Post
Got it to work.
Great! Glad it worked for you!
Quote:
Originally Posted by tractng View Post
What is that option -t (mkfs -t ext3) mean?
-t fstype Specifies the type of file system to be built. If not specified, the default file system type (currently ext2) is used.

Taken from man mkfs.
 
  


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
To load a new entry in /etc/fstab without rebooting grautu Slackware 9 08-02-2006 12:31 AM
entry into /etc/fstab wetnose23 Slackware 2 01-07-2006 05:30 PM
/etc/fstab entry ryedunn Linux - Newbie 1 01-17-2005 02:45 AM
adding an entry to /etc/fstab file and another query Tinku Linux - General 3 08-11-2004 09:35 PM
fstab entry albean Linux - Newbie 1 12-04-2002 02:33 PM


All times are GMT -5. The time now is 06:13 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