LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   add more HD space to my Fedora machine (https://www.linuxquestions.org/questions/linux-newbie-8/add-more-hd-space-to-my-fedora-machine-899995/)

VicRic 08-29-2011 02:06 AM

add more HD space to my Fedora machine
 
1 Attachment(s)
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

nooneknowme 08-29-2011 02:18 AM

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..... :)

ButterflyMelissa 08-29-2011 02:19 AM

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

phil.d.g 08-29-2011 03:36 AM

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


VicRic 08-29-2011 11:10 PM

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.

ButterflyMelissa 08-30-2011 12:59 AM

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


All times are GMT -5. The time now is 10:15 PM.