public inbox for blinux-list@redhat.com
 help / color / mirror / Atom feed
* Mounting Dos Partition on Bootup
@  John J. Boyer
   ` Thomas Stivers
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: John J. Boyer @  UTC (permalink / raw)
  To: blinux-list

Hello,
I would like to mount my dos and wWindows partition on boot-up, without
having to log in a root to do so. What file needs to be changed? More
generally, which files control what Linux does on boot-up?
Thanks.
John





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Mounting Dos Partition on Bootup
   Mounting Dos Partition on Bootup John J. Boyer
@  ` Thomas Stivers
   ` Dave Mielke
   ` Rafael
  2 siblings, 0 replies; 8+ messages in thread
From: Thomas Stivers @  UTC (permalink / raw)
  To: blinux-list

The file is /etc/fstab. Read man fstab to see the syntax or you can probably
pick it up from the existing file.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Mounting Dos Partition on Bootup
   Mounting Dos Partition on Bootup John J. Boyer
   ` Thomas Stivers
@  ` Dave Mielke
     ` Janina Sajka
   ` Rafael
  2 siblings, 1 reply; 8+ messages in thread
From: Dave Mielke @  UTC (permalink / raw)
  To: blinux-list

[quoted lines by John J. Boyer on December 14, 2001, at 13:48]

>I would like to mount my dos and wWindows partition on boot-up, without
>having to log in a root to do so. What file needs to be changed?

/etc/fstab. Specify vfat for a Windows partition, and MSDOS (to avoid
accidentally creating a long file name) for a DOS partition.

>More
>generally, which files control what Linux does on boot-up?

Lots of them.

-- 
Dave Mielke           | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: dave@mielke.cc | Canada  K2A 1H7   | if you're concerned about Hell.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Mounting Dos Partition on Bootup
   ` Dave Mielke
@    ` Janina Sajka
  0 siblings, 0 replies; 8+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: blinux-list

On Fri, 14 Dec 2001, Dave Mielke wrote:

> [quoted lines by John J. Boyer on December 14, 2001, at 13:48]
> 
> >I would like to mount my dos and wWindows partition on boot-up, without
> >having to log in a root to do so. What file needs to be changed?
> 
> /etc/fstab. Specify vfat for a Windows partition, and MSDOS (to avoid
> accidentally creating a long file name) for a DOS partition.
> 
Do you also need non-root access to read/write on those partitions? 
Something like:

/dev/hda6  /data  vfat  uid=500,gid=500,umask=002,exec,dev,suid,rw 1 0




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Mounting Dos Partition on Bootup
   Mounting Dos Partition on Bootup John J. Boyer
   ` Thomas Stivers
   ` Dave Mielke
@  ` Rafael
     ` Georgina
  2 siblings, 1 reply; 8+ messages in thread
From: Rafael @  UTC (permalink / raw)
  To: blinux-list

On Fri, Dec 14, 2001 at 01:48:28PM -0600, John J. Boyer wrote:
> Hello,
> I would like to mount my dos and wWindows partition on boot-up, without
> having to log in a root to do so. What file needs to be changed? More

/etc/fstab
file keeps track of partitions and how they get mounted. For example:
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0

automaticaly mounts floppy and
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0

mounts CD drive.

For DOS partitions you would need to have a mounting point,
/mnt/dos  for example and have an entry in fstab file

/dev/hdb1	/mnt/dos msdos noauto,owner,rw 0 0

> generally, which files control what Linux does on boot-up?

That's all under /etc. More specificaly /etc/rc.d and other /etc/rc.* 
structure. Files that start with capital S are executed during bootup or 
switch into a particular level, while files with K kill services for that 
level.

/etc/rc?.d is the directory name for level you want to run. In most cases 
level 3 and level 5 are used. Level 1 is for system maintenance and level 
6 for reboot. To switch to different level after boot you run command 
init.

init 3
for level 3.

init 6 to reboot.
init 0 to shutdown.

Files in /etc/rc?.d are links to scripts in /etc/init.d.

There is more to this but it should give you an idea what's going on. 
Unfortunately, RedHat and Linux in general has scripts and network 
configuration too complicated to quickly follow one script after the 
other.

> Thanks.
> John
> 

-- 
Rafael




^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Mounting Dos Partition on Bootup
   ` Rafael
@    ` Georgina
       ` Rafael
  0 siblings, 1 reply; 8+ messages in thread
From: Georgina @  UTC (permalink / raw)
  To: blinux-list

Hi

To automatically mount devices use the auto flag and not the noauto as
suggested below.  Don't auto mount devices that have removable disks such as
floppies and cdroms.  So in that respect the cd and floppy examples below
are correct.  But as the original question is regarding msdos and vfat
partitions on fixed disks the auto flag is the correct one to use for the
task.


-----Original Message-----
From: blinux-list-admin@redhat.com
[mailto:blinux-list-admin@redhat.com]On Behalf Of Rafael
Sent: 14 December 2001 23:52
To: blinux-list@redhat.com
Subject: Re: Mounting Dos Partition on Bootup


On Fri, Dec 14, 2001 at 01:48:28PM -0600, John J. Boyer wrote:
> Hello,
> I would like to mount my dos and wWindows partition on boot-up, without
> having to log in a root to do so. What file needs to be changed? More

/etc/fstab
file keeps track of partitions and how they get mounted. For example:
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0

automaticaly mounts floppy and
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0

mounts CD drive.

For DOS partitions you would need to have a mounting point,
/mnt/dos  for example and have an entry in fstab file

/dev/hdb1	/mnt/dos msdos noauto,owner,rw 0 0

> generally, which files control what Linux does on boot-up?

That's all under /etc. More specificaly /etc/rc.d and other /etc/rc.*
structure. Files that start with capital S are executed during bootup or
switch into a particular level, while files with K kill services for that
level.

/etc/rc?.d is the directory name for level you want to run. In most cases
level 3 and level 5 are used. Level 1 is for system maintenance and level
6 for reboot. To switch to different level after boot you run command
init.

init 3
for level 3.

init 6 to reboot.
init 0 to shutdown.

Files in /etc/rc?.d are links to scripts in /etc/init.d.

There is more to this but it should give you an idea what's going on.
Unfortunately, RedHat and Linux in general has scripts and network
configuration too complicated to quickly follow one script after the
other.

> Thanks.
> John
>

--
Rafael



_______________________________________________
Blinux-list mailing list
Blinux-list@redhat.com
https://listman.redhat.com/mailman/listinfo/blinux-list




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Mounting Dos Partition on Bootup
     ` Georgina
@      ` Rafael
  0 siblings, 0 replies; 8+ messages in thread
From: Rafael @  UTC (permalink / raw)
  To: blinux-list

On Sat, Dec 15, 2001 at 11:33:20AM -0000, Georgina wrote:
> Hi
> 
> To automatically mount devices use the auto flag and not the noauto as
> suggested below.  Don't auto mount devices that have removable disks such as

Yeah I agree there, but there is no need for auto statement at all. If you
need access to dos partition all the time then mount it like other
partitions permanently.

I was in a hurry cutting and pasting from one part of email to the other
while installing RedHat 7.2 on a 4 CPU system before rushing to Christmas 
party.

> floppies and cdroms.  So in that respect the cd and floppy examples below
> are correct.  But as the original question is regarding msdos and vfat
> partitions on fixed disks the auto flag is the correct one to use for the
> task.
> 
> 

-- 
Rafael




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Mounting Dos Partition on Bootup
       [not found] <Pine.LNX.4.33.0112141345560.1034-100000@mawimain7-196.dsl. tds.net>
@  ` Tony Baechler
  0 siblings, 0 replies; 8+ messages in thread
From: Tony Baechler @  UTC (permalink / raw)
  To: blinux-list

Hi.  You probably got tons of answers but here goes anyway.  The short 
answer is to read the man page on /etc/fstab and make sure to use fat32 for 
Win 9x, otherwise long filenames will not show up.  If you are using 
Slackware, you are prompted for this during installation and it sets things 
up automatically.  The way I did it was to make a directory called /win.  I 
had subdirectories for all my drives under /win, like /win/c, /win/d, 
etc.  I had to fiddle with /etc/fstab a few times before I got it right and 
found the syntax confusing, but it was great once it worked.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Mounting Dos Partition on Bootup John J. Boyer
 ` Thomas Stivers
 ` Dave Mielke
   ` Janina Sajka
 ` Rafael
   ` Georgina
     ` Rafael
     [not found] <Pine.LNX.4.33.0112141345560.1034-100000@mawimain7-196.dsl. tds.net>
 ` Tony Baechler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).