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-31-2004, 08:22 PM   #1
Gandalf29
LQ Newbie
 
Registered: Nov 2002
Location: Ontario, Canada
Distribution: Mandrake 10 for AMD64
Posts: 11

Rep: Reputation: 0
How do I use ALL of my hd?


I am using Mandrake 10 for AMD64 and have been running for a week or so with no problems...except I dont seem to have all of my 80 Gb hd available. I tried to copy 2 Gb worth of mp3ś to my Home directory and it said there was not enough room. I looked at what I assume is my hd from the Hard Drive icon on the desktop and tried to add a folder or directory but it wouldnt let me do that either. I have read a little on mount points but, quite frankly it left me more confused. Do I have to enlarge a partition or something? I am a reformed Windows user trying to break free. Any help would be appreciated.

Thx
 
Old 07-31-2004, 08:34 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
How about some information gathering :)

Code:
fdisk -l
df -m


Cheers,
Tink
 
Old 07-31-2004, 08:41 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
We need to know your partitioning scheme (fdisk -l) and free space on the partitions in human readable form (df -h). to find out, here is how to do it.

Open an x terminal and become root, issue those commands and post the results. Here is my system for an example:
Code:
fancy@uilleann ~ $ su -
Password:
Sat Jul 31 08:40 PM root@uilleann ~ # fdisk -l
                                                                                                                             
Disk /dev/hdc: 40.0 GB, 40037760000 bytes
255 heads, 63 sectors/track, 4867 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
                                                                                                                             
   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1      4867  39094146    c  Win95 FAT32 (LBA)
                                                                                                                             
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
                                                                                                                             
   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1215   9755991    c  Win95 FAT32 (LBA)
/dev/hda2          1215      2429   9751455    7  HPFS/NTFS
/dev/hda3          2429      2446    140017+  83  Linux
/dev/hda4          2447      4865  19430617+   5  Extended
/dev/hda5          2447      2516    562243+  83  Linux
/dev/hda6          2517      3368   6843658+  83  Linux
/dev/hda7          3369      3795   3429846   83  Linux
/dev/hda8          3796      4222   3429846   83  Linux
/dev/hda9          4223      4865   5164866   83  Linux
                                                                                                                             
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
                                                                                                                             
   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1      9729  78148161   83  Linux
root@uilleann ~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda7             3.3G  2.4G  740M  77% /
/dev/hda3             133M   11M  116M   9% /boot
/dev/hda9             4.9G  743M  3.9G  16% /home
/dev/hdc1              38G   29G  9.1G  76% /mnt/fat32
none                  252M     0  252M   0% /dev/shm
/dev/hdb1              74G   48G   23G  69% /pub
/dev/hda8             3.3G  2.0G  1.1G  65% /var
/dev/hda1             9.3G  932M  8.4G  10% /mnt/win98
/dev/hda2             9.3G  6.0G  3.4G  64% /mnt/win2k
root@uilleann ~ #

Last edited by fancypiper; 07-31-2004 at 08:46 PM.
 
Old 08-01-2004, 05:58 AM   #4
Gandalf29
LQ Newbie
 
Registered: Nov 2002
Location: Ontario, Canada
Distribution: Mandrake 10 for AMD64
Posts: 11

Original Poster
Rep: Reputation: 0
Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 391 3140676 83 Linux
/dev/hdc2 392 423 257040 82 Linux swap
/dev/hdc3 424 9729 74750445 83 Linux

Disk /dev/sda: 37.0 GB, 37019566080 bytes
255 heads, 63 sectors/track, 4500 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9000 72292468+ 7 HPFS/NTFS

Disk /dev/sdb: 37.0 GB, 37019566080 bytes
255 heads, 63 sectors/track, 4500 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table


I have two WD SATA Raptors RAIDed which are shown as sda and sdb, and are running WINXP 64-bit. Mandrake is on a WD Caviar 80 Gb. It looks like I have 74 Gb available on hdc3........but how do I access it/add directories, folders etc.? Is this the section of my hd represented by the Hard Disk icon on my desktop?
Please excuse me if I dont answer right away I am headed away for a week. Thanks in advance for any help u can give,
 
Old 08-01-2004, 06:02 AM   #5
Gandalf29
LQ Newbie
 
Registered: Nov 2002
Location: Ontario, Canada
Distribution: Mandrake 10 for AMD64
Posts: 11

Original Poster
Rep: Reputation: 0
Sorry ...here is the reponse to the df -m command

[root@Workgroup gandalfx]# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/ide/host0/bus1/target0/lun0/part1
3019 2416 451 85% /
 
Old 08-01-2004, 07:56 AM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Quote:
Disk /dev/sdb doesn't contain a valid partition table
So you haven't partitioned or formatted /dev/sdb?
Quote:
[root@Workgroup gandalfx]# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/ide/host0/bus1/target0/lun0/part1
3019 2416 451 85% /
Apparently you haven't mounted /dev/hdc3. Did you intend that partition for /home?

You might want to post the result of the mount command:
Code:
fancy@uilleann ~ $ mount
/dev/hda7 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda3 on /boot type ext3 (rw)
/dev/hda9 on /home type ext3 (rw)
/dev/hdc1 on /mnt/fat32 type vfat (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdb1 on /pub type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
/dev/hda1 on /mnt/win98 type vfat (rw)
/dev/hda2 on /mnt/win2k type ntfs (rw)
# Understanding Linux Filesystem layout:
Directory Navigation Help File
Filesystems, Directories, and Devices Help File
Proper Filesystem Layout

I can't seem to make my drives work like I want
# Managing drives
LNAG - Accessing my drives
Rute - Device Mounting - Automatic Mounts: fstab

Last edited by fancypiper; 08-01-2004 at 08:04 AM.
 
Old 08-08-2004, 08:13 PM   #7
Gandalf29
LQ Newbie
 
Registered: Nov 2002
Location: Ontario, Canada
Distribution: Mandrake 10 for AMD64
Posts: 11

Original Poster
Rep: Reputation: 0
Here is the response to the mount command:

[root@Workgroup gandalfx]# mount
/dev/ide/host0/bus1/target0/lun0/part1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
none on /mnt/cdrom type supermount (ro,dev=/dev/hda,fs=udf:iso9660,--,iocharset=iso8859-15)
none on /mnt/cdrom2 type supermount (ro,dev=/dev/hdb,fs=udf:iso9660,--,iocharset=iso8859-15)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,codepage=850)
none on /mnt/hd type supermount (rw,dev=/dev/scsi/host2/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,codepage=850)

Hope you undertand this better than me :-)

GandalFX
 
Old 08-11-2004, 10:08 AM   #8
Gandalf29
LQ Newbie
 
Registered: Nov 2002
Location: Ontario, Canada
Distribution: Mandrake 10 for AMD64
Posts: 11

Original Poster
Rep: Reputation: 0
Fixed ...thx for the help!!

I have a RedHat 7.3 Bible which showed me how to mount the rest of my hd, fortunately Linux commands are common to all distributions. I edited the /etc/fstab file to include /dev/hdc3 with a new directory name, I then created that directory with the mkdir command. the only glitch came after I rebooted to enable the automatic mount in the /etc/fstab to the new directory: new directorys are created with permissions set to the owner only (administrator/root) so I had to change permissions to allow me as a user to read and write to it using the chmod -R 777 command.
Thanks for the help, pointing me in the right direction, this has been a great learnig experience. I like the ability to be able to chase a problem right to its root cause whereas in Windows you seem to able to only go so far and the rest is a mystery.
 
  


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




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