LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-24-2008, 12:03 PM   #1
yasawardene
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
cannot mount (access)hard disk files


When I used Damn small linux (Pendrive)and ubuntu 6.06 (live CD) I cannot access my hard drive. How do I mount my hard drive?
 
Old 08-24-2008, 12:17 PM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
First you need to find out what partition in /dev your hard drive is. Run this command:

Code:
ls /dev | grep -E "[hs]da[0-9]"
This will give you a listing of your hard drive partitions. From there you need to figure out which one is the partition your looking for.

To do that, you need to try to mount it and then inspect the contents as root or sudo:

Code:
mkdir /mnt/mydrive
or
sudo mkdir /mnt/mydrive
From there you need to run the following command on the list found above:

Code:
mount /dev/<from list> /mnt/mydrive
or
sudo mount /dev/<from list> /mnt/mydrive
Inspect the contents of the drive and if it's not the one unmount it and try another:

Code:
umount /mnt/mydrive
or
sudo umount /mnt/mydrive
Good Luck
 
Old 08-24-2008, 12:26 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
It might be better to run "fdisk -l" to see the partitions. That way, you'll also get filesystem info.
 
  


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
Need to access files on 2nd SATA hard drive but can't mount Io3 Linux - Newbie 1 05-12-2008 04:40 PM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
How to mount the Hard disk ariestruong Linux - Newbie 9 03-25-2006 12:11 AM
Trying to mount a second hard disk clucas Linux - Newbie 8 11-11-2004 08:53 PM
How to mount a New Hard Disk ! ? bennethos Linux - Newbie 6 10-16-2003 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:37 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