Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-10-2004, 08:47 AM   #1
LQ Newbie
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
auto mounting of hard disk partitions


I have started using linux since last 2 months and I am mostly newbi. I am using PXELINUX which is used to as thin clients to connect windows server.
Here the local devices ( CDROM & FLOPPY DRIVE) are mounted automatically but the Hard Disk Partitions are not mounted. While going through initialisation script in /etc/init.d/rcS I found that the ide devices is already detected but not mounted. I manually gave the command to mount the 1st patition
mount -t vfat /dev/discs/disc0/part1 /mnt/hd and the partition was mounted.

Now I want a script to run this under various hardware and it should auto detect all the hard disk partitions present and mount them automatically. Also is it possible to detect type of partition like fat32, ntfs, ext3 etc and mount them accordingly.

Old 10-10-2004, 09:54 AM   #2
Registered: Aug 2004
Location: In front of a CRT monitor
Distribution: Slackware-current
Posts: 108

Rep: Reputation: 15
well.. why not just add them in the fstab ?
Old 10-10-2004, 12:58 PM   #3
LQ Newbie
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I want to use the Bootable CD under different hardware and the
no of partitions are not known. So how to detect how many
partitions are present and mount them accordingly.
Old 11-08-2004, 10:04 AM   #4
LQ Newbie
Registered: Jul 2003
Posts: 24

Rep: Reputation: 15
I think u know where u have connected your harddisk.So depending upon that it will be disc0 or 1 ...
Now run
fdisk /dev/discs/disc0(or 1 or whatever your disk no is)
it will show u the list of partitions with details .


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
mounting hard drive partitions oldforce SUSE / openSUSE 6 04-01-2005 05:09 AM
Which sizes on hard-disk partitions? andersh3 Linux - Newbie 1 05-28-2004 11:22 AM
How do I access my other hard disk partitions?? Bilal Linux - Newbie 4 12-21-2003 07:17 AM
Hard Disk Partitions thenebula Linux - Newbie 8 10-24-2003 11:16 PM
Hard Disk Partitions bumsbunny Linux - Newbie 5 07-10-2001 09:10 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration