You are not logged in.
Pages: 1
I noticed that I didn't use all my disk space when I installed Arch. It's just a couple of gigabytes but since I'm filling up my diskspace I'd like to use them. I get following ouput from df.
223921/home/riwa/.Downloads$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 74G 67G 2.9G 96% /
none 188M 0 188M 0% /dev/shm
/dev/hda1 32M 14M 17M 46% /boot
I have like 6 gigabytes unpartioned. How do I add them? Also, is there a way to add them to my /home partition?
/Richard
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
Taking your last question first, according to df, you don't have a /home partition, just / and /boot. So you can use the 6G as your home partition, by first setting it up with fdisk/cfdisk and mkfs, then copying everything in your /home directory over, and finally editing /etc/fstab.
Offline
I didn't understand at all. And yes, I noticed I don't have a /home partition so i'd rather keep it that way. I'll just want to name it "share" or something and have it in "/share". How can I do that? An please be a bit more specific about actions. I've never partioned outside an "installation" if you know what I mean.
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
wiping is spelled without the h.
KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein
Offline
First, you need to make a partition. These actions are performed as root:
fdisk /dev/hda
Press "p" to print what partitions you got. They should be numbered from 1-4, and if you got an extended partition, also 5+.
Press "n" to make a new partition. If it asks for a partition number, enter an unused partition number - which are used can be checked from the output of "p" above. Then you can probably just press enter twice for it to partition the unused space it can find. Press "p" again to see if you are content with the new partition layout - if you are, press "w" to write it to disc. If fdisk says that the kernel still uses the old layout, you have to reboot to use the new partition.
Then you got to format the partition - you should read the mke2fs manpage first to see what options you want (assuming you want ext3, since / is ext3), for example:
mke2fs -j /dev/hdaX
/dev/hdaX should be the partition you created in fdisk - for example /dev/hda4.
You have to create the mountpoint:
mkdir /share
Then you should add an entry to /etc/fstab to automaticly mount it at boot, start your favourite text editor and add something like this to the file:
/dev/hda4 /share ext3 noatime 0 0
At last, use this command to mount everything not flagged with "noauto" in /etc/fstab:
mount -a
The new partition should be mounted.
Offline
I can't get past the creating function in fdisk. It tells me that I don't have any sectors left. Maybie it's formatted in some other filesystem. But shouldn't fdisk find every partition and list it even if it doesn't understand it?
181203/home/riwa/# fdisk /dev/hda
The number of cylinders for this disk is set to 155061.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 66 33263+ 83 Linux
/dev/hda2 67 587 262584 82 Linux swap / Solaris
/dev/hda3 588 155061 77854896 83 Linux
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Selected partition 4
No free sectors available
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
Ah - right. I think I see your problem now. It's the age-old confusion between hardware and software disk/partition sizes. fdisk reports your disk size as 80026361856 bytes - divide that by 1000 three times, and you get 80GB. So far so good.
Your OS, however, sees things a bit differently, because it knows that 1KB is 1024 bytes, not 1000. Divide 80026361856 by 1024 three times, and what do you get? That's right - 74.53GB.
So the bad news is that you don't actually have the free space that you thought you had, but the good news is that you are getting the full value out of your 80 (or 74) GB disk.
Offline
Oh. Ok. I guess I have to buy an external HD then. Wouldn't it be possible to connect it trough usb?
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
You haven't mentioned any other internal hard disks, so assuming you don't have any, you'd be better off getting one - your IDE interface is a lot more efficient than USB.
Offline
Oh, forgot to mention, it's a laptop. :oops: Yeah of course it more efficient with IDE but in a laptop case wouldn't USB be the best option?
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
OK. Yes, USB for laptops.
Offline
Pages: 1