LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:27 AM   #16
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52

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, 03: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, 06:19 AM   #18
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
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



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

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

All times are GMT -5. The time now is 03:52 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
Open Source Consulting | Domain Registration