LinuxQuestions.org
Visit Jeremy's Blog.
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 07-02-2012, 10:26 PM   #1
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Rep: Reputation: Disabled
Cant boot ubuntu because my hard drive ran out of space during ill advised download


I can only boot to a live cd command prompt. I want to delete stuff off my Downloads directory. Its somewhere in sda1 or sda2 i think but i dont know how to mount these devices so that i can list the contents. Please help.
 
Old 07-02-2012, 10:34 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Code:
mkdir /mnt/temp
mount /dev/sda1 /mnt/temp
Or sda2, either way. Then just go to /mnt/temp and find the files you want to delete.
 
Old 07-03-2012, 08:48 AM   #3
Tem2
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
Another simple question

Thanks Mr. Eggroll. Don't be so suicidal. Now i just need to know how to do a ls command that will pause when the screen fills. I tried sending the output to a file but got permission denied.

Tried this: sudo ls -l > temp

Permission denied
 
Old 07-03-2012, 09:40 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Use more or less:

Code:
ls -l | less
If you want to dump it to a file instead, you'll need to put it in a location where you have write access:

Code:
ls -l > ~/lsout

Last edited by suicidaleggroll; 07-03-2012 at 09:41 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
Hard drive space smaller after installing windows 7 over ubuntu? vesurka Linux - Newbie 4 06-15-2012 10:15 AM
Formated hard drive, runing ubuntu cd cant install, get fedora 11 to boot from hard d IanHarper Linux - Desktop 9 08-10-2009 11:09 PM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-05-2007 12:28 AM
I ran fsck.vfat to repair hard drive, and got a bunch of .REC files ! wearetheborg Linux - Hardware 12 04-14-2007 06:54 AM
Where can I get a free linux OS download that will boot from CD and format hard drive studpenguin Linux - Newbie 12 01-11-2004 08:00 PM


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