LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   extra hard disk space (https://www.linuxquestions.org/questions/linux-hardware-18/extra-hard-disk-space-379497/)

ic_torres 11-03-2005 02:56 AM

extra hard disk space
 
guys just want to ask, i have this WD hard disk 80G and i have already used the 30, meaning i have 50G left. . can i acess this 50G in slackware? (wat i mean is.. can i see the remaining size of my entire HD) or i will put it this way, how could i access the remaing 50G of my HD?

hope i made a clear question. .. thanks in advanced.!

uberNUT69 11-03-2005 03:25 AM

Re: extra hard disk space
 
guys just want to ask, i have this WD hard disk 80G and i have already used the 30, meaning i have 50G left. . can i acess this 50G in slackware?

Of course

(wat i mean is.. can i see the remaining size of my entire HD)

If your hard drive shows as hda
# fdisk -l /dev/hda
will show you what you're using

or i will put it this way, how could i access the remaing 50G of my HD?

# fdisk /dev/hda
n (new partition)
p (primary)
...
you'll work it out

try
# man fdisk

hope i made a clear question. .. thanks in advanced.!

I'm sure you're questions will get better with practice ;)

ic_torres 11-03-2005 03:31 AM

hmmm sir "uberNUT69" seems you somehow did not understand my question..ryt? ? hahaha.. thanks anyway... btw my linux partition is on hdc coz hda blongs to winxp.. thanks sir :p i think u know all the corners of linux..haha i found the right forum to join.

uberNUT69 11-03-2005 05:22 AM

OK, would you care to provide more detail then?
ie. output from:
# fdisk -l /dev/hdc
$ df
perhaps?

ic_torres 11-03-2005 06:31 AM

yes sir. .hmm ur right..i saw my memory usage.. one more question. .. can i expand either one of my partitions with the remaining 50G? thank you very much again sir :)

saikee 11-03-2005 08:54 AM

Only old ladies couldn't make up their mind.

uberNUT69's instruction is perfectly satisfactory if you substitute /dev/hda with /dev/hdc

If you expand an existing partition that is to resize it. Only limited distros have programs to do it and that would require you to download a distro in a Live CD if you couldn't find such a program in Slackware.

uberNUT69 11-03-2005 06:37 PM

You still haven't provided any details of your setup.

IF, for example, you are using an ext2 or ext3 filesystem on your
first partition (without LVM), and you have no other partitions on
that drive, you could delete the partitions using fdisk, and then
create one larger partition. Using a programme called ext2resize
it would then be possible to resize the filesystem to fit the new
partition.

HOWEVER:
- as saikee has pointed out, this is only available in some
distros (eg. Debian Sid)
- this does not include an LVM-based partitioning scheme
(use lvextend to resize the partition first)
- I would recommend you test this on another drive (without
important data on it) first, as it's VERY easy to lose EVERYTHING.

Again, as saikee mentions, a Live CD like Knoppix or DFS
would be suitable for this. (DFS also includes LVM tools AFAIK)

Without experimentation, it would be simplest just to create a
new partition in the spare space, and then format it with a
filesystem of your choice.

I strongly suggest you research partitioning tools and methods,
and understand the basics of creating/using filesystems before
you embark on a mission to destroy all your data.

Google is your friend.

ic_torres 11-03-2005 07:56 PM

hmm ok.. thanks to both of you. . :)


All times are GMT -5. The time now is 08:53 AM.