LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-12-2008, 05:06 AM   #1
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Rep: Reputation: Disabled
mount drive


I am running Ubuntu 8.10

I have a drive that I would like to mount on boot. I know that to do it would be to add a line to fstab. But I don't know how to fill in the extra items.

The drive is sdb5 and it's name is DATA.

Hopefully someone can lead me by the hand to do it.

Thanks,

José
 
Old 11-12-2008, 05:08 AM   #2
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
I'll probably be something like this:
/dev/sdb5 MOUNTPOINT FILESYSTEMTYPE defaults 0 0

Replce MOUNTPOINT with the empty folder on your filesystem where you'd like to mount it at and replace FILESYSTEMTYPE with the type of filesystem (ie. ext3, nfts-3g, xfs, etc.).
 
Old 11-12-2008, 05:55 AM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Quote:
Originally Posted by anonobomber View Post
/dev/sdb5 MOUNTPOINT FILESYSTEMTYPE defaults 0 0
That last number is the priority order for a filesystem scan. For example, you will see it is '1' for '/' and if other partitions are mounted for /home and so on, they will have higher numbers (usually just '2'). This ensures that if the file system checker decides two partitions must be checked at the same time, it will always give priority to '/'. This number should be '0' in some situations such as for the '/sys' virtual filesystem and for real partitions which aren't really checked by a filesystem scanner (swap, ntfs, fat ...).
 
Old 11-12-2008, 07:43 AM   #4
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Original Poster
Rep: Reputation: Disabled
ell, this is what I did:

/dev/sdb5 media/DATA vfat default 0 0

But obviously it is not right since it did not mount... even worse, I could not mount it manually.

Posibly the problem is with the "mount point" since I am not at all sure what that should be.

But thanks fo far!

José
 
Old 11-12-2008, 07:46 AM   #5
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Original Poster
Rep: Reputation: Disabled
Well, here is what I did:

/dev/sdb5 /media/DATA vfat defaults 0 0

But it is not right, since the drive did not mount, and even worse, I cannot mount it manually now.

I suspect the problem could be with "mount point" since I am not at all sure what that means.

Anyway, thanks for a start.
José
 
Old 11-12-2008, 08:10 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The "mount point" is any directory in the filesystem tree. If it does not exist, you have to create it before using the mount command.

eg:
mkdir /mnt/mydata
mount /dev/sda3 /mnt/mydata

Once you have an entry in fstab, you can mount using:
mount -a ## mounts everything in fstab
mount <mountpoint> ##mount the specific mountpoint defined in fstab
 
Old 11-12-2008, 10:52 AM   #7
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Original Poster
Rep: Reputation: Disabled
OK... thanks. I think I have the thing figured out OK now. Manythanks to you who helped.

José
 
  


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
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
Mount usb drive, umount and mount another drive arubin Linux - Hardware 9 01-17-2007 03:46 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:24 PM.

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