LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2011, 03:06 AM   #1
VicRic
Member
 
Registered: Sep 2006
Location: Vancouver, Canada
Distribution: Mandriva 2010 / Fedora 15 2.6.40.6-0
Posts: 44

Rep: Reputation: 16
add more HD space to my Fedora machine


Hi

could you help me answering a very simple question:
- how can I add more HD space to my Fedora machine?

This is the background:
- I'm running out of space on the main volume of my Fedora linux machine (sda)
- I just added the new HD (80Gb ATA drive) which is already recognized as dev/sdc
- I already created a volume called SDC1 (LVM ext4, 40Gb, /dev/sdc1)

The following screenshot will help:
screenshot

- I use the linux machine for single user, so ideally I'd like to move some of my current folders like /home/victor/Videos and /home/victor/Downloads to the new volume SDC1 to free up some space on sda.
- Problem is that the new volume at this stage can only be mounted by root, and of course victor doesn't have rights to create new folders in the new volume or move files to it.

I accept any suggestion, I don't mind having to reformat the new drive.

BRgds
Attached Thumbnails
Click image for larger version

Name:	Screenshot.jpg
Views:	7
Size:	122.9 KB
ID:	7908  
 
Old 08-29-2011, 03:18 AM   #2
nooneknowme
Member
 
Registered: Feb 2008
Location: Bangalore, India
Posts: 69

Rep: Reputation: 5
As root do the following ...

add an entry in the fstab file.
Quote:
/dev/sdc1 /whereYouWantToMount ext3 defaults 0 0
Quote:
# mkdir /whereYouWantToMount
# chown victor /whereYouWantToMount
# chmod u+rwx /whereYouWantToMount
assuming victor is the user you want to access the files with.

and you are good to go.....

Last edited by nooneknowme; 08-29-2011 at 03:19 AM.
 
Old 08-29-2011, 03:19 AM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,688
Blog Entries: 23

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Okay, that's...nasty...

Suggestion (I've helped out with this one more than once, it works) get a live CD (TTY Linux if you're good at the console, or a Fedora Live CD, or DSL, that's the best one) burn it and boot with that CD in the drive.
Mount all the drives you need and move stuff around.

One (unfortunate) side note...

Quote:
Problem is that the new volume at this stage can only be mounted by root,
...is a bad sign, I suspect that your file system (the stuff that can not be moved around) is too full. In that case you may need to consider uninstalling stuff you dont really need. If that file system is in its own partition, that is. If you set things up in one cosy partition (tru-out possible) then you could have a song...

Luck

Thor
 
Old 08-29-2011, 04:36 AM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by nooneknowme
As root do the following ...

add an entry in the fstab file.
Code:
/dev/sdc1 /whereYouWantToMount ext3 defaults 0 0
Code:
# mkdir /whereYouWantToMount
# chown victor /whereYouWantToMount
# chmod u+rwx /whereYouWantToMount
assuming victor is the user you want to access the files with.

and you are good to go.....
Almost correct, you need to run the following command before running chown or chmod, but after running mkdir:
Code:
mount /whereYouWantToMount

Scratch that, just saw your screenshot, the following well set you right:
Code:
# chown victor /media/sdc1
# chmod u+rwx /media/sdc1

Last edited by phil.d.g; 08-29-2011 at 04:39 AM.
 
Old 08-30-2011, 12:10 AM   #5
VicRic
Member
 
Registered: Sep 2006
Location: Vancouver, Canada
Distribution: Mandriva 2010 / Fedora 15 2.6.40.6-0
Posts: 44

Original Poster
Rep: Reputation: 16
Super, thanks, it worked!

I followed the steps:
in Terminal

# su -
# cd /etc
# gedit fstab

I added this line to fstab:

/dev/sdc1 /home/victor/SDC1 ext4 defaults 0 0

back in Terminal:

# chown victor /home/victor/SDC1
# chmod u+rwx /home/victor/SDC1

Thanks to all.
 
1 members found this post helpful.
Old 08-30-2011, 01:59 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,688
Blog Entries: 23

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Thanks for this post, I noted that down in my "survival kit" - thanks!
 
  


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
add swap space yusufs Linux - General 2 10-09-2009 11:55 AM
Samba add machine script disables machine by default?! deathsfriend99 Linux - Server 0 12-15-2008 05:33 PM
Copy directories/files from Fedora 8 machine to SuSE 10.3 machine r-t Linux - Newbie 6 03-11-2008 08:54 AM
add space to / when from spare space on disk ctsiow Linux - General 4 11-07-2007 08:55 AM
How to add space ? chuck77 Linux - General 19 12-11-2001 03:03 PM


All times are GMT -5. The time now is 03:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration