LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 01-21-2010, 05:02 PM   #1
raqua
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Rep: Reputation: 0
Is there any partition info stored in /etc ?


Hello.

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?
Thank you.
 
Old 01-21-2010, 05:05 PM   #2
raqua
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Machines behaviour comparison:

desktop:
- 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

notebook:
- 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)

Code:
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
and mount:
Code:
/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)
 
Old 01-22-2010, 05:56 PM   #3
slightlystoopid
Member
 
Registered: Jan 2010
Distribution: Arch, Gentoo, FreeBSD
Posts: 64

Rep: Reputation: 16
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.
 
Old 01-22-2010, 07:21 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,799

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
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.
 
Old 01-23-2010, 07:24 AM   #5
raqua
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
slightlystoopid:
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.

syg00:
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.
 
Old 01-23-2010, 11:42 AM   #6
Mandy Kwong
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
Is there any partition info stored in /etc ?

I need to know is there any software capable of MOVING Partition... whole volume to the left etc... Any extra input on this problem would be greatly.

Last edited by jschiwal; 06-26-2010 at 03:37 PM. Reason: removed spam
 
Old 01-23-2010, 04:30 PM   #7
raqua
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 01-23-2010, 04:36 PM   #8
slightlystoopid
Member
 
Registered: Jan 2010
Distribution: Arch, Gentoo, FreeBSD
Posts: 64

Rep: Reputation: 16
Quote:
Originally Posted by syg00
I would think you have misunderstood what the OP did.
haha, being up for 26 hours combined with forum browsing has that effect.

I still stand by my other suggestions... I think, hang on. yep, slightly stoopid certified suggestion.

As I was saying, if you have nothing on sda6, you can delete it, then change the size of sda5 to fill the rest of the disk, and the complaints should stop.
EDIT: but DO NOT mkfs on sda5.

Quote:
Originally Posted by Mandy Kwong
I need to know is there any software capable of MOVING Partition... whole volume to the left etc... Any extra input on this problem would be greatly.
You should probably start a new thread, but parted/gparted.

Last edited by slightlystoopid; 01-23-2010 at 04:38 PM. Reason: Clarification
 
Old 01-24-2010, 08:07 AM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Mandy Kwong is a spammer, check his sig, I'll report his posts, ignore him for now.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu file where dual-monitor info is stored??? jmite Linux - Newbie 2 01-13-2009 05:24 PM
Where can I get info on common Linux directories and what's normally stored there? hunterhunter Linux - Newbie 6 04-06-2006 03:40 PM
Where is IP info stored-RH8 kubicon Linux - Networking 2 08-26-2004 05:24 PM
Web Browsers Forgetting stored info BrettPower Linux - Software 0 03-06-2004 12:36 PM
Info displayed to screen at boot stored somewhere? jfi Linux - Newbie 3 12-03-2003 05:19 PM


All times are GMT -5. The time now is 01:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration