Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Recently I decided to finally erase Ubuntu on a notebook and install Arch Linux. I am using Arch on desktop for quite some time, but I was lazy to set it up on NB. I had numerous problems with latest Ubuntu so - enough is enough.
Setting up Arch takes a lot of time, so I used a bit of a different approach.
My idea was, to get it with the same settings I have on a desktop, so I installed basic system. Then I installed the same packages as were installed in desktop. This is possible easily with Arch's excellent package manager. I copied /etc and my home folder, so I have back my settings.
With minor glitches all went well and after some small tweaks I have the same system running on both machines with much less effort that installing from scratch. So far, so god.
But I found one small problem. Gparted now reports my partition unallocated, although the system is there and working.
This issue does not show up, when I boot from live cd, so I suspect, that somewhere in the /etc (?) there is partition info stored that I have overwritten with my desktop settings.
Anyone knows where this could be please? Or any other comments to this issue?
- running gparted from CLI prints just version info. libparted:1.9.0 (no errors)
- I can see all my partitions in a GUI
- fdisk -l shows the same partitions
- running gparted from CLI prints version info. libparted:1.9.0 and "Can't have partition outside the disk!"
- I can NOT see any partitions in a GUI, it says all is unallocated on the sole disk I have there
- fdisk -l shows partitions (see below)
Disk /dev/sda: 36.6 GB, 36594770944 bytes
255 heads, 63 sectors/track, 4449 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbd95bd95
Device Boot Start End Blocks Id System
/dev/sda1 * 1 973 7815591 83 Linux
/dev/sda2 974 1097 996030 82 Linux swap / Solaris
/dev/sda3 1098 4864 30258427+ 5 Extended
/dev/sda5 1098 4093 24065338+ 83 Linux
/dev/sda6 4094 4864 6193026 83 Linux
/dev/sda1 on / type ext4 (rw)
none on /dev type tmpfs (rw,relatime,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda5 on /home type ext4 (rw)
gvfs-fuse-daemon on /home/raqua/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=raqua)
wow. I sincerely hope you didn't copy the ENTIRE /etc directory from Ubuntu to Arch. If you did, it means a lot of wasted space with files that Arch will never read as well as many potentional syntax and configuration errors. After doing something like that, I'd honestly start the entire install over. Double check each file you plan on overwriting to make sure that's really what you want to do. As far as /home, you're a little safer, but it's still not something I would do between distributions.
As for the hard drive issue, what does cfdisk say about it? If all your partitions are displayed accurately, try writing a new partition table through cfdisk. I trust it more than fdisk or gparted.
EDIT: Also, verify the partition sizes in cfdisk. I'm not sure why you're using logical partitions either when you're only using four partitions total (or so it appears)
Last edited by slightlystoopid; 01-22-2010 at 05:59 PM.
I would think you have misunderstood what the OP did. I wonder if that the gparted you have can't handle ext4 - needs a recent e2fsprogs.
What is more of a worry is that on a disk of (apparently) only 4449 cylinders, you have allocated all the way to cylinder 4864. Something is wrong somewhere. How did you create the partitions on the netbook ?. Only fstab should be of interest in /etc - but that is only mounts, not partition definition.
No, Ubuntu was wiped out and I copied Arch to Arch, so that should be no problems. There were only some small issues like hostname change, but all went pretty well.
Yes, you are right and that is also what gparted complains about. I am talking about the cylinders. Partitioning was probably done by latest Ubuntu live CD. I am sure, that ext4 was supported by that system. I think that before I made the /etc copy everything was fine, but I can try to repartition and then put the system back, should be no big deal.
Mandy Kwong: I am not sure what you mean. If you want to make ghost like image of your partition, then you can use for example Clonezilla live CD. If you just want to resize/move partition on an existing drive, gparted can do this. I do not know if it supports all filesystems though. I tried it for ext3/4 and NTFS.