PDA

View Full Version : mounting more drive space



LackeyLad
6th September 2004, 02:03 AM
i took off 7gb from my winxp side to mount onto linux. there is a shell command that shows all partitions and where they start in memory etc. id like to utilize that command and paste the results in hope that the forum body could walk me through mounting that unused drive memory onto my linux side. what is that command? again? not df -h but something else...

imdeemvp
6th September 2004, 02:14 AM
you want to add the 7gb to your existing partition or you want to mount it as separate linux partition?

i dont quite understand your issue.

so see your partitions become root and type: /sbin/fdisk -l

LackeyLad
6th September 2004, 02:23 AM
id love to add the 7gb to my current partition, that would be great... if possible.

here is my partitions


[root@cpe-69-135-186-14 erich]# /sbin/fdisk -l

Disk /dev/hdc: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 5 40131 de Dell Utility
/dev/hdc2 * 6 1923 15406335 7 HPFS/NTFS
/dev/hdc3 2556 2568 104422+ 83 Linux
/dev/hdc4 2569 3648 8675100 f W95 Ext'd (LBA)
/dev/hdc5 2569 3583 8152956 83 Linux
/dev/hdc6 3584 3648 522081 82 Linux swap
[root@cpe-69-135-186-14 erich]#

imdeemvp
6th September 2004, 02:36 AM
i got bad news....no can do....is not safe to add a linux partition to your existing linux partitions BUT it can be mounted separetely.

/dev/hdc5 2569 3583 8152956 83 Linux <- this is your new space correct?

if so become root and type:
cd /mnt/
mkdir data or what ever name you want to use
ls <- this will show the directory named data

edit fstab and add this line to auto mount it:

/dev/hdc5 /data auto defaults 0 0


satisfied?......eat a snickers bar :D

LackeyLad
7th September 2004, 05:47 PM
before i do this id like to make sure i have the correct procedure. I am going to do the folllowing.

1. cd /mnt/
2. mkdir save
3. ls
4. find the fstab file and add "/dev/hdc5 /data auto defaults 0 0" to the end.
5. eat a snickers bar

is that correct

Mat
7th September 2004, 06:48 PM
with steps 1 and 2 you create the directory which should "hold" the new partition
in step 4, you have to specify that directory ("/data" in the example)

so you either have to:
1) mkdir /data
2) add "/dev/hdc5 /data auto defaults 0 0" to /etc/fstab

or

1) mkdir /mnt/save
2) add "/dev/hdc5 /mnt/save auto defaults 0 0" to /etc/fstab


after you saved the fstab, the partition will be mounted upon every boot. to mount it right now (w/o rebooting) type "mount /mnt/save" (or whatever directory you've chosen in step 1

Mat

edit: and don't forget to the chocolate bar :)

LackeyLad
7th September 2004, 08:06 PM
in what directory is fstab?

imdeemvp
8th September 2004, 12:37 AM
i am on diet....i have to tell other people to eat a snickers bar for me. :p

as root edit fstab, open terminal and type: gedit /etc/fstab and add the line mat and i suggested.