Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-30-2007, 10:39 AM   #1
LQ Newbie
Registered: Dec 2003
Location: Wisconsin, USA
Distribution: Debian 'lenny', Knoppix, Ubuntu
Posts: 13

Rep: Reputation: 0
Question Mount hdc as hda instead (DSL 3.2, Grub)


I'm not really a linux n00b per se, but this question strikes me as n00bish. It feels like this is something I should have known by now. :-P

I'm working on these digital sign "image kiosk" type applications at work. They are mini-itx boards that boot up off of Compact Flash. I'm using feh and unclutter, so it's a lot like various "digital picture frame" DIY projects around the net. The compact flash is partitioned like this:

[512MB] FAT32 - Pictures for the "slideshow"
[100MB] ext2 - DSL KNOPPIX image, Grub settings
[400MB] ext2 - /home, feh.unc & unclutter.dsl myDSL extensions

Here's what my grub menu.lst looks like:

default 0
timeout 2

title DSL with mydsl, restore, persistentancy, hostname, and passwords
kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noapm noscsi nousb nodma noswap frugal mydsl=hda3 home=hda3 host=imsdemo
initrd /boot/minirt24.gz
My problem is this - grub points to hda3 as my home & dsl extensions directory, both of which need to be mounted in order for the "kiosk" to work. Also, my script that runs the show (called from /home/dls/.xinitrc) does a mount /dev/hda1 in order to get at the pictures partition.

HOWEVER, on certain boards we use that don't need the CF-IDE adapter & IDE cable, grub boots up DSL fine but then proceeds to label the flash card as /dev/hdc (NOTE the 'c' instead of an 'a') - this royally messes everything up. No myDSL extension, no .xinitrc or scripts in /home, and even if the script was there to run it would access the wrong partition. So, I have to modify my scripts and the grub menu.lst in order to fix the problem.

My question (finally) - Is there a way to force DSL (or linux in general?) to mount this first and only IDE disk drive as hda instead of hdc?

Adam N
Old 03-30-2007, 07:49 PM   #2
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
Well, this is going to depend on a few things. It won't just make it hdc for no reason, so the question is what is it trying to make hda and hdb? I'm going to guess a cdrom drive or something of the like.

My guess is that you have some drivers built into the kernel for those, and its finding those devices first for whatever reason (BIO order, or something else). So check the BIOS first, if that doesn't work, figure out what driver its using for those first two devices and recompile it in the kernel as a module and modprobe that after its booted.

I had nearly the same problem at one point on a different distro and that fixed it.


damnsmalllinux, harddrive

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
hda hdb hdc aydindemirci Linux - Newbie 7 02-16-2006 01:55 AM
How to shift hard disk from hda to hdc ? prabhatsoni Linux - Hardware 5 08-04-2005 06:44 PM
Moving a Disk from HDC to HDA? ashleyfrazer Linux - Newbie 4 06-29-2004 05:30 AM
hda windows, hdc linux dataport Linux - Newbie 4 01-21-2004 07:26 PM
GRUB error WinXP hda, Linux hdc oLEG Linux - General 4 06-26-2003 01:15 PM > Forums > Linux Forums > Linux - Newbie

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

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