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 10-04-2008, 10:30 AM   #1
liquidcourage1
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
Go to /dev/sda1 in commnd line?


I'm extremely new to linux. One of our servers has a USB drive mounted and is almost full.

How do I navigate to the drive? I know how to list the drives (df -h) and move through most directories (cd), but I don't know how to get to this drive to figure out which files are consuming all the space.

And yes, I did try a search, but my terms didn't find anything.

Any help would be greatly appreciated.
 
Old 10-04-2008, 10:50 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by liquidcourage1 View Post
I'm extremely new to linux. One of our servers has a USB drive mounted and is almost full.

How do I navigate to the drive? I know how to list the drives (df -h) and move through most directories (cd), but I don't know how to get to this drive to figure out which files are consuming all the space.

And yes, I did try a search, but my terms didn't find anything. <-- What nothing at all!!?

Any help would be greatly appreciated.
Anyway to answer your question. Type
Code:
mount
this will show the directory where your /dev/sda(x) is mounted. Now cd to the mount point i.e.
Code:
cd /<insert mount point here>
 
Old 10-04-2008, 10:58 AM   #3
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 371

Rep: Reputation: 40
ok, so run the mount command first, and find where your USB drive is mounted. the you can run:

cd <mount point of usb>

and that gets you to your usb drive.

but if you want to find big files, then you can run:

Code:
find <usb mountpoint> -size +100M
-replace <usb mountpoint> with your actual mount point. it might be /mnt/sda1 or /media/sda1, something like that

this command will find any file larger than 100 MB



good luck,
rabbit2345 ^_^

Last edited by rabbit2345; 10-04-2008 at 11:03 AM.
 
  


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
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 01:52 AM
USB Detection; when /dev/sda1 or /dev/sdb1 ravime Linux - Hardware 6 09-12-2007 07:15 AM
Audio mixer - commnd line tool RGummi Linux - General 3 01-17-2007 01:42 PM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 05:54 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 10:37 AM


All times are GMT -5. The time now is 08:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration