LinuxQuestions.org
Help answer threads with 0 replies.
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-12-2007, 12:25 PM   #1
pppaaarrrkkk
Member
 
Registered: Jun 2005
Location: Aylesbury UK
Distribution: Red Hat enterprise linux 6
Posts: 101

Rep: Reputation: 15
ls command


If I do this :

# mount /dev/hda2 /mnt/hda2

for example, then :

# cd /mnt/hda2
# ls -lF


there are no files listed.



I'm using Puppy linux. It doesn't matter whether it's hda2, hda4 etc.. However I do ls no files are listed.

For example, on hda4 I have Fedora installed, but Puppy lists nothing on hda4.

Why is this ?
 
Old 08-12-2007, 12:39 PM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
did you try to give a filesystem -t command with your mount command.
like mount -t ext3 /dev/hda2 /mnt/whatevers mointpoints name is
 
Old 08-12-2007, 12:41 PM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
Quote:
Originally Posted by odcheck View Post
did you try to give a filesystem -t command...
What he said. Then, perhaps use df to check whether the partition is actually mounted.

Rob.
 
Old 08-12-2007, 12:43 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Are you sure it is mounting successfully? run "mount" to see what is actually mounted.

Note that mounting often requires root privileges--but one would expect an error message if that were the issue.
 
Old 08-12-2007, 12:59 PM   #5
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
Quote:
Originally Posted by Robhogg View Post
What he said. Then, perhaps use df to check whether the partition is actually mounted.

Rob.
WHAT he said? what does he say ?

mount /dev/hda2 /mnt/hda2

where is "what he said...!!!"
there is no filesystem given
and of course as root if nothing special is applied...
and the just enter mount to the if something is mounted is of course also a good idea.
 
Old 08-12-2007, 01:20 PM   #6
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Try mount with the -v (verbose) option. It will tell you if the mount was successful, it will also tell more if something goes wrong.
 
Old 08-12-2007, 03:06 PM   #7
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
Quote:
Originally Posted by odcheck View Post
WHAT he said? what does he say ?
Sorry, should use proper English... intended as an expression of agreement with your suggestion.
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
Why after start of a command the invitation for input next command has not appeared. ukrainet Linux - General 3 06-24-2005 08:16 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM

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

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