LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 01-29-2006, 09:30 PM   #1
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Rep: Reputation: 30
Adding partitions to fstab and mtab


I am using mandriva 2006 and I wanted to have a look at my slax partition(hdb10) to see why it wont boot.

When I [mount /dev/hbd10] it says it cant because its not in fstab or mtab?

I would like to add my other partitions so I can access them also.

Is this hard to do?

Thanks
 
Old 01-29-2006, 09:45 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
you have to be "root" in order to edit /etc/fstab


find your fstab file and post it here so we can help you edit it properly, after you do it a few times, it becomes second nature...

Last edited by 320mb; 01-29-2006 at 09:48 PM.
 
Old 01-29-2006, 09:52 PM   #3
patrokov
Member
 
Registered: Jan 2006
Location: Riviera Beach
Distribution: Slackware -current, ArchLinux
Posts: 59

Rep: Reputation: 15
if a drive is not in your fstab, you need to use the notation:

# mount -t [fstype] /dev/hdb10 /[mountpoint]

where /mountpoint is an existing empty directory and fstype is the filesystem of the partition such as xfs, ext3, etc.

As far as fstab goes, it's not too terribly difficult. Basically it just tells linux what the default mount options are so that you can mount the partition using the command you used in your post. It's in the format

/dev/hdb10 /mountpoint fstype options dumpoption fsckoption

You can safely omit the last two, because they default to 0

And of course man fstab is your friend.
 
Old 01-29-2006, 10:43 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
You can also use Moint Points->'Create resize..partitions' in the Mandrake Control Centre to mount the partition if you'd rather do it through a GUI than use fstab.
 
Old 01-29-2006, 11:07 PM   #5
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
Quote:
You can also use Moint Points->'Create resize..partitions' in the Mandrake Control Centre to mount the partition if you'd rather do it through a GUI than use fstab.
Yes I would prefer that.

I am looking at that now.I have 9 partitions on hdb and i dont think any have a mount point?

On hda I can see /mnt/windows,/,and /home.The last 2 are mandriva 2006.1.

Are these names or labels arbitrary?If I name the partitions on hdb /Slax,/Puppy,/DSL etc. will they still boot?

If so will mandriva add them automatically to fstab once they are labeled?

Thanks alot
 
Old 01-29-2006, 11:22 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Yeah click each partition and then click Mount Point and type in where you'd like it mounted. You can mount a partition anywhere you like as long as its a directory that's not already in use, ie. don't do something stupid like mount your hdb9 partition as /bin for example. /Slax, /Puppy etc. will all work fine.
 
Old 01-30-2006, 07:49 PM   #7
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
I have mounted all of my partitions.

When I open konqueror and type /mnt in the address bar I can still only see cdrom,floppy,home,and win?
Did I forget to do something?

Below is my /etc/fstab.
Can I use an editor to re-arrange the entries so they are in order?

Thanks alot

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda6 / ext3 defaults 1 1
/dev/hdb9 /dsl ext3 defaults 1 2
/dev/hda8 /home ext3 defaults 1 2
/dev/hda5 /kate2.2 ext3 defaults 1 2
/dev/hdb8 /mandy06.1home ext3 defaults 1 2
/dev/hdb6 /mandy06.1root ext3 defaults 1 2
/dev/hdc /mnt/cdrom auto umask=0022,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/windows ntfs umask=0022,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hdb11 /puplivecd ext2 defaults 1 2
/dev/hdb5 /puppy ext2 defaults 1 2
/dev/hdb10 /slax ext3 defaults 1 2
/dev/hdb3 /ubuntu ext3 defaults 1 2
/dev/hda7 swap swap defaults 0 0
 
Old 01-30-2006, 09:35 PM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Quote:
When I open konqueror and type /mnt in the address bar I can still only see cdrom,floppy,home,and win?
Did I forget to do something?
No, looking at your fstab file there you've mounted all your partitions in the root (/) directory ,eg. /dsl. If you wanted to have them all in the /mnt directory then move them there by using the Mandriva partition program again, or editing fstab and remounting the partitions. Either way is fine.

Quote:
Can I use an editor to re-arrange the entries so they are in order?
Yes if you want, AFAIK the order in /etc/fstab doesn't matter.
 
Old 01-30-2006, 09:47 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,968

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
By convenance distributions use /mnt or /media as a central location for removable media and other non linux associated filesystems. So cdrom, floppy and win are subdirectories under /mnt. The directories you created i.e /slax etc. are under / instead of /mnt.
 
Old 01-31-2006, 08:04 PM   #10
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
Thanks for the great info.I understand fstab and the file system a lot better.

I also learned that I like Konqueror a lot more now.I can find and view any file in my box with it,as long as I know /the/pathway.Combined with the f4 key which opens a root term within the file being viewed.What a great tool. Thanks again

Last edited by PipeDreams; 01-31-2006 at 08:06 PM.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
How to edit mtab/fstab g-string 3 Linux - Distributions 4 02-03-2006 04:27 PM
Hard drive partitions not set up in fstab/mtab odyssey84 Linux - Newbie 6 10-18-2005 07:59 AM
/etc/fstab or /etc/mtab praveenv Linux - Newbie 1 08-17-2004 04:03 AM
use mtab as fstab?hi rgiggs Mandriva 5 06-08-2004 12:47 PM


All times are GMT -5. The time now is 11:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration