LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 0
auto mounting of hard disk partitions


Hi,

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.

Thanks.
 
Old 10-10-2004, 08:54 AM   #2
RestInPieces
Member
 
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, 11:58 AM   #3
rm1
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, 09:04 AM   #4
rddreamz
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 .
 
  


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


All times are GMT -5. The time now is 10:11 AM.

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