Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi all,
Could someone tell me how to format a partition in the hard disk using console in linux opensuse 10.1 or any utility.
my machine has two dual system 1- wnixp 2-linux opensuse 10.1
I got run of space in linux, I have a partion e:/windows does not used, I want to move /usr to it ?
Could someone tell me how ? give example pls.
... thanx
Mohammed Hammam
This is assuming you are formating the first partion on the first drive. If it is the first partition on the 2nd drive then /dev/hda1 would become /dev/hdb1. If it is SATA drive on the 2nd partition then it would be /dev/sda2
After you format, you would edit /etc/fstab and add in that parition so when you boot it automatically loads that partition!
now what do you mean by ..
'then mount it where you want so like'
my problem is I got ran of space in / 98% , I want to move /usr to that partition(hdc7) to free space
ok well first I am glad that the above commands worked.
To use the partition, you first have to mount it. I am not sure if I am 100% correct on this but to move everything from /usr to /dev/hdc7 then you would have to
mount /dev/hdc7 /mnt - This will mount it to /mnt while we copy the files over
cp -advf /usr/ /mnt - This will copy all the files to /mnt where /dev/hdc7 is mounted
pico or vi /etc/fstab - You will have to edit /etc/fstab and put that you want to mount /dev/hdc7 to /usr
/dev/hdc7 /usr ext3 defaults 1 1 - put this line in the /etc/fstab
reboot the computer
Again, I have never done this so I am not 100% sure that this is the way to do it but I would think it is. The only thing I have no clue on would be how to delete the old /usr so you have more space.
Maybe somebody else knows 100% if this is the correct way
you can just type "su" then it will ask for a password and you will now be a Super User which is root, to exit out of root, you just type exit and you will be back again at a normal user.
Any program to edit files is fine. I used pico and vi so thats why I mentioned it up there.
pico or vi they are only view mode.
in run mode i type su and entered the password. but it can not save, it should something I do it wrong, pls try to help.
I reboot the machine and now I could save the fstab.
The problem now it goes now to cli mode could you help to let it goes to gui mode directly. By the way I used startx but noway.
thank you. I was so tired yesterday.
Now the status :
os = linux opensuse 10.1
my machine has dual system winxp - suse
problem = lake of spaces in / linux 99% used
resolution I did = format /windows/F to be used in linux
/dev/hdc7
problem now :
when my machine started and I go to suse, it goes to cli mode not desktop gui mode.
when I login either in root or user, it says these two message
/sbin/yast: line 18:/usr/lib/yast2/bin/yast2-funcs : no such file or directory
/sbin/yast: line 66: /usr/bin/getopt: no such file or directory
even if I type
startx
it says :
no startx installed
before login I noticed this message :
/etc/init.d/dhcpd: "/usr/sbin/dhcpd" is not an executable file. exiting. ===========> failed
Could you pls tell me how I correct this situation.
... thanx
Mohammed Hammam
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.