Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Misc probs, Unable to open /dev/hda and screen Hz?< Next Oldest | Next Newest >
IDK Offline





Group: Members
Posts: 22
Joined: April 2006
Posted: April 20 2006,12:46 QUOTE

Thanks, that solved it.

Now I've encountered two other probs:

How do I format and mount for example hda4?
How do I mount a swapdisk?


--------------
Niklas Ulvinge aka IDK
wishes you
happy proramming,
or whatever you do
Back to top
Profile PM WEB MSN 
doobit Offline





Group: Members
Posts: 912
Joined: July 2005
Posted: April 20 2006,12:54 QUOTE

To format a partition you can use a format command form the command line. Depending on what file system you want to use, there are different commands. Here is a good link about that:

http://www.lissot.net/partition/

The swap partition can be formatted as swap, but can also be left empty as long as the swap flag is on. You need to turn swap on with the command swapon, but usually the OS does this as it boots as long as it recognizes that you have a swap partition.


--------------
"Help stop internet piracy...use Linux!"
Back to top
Profile PM WEB MSN 
IDK Offline





Group: Members
Posts: 22
Joined: April 2006
Posted: April 20 2006,13:21 QUOTE

Thanks for the quick reply

I have a swap, but on the desktop it says:
Swap Used: 0/0 - %

So I did mkswap -c /dev/hda3 and swapon /dev/hda3 and it works.

I haven't tested if it will work after reboot.

The link describe very well how to make partitions, but how do I mount one?

Also, is there any good site for linux beginners or a description of the linux system?


--------------
Niklas Ulvinge aka IDK
wishes you
happy proramming,
or whatever you do
Back to top
Profile PM WEB MSN 
doobit Offline





Group: Members
Posts: 912
Joined: July 2005
Posted: April 20 2006,13:31 QUOTE

FYI, the swap will only be used in cases where an application needs more memory to run than you actually have in RAM.
You can mount a partition, as super user or root with the mount command like this:
Code Sample
sudo su
mount /dev/hda7

To unmount use:
Code Sample
umount /dev/hda7

Notice it's "umount" not "unmount"
A way that is easier for beginners to remember in DSL is to right click on Emelfm and choose as super user. Navigate to the /mnt directory and open it. There will be a list of your media partitions there. Right click on the one you want to mount and choose  mount.


--------------
"Help stop internet piracy...use Linux!"
Back to top
Profile PM WEB MSN 
8 replies since April 19 2006,16:59 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Misc probs

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code