LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-01-2006, 02:45 PM   #1
Sygnus X1
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Fedora Core 1
Posts: 19

Rep: Reputation: 0
Exclamation Mounting the 2.5" laptop drive in Fedora


I recently installed Fedora Core 4 on my laptop onto a USB hardrive. The installation went fine and everything is in working condition. Now that I have installed FC4, I am wondering if it is possible to mount the actual laptop drive. The laptop that I have is a IBM T43. I really need to know this because Windows wont boot (it has nothing to do with installing FC4) and I need to recover my data before I format it.


Thanks
 
Old 01-01-2006, 03:14 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Sure, just read 'man mount', 'man fdisk' and man fstab' minus the single quotemarks for the details.

To get you started, you might want to visit http://www.linux-ntfs.org/ because the Windows partition may be nfts and Fedroa does not support nfts partitions out of the box. First create the mountpoint you need to mount the Windows partition then mount the partition, as root type something like;

fdisk -l /dev/hda (that's the letter 'L' and not the number)
mkdir /media/Windows
mount -t ntfs /dev/hda1 /media/Windows -ro
 
Old 01-01-2006, 03:24 PM   #3
Sygnus X1
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Fedora Core 1
Posts: 19

Original Poster
Rep: Reputation: 0
I have the NTFS5 support already installed. I think the problem with this is that the laptop drive is not recognized as being /dev/hdax (x being a number). I have tried this method and it replies with: "mount: special device /dev/hda1 does not exist"

I appreciate your help
 
Old 01-01-2006, 04:15 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
How about using the command ' fdisk -l ' to list all drives and partitions it can see. Post the output. Normally a usb, firewire, or scsi drive is defined as /dev/sd** and IDE drives are /dev/hd**. Never created a bootable usb drive before so I cannot say how one is defined. Once you know the drives device block then mount as Lenard says.

Hope this helps
Brian1
 
Old 01-01-2006, 04:26 PM   #5
Sygnus X1
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Fedora Core 1
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, i tried that. Here is the output of fdisk -l:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 14593 117218241 7 HPFS/NTFS

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 14673 117756450 83 Linux
/dev/sdb3 14674 15183 4096575 82 Linux swap / Solaris
/dev/sdb4 15184 30401 122238585 5 Extended
/dev/sdb5 15184 15693 4096543+ b W95 FAT32
/dev/sdb6 15694 30401 118141978+ 7 HPFS/NTFS
-----------------------

/dev/sda is a USB drive I have hooked up
/dev/sdb is the USB drive linux is on (bootable)

I dont see my laptop hard drive in there. The laptop drive is a 2.5" Hitachi Travelstar, 40GB. I dont know what kind of connection notebook hard drives are (SCSI, IDE, SATA). Maybe knowing this would help so I could get some kind of drivers if needed.

EDIT: I did some googling and found that the Hitachi Travelstar uses ATA-6 interface. Maybe Fedora doesnt include support for this?

Last edited by Sygnus X1; 01-01-2006 at 04:34 PM.
 
Old 01-01-2006, 05:34 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You have a bigger problem with your laptop then not being able to boot Windows. Your Hitachi Travelstat ATA-6 drive is and IDE drive and is supported by Linux;

$ sudo hdparm -i /dev/hda

/dev/hda:

Model=TOSHIBA MK1031GAS, FwRev=AA204A, SerialNo=956P0408S
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=195371568
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: device does not report version:

* signifies the current active mode

From; http://www.3dvelocity.com/reviews/toshiba/mk1031gas.htm

Specifications:

* 100GB capacity
* 9.5mm High
* 12ms Average Seek Time
* ATA-6 Interface
* 100MB/sec Transfer Rate
* 8MB Buffer
* 300,000 MTTF Hours

Hi Brian1, how is the Acer laptop??
 
Old 01-01-2006, 05:36 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
A t43 should be IDE. You can check by going to www.ibm.com and read up on your systems spec. Why it would not see it seems odd. Is IDE disabled in the bios? Is this a custom kernel and if so is IDE in the kernel?

Brian1
 
Old 01-01-2006, 05:40 PM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Reread says that the internal drive is not accessible. Is it still good or has it failed?

Hi Lenard, Not so great on the Acer. It was defective and returned it. No other replacement available so got my money back. Seen one for sale at Staples. Same as yours minus 512mb ram for $799.00. Might get that one.

Brian1
 
Old 01-01-2006, 06:22 PM   #9
Sygnus X1
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Fedora Core 1
Posts: 19

Original Poster
Rep: Reputation: 0
The drive is completely accessable and has in no way failed. I just cant get into Windows. Windows boots and then justs stalls. It has nothing to do with installing Linux because I have had inux on here for a good while and have been duel booting.


But thats beside the point.

I don't believe I have a custon kernel, but I do have a custom initrd.
I used this line: "mkinitrd --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod /boot/usbinitrd.img 2.6.9-1.667smp" from the rescue CD to make the custom initrd. I simply followed the tutorial here: http://www.simonf.com/usb/ and that worked to get the USB drive booting. When I installed FC4 to the drive, I removed the internal drive from the laptop to force the boot image onto the USB drive. The way I boot is once the laptop turns on, instead of letting it boot to windows i press the Access IBM button. This brings up a screen where I can choose the boot device. Choosing the USB drive boots to FC4, because that is where GRUB is located.

Maybe it has to do with the custom initrd image?

Last edited by Sygnus X1; 01-01-2006 at 06:27 PM.
 
Old 01-01-2006, 07:03 PM   #10
Sygnus X1
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Fedora Core 1
Posts: 19

Original Poster
Rep: Reputation: 0
Well, I guess I fixed it.
I tried fdisk -l again after I rebooted and the laptopdrive showed up. I dont understand what I did differently this time, except not having 2 USB drives hooked up. The laptop drive shows up as /dev/sdb instead of /dev/hda. The Linux USB drive is now showing up as /dev/sda instead of /dev/sdb. Is it possible that somthing I have done would only allow for two special devices to be hooked up?
 
Old 01-02-2006, 01:52 PM   #11
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
A very strange setup you have. I can't really provide anymore help but wonder what you did as well. When you installed fc4 did you have both USB devices plugged in as well as having the laptop drive unplugged? If this is the way you did it and had installed fc4 on /dev/sdb then this would boot everytime fine as long as you had the other usb drive plugged in.

If the only drive plugged in was the fc4 usb drive then it would install to /dev/sda drive location. Look at /boot/grub/grub.conf and see how locations are defined. I really don't see how it would boot if when installing as single usb drive and later plug in two use drives where fc4 is the second now which would be /dev/sdb.

Redhat - Fedora Core distro work odd on this level. It uses /etc/mtab to define LABELS that is used in /etc/fstab. I have once installed two seperate versions of Redhat on their own drives and had issues. When the first version is installed all is well. I then installed the second with no issues to second drive. On restart it stalled out. Some how it seen both /etc/mtab from each distro and then tried mounting each but of coarse each were mounting to the same point like /home. Example /dev/sda2 was labeled /boot on the first distro and on the second /dev/sdb4 was labeled /boot. Somehow it seen both and tried mounting both to /boot. The fix was to edit /etc/fstab and define each one to there true point like '/dev/sda2 /boot' and not use 'LABEL=/boot /boot'. Once each /etc/fstab files were defined I no longer had boot issues. This might be one of the issues you are running into.

Now you removed the other usb drive and plugged in the fc4 usb drive and the laptop drive. The fc4 usb drive boots fine this way? Seems odd that would work since changes have been made on /dev level. If you have removed the other usb drive and only the fc4 usb drive then I would think you would have issues. Reason is looking at your /boot/grub/grub.conf defines the location of the partitions and where the boot images are located. They should have pointed to /dev/sdb*. Now if you only used the fc4 harddrive and left the other usb drive unplugged and also left the laptop drive unplugged then I don't see how fc4 would boot since it would look for the boot images on /dev/sdb, but the fc4 drive being the only drive is defined as /dev/sda now.

As to why it sees the laptop drive as /dev/sdb I have no clue.

Also see no reason why it limits to two drives. That does not make sense to me either.

Good luck
Brian1
 
Old 01-02-2006, 04:15 PM   #12
Sygnus X1
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Fedora Core 1
Posts: 19

Original Poster
Rep: Reputation: 0
Smile


Now that you pointed this out, I realised how odd it is that it would work when the drive is sda or sdb. I remember when I had FC1 one on my PC, if I had the HDD cables hooked up in the wrong order, nothing would boot. I think the reason that it works this time could be the fact that I had the internal drive removed during the installation. I reimaged the Windows drive and its booting correctly. No problems on that side. I have yet to get home and plug linux in to see if that still boots. I think it is worth a look to see why it was doing this. I'll check it out when I get home and post the results here.

Thanks for everyones help.

Last edited by Sygnus X1; 01-02-2006 at 04:16 PM.
 
Old 01-03-2006, 05:25 PM   #13
Sygnus X1
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat Fedora Core 1
Posts: 19

Original Poster
Rep: Reputation: 0
I have some information to add to the discussion.
There are 2 things that I have noticed:
1) GRUB recognizes the bootable Linux USB drive as being hd0
2) As long as I dont have the second USB HD plugged in, Linux has no problems finding and mounting it.

I'll be sure to post as I find out more about my odd situation.
 
Old 01-03-2006, 05:50 PM   #14
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
The hd0 is not really pointing to hd or sd. It means the first readable harddrive whether IDE, SCSI, USB. That is my guess. I have 2 servers and 1 desktop all using scsi drives and in grub the root is all hd0,0. I could be wrong but never really found any detail info on theat line. I know you can use something like that when using windows OS. If it is not in the right sequence you can change which one is actually the first drive even if it is the thrid drive in the chain. Use the map command in grub. Link to info on that.

http://www.linuxquestions.org/linux/...d_HD_with_Grub

Brian1
 
  


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
Tried mounting NTFS drive to /home "suse9.1 Personal Ed." scratch09 Linux - Newbie 5 11-11-2004 02:36 PM
fedora core1 install... on "L" drive, but how to boot to it? linuxcharlie Fedora - Installation 17 03-25-2004 03:00 PM
USB drive keeps mounting as "read only" I need to write to it. Lossenelin Linux - Hardware 1 02-12-2004 06:49 PM
install fedora with "L:" drive on Winxp machine linuxcharlie Fedora - Installation 5 02-01-2004 11:38 AM
Mounting windows "c" drive in Linux jsin Linux - Newbie 5 07-28-2003 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:49 AM.

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
Open Source Consulting | Domain Registration