LinuxQuestions.org
Register a domain and help support LQ
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 10-02-2005, 07:20 AM   #1
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 17.3
Posts: 192

Rep: Reputation: 31
Please, help me design my fstab


Hi !

I have just installed Linux Ubuntu. Now, I want to mount my Windows FAT 32 partitions so I can access them from Linux. I want them to be mounted everytime I boot Linux.

The partitions I want to mount is:

hda 1
hda 2
hda 3
hdb1
My floppy drive

Here is my fstab file:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda5       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda6       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdd        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
Could someone please help me design the fstab file?
 
Old 10-02-2005, 07:27 AM   #2
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
Which patition is the FAT partition?

Let's say it is /dev/hda6

Then fstab will look like this:

/dev/hda6 /mnt/windows vfat rw,user 0 0

You have to create the /mnt/windows directory, of course.
 
Old 10-02-2005, 07:27 AM   #3
felixc
Member
 
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Hi,

I'm also a complete newbie, so I'm sorry I can't answer your whole question. I can, however, help you with the floppy drive aspect. There is an easy workaround that makes it so that you don't have to mount DOS floppies to use them (or at least there is a workaround on Slackware running bash). Simply use the commands you can see here http://www.yolinux.com/TUTORIALS/Lin...SFloppies.html and refer to the drive as a: like you would under Windows. Good luck with the rest, and hope this works/is relevant to your system setup! Like I said, I know nothing about any of this, so don't be surprised if it doesn't work. Cheers,

-Felix
 
Old 10-02-2005, 07:37 AM   #4
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
http://ubuntuguide.org/#automountfat
 
Old 10-02-2005, 08:13 AM   #5
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 17.3
Posts: 192

Original Poster
Rep: Reputation: 31
Thank You for Your replies !
Quote:
Originally posted by heema
http://ubuntuguide.org/#automountfat
I want to try this.

I have to log into root to edit fstab. But, surprisingly, I can't log into root on my new system. I have a password that I use at boot and at accessing the system settings. But why doesn't this password work in the Terminal? I haven't asigned any other password.

Here is the output:
Code:
thort@dhcppc0:~$ su
Password:
su: Authentication failure
Sorry.
thort@dhcppc0:~$
Very strange !
 
Old 10-02-2005, 09:15 AM   #6
felixc
Member
 
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Hi,

Now I'm no pro, and I've never ever used Ubuntu, but I do recall hearing something about Ubunto not having a default root user. Instead, the first user created has to give the superuser privilidges to someone using (I believe) the "sudo" command. Hope this helps, I haven't researched this so I don't know exactly how it works, I just saw it mentioned in an ubunto review. Good luck,

-Felix
 
Old 10-02-2005, 02:01 PM   #7
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 17.3
Posts: 192

Original Poster
Rep: Reputation: 31
Thanks felixc !

I've found the solution to my root login problem at http://ubuntuguide.org

This is how to log into root:
Code:
thort@dhcppc0:~$ sudo -s -H
Password:
root@dhcppc0:/home/thort#
Now I can go on with my Windows partitions mount problem and edit my fstab file.

Last edited by thort; 10-02-2005 at 02:07 PM.
 
Old 10-02-2005, 04:11 PM   #8
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 17.3
Posts: 192

Original Poster
Rep: Reputation: 31
Hi again !

The solution:
Code:
/dev/hda1       /mnt/Windows_C  vfat    rw,user 0 0
/dev/hda2       /mnt/Windows_D  vfat    rw,user 0 0
/dev/hda3       /mnt/Windows_E  vfat    rw,user 0 0
/dev/hdb1       /mnt/Windows_F  vfat    rw,user 0 0
These lines I had to add in the fstab file to make my Windows partitions mount at bootup.
 
  


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
Linux for Graphic Design, web design, and publishing maelstrom209 Linux - Software 8 07-17-2011 12:35 PM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 06:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 06:55 PM
OS Design Shak Programming 2 08-26-2002 05:12 PM


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