LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-05-2005, 01:45 PM   #1
mrhide
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
moving root / partition on Slack 10.0


Hi guys I'm having a strange problem on my slack...
I moved my root partition from /dev/hda1 to /dev/hda4
I fixed lilo, fstab ecc...
I've tried to boot from the new one and everything appeared to seem fine but...
that was the first impression!!!
Infact have a look to the output:
_________________________________________________
root@cerberus:~# fdisk /dev/hda
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 623 5004216 83 Linux
/dev/hda2 624 3114 20008957+ 83 Linux
/dev/hda3 3115 3177 506047+ 82 Linux swap
/dev/hda4 3178 4864 13550827+ 83 Linux

root@cerberus:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda4 4.7G 4.3G 117M 98% /
/dev/hda1 4.7G 4.3G 117M 98% /mnt/hda1
___________________________________________________

As you can see fdisk can detect properly the disk size (40G) while
df -h gives me the same size as the original partition where / was installed

I've tried to boot from a live cd and output of df -h was correct...
I do not know how to fix the problem... I' ve tried to reboot,use resize2fs,rewriting the partition table with the same values,dancing around the pc with one leg launching spells but nothing changed...
Any idea?!

To move the partition I used
tar cvzf slack10backup.tgz bin/ etc/ lib/ mnt/ opt/ root/ sys/ usr/ boot/ dev/ home/ ecc...
from a suselivecd...

Have a nice day, I' m really sorry for my english grammar and spelling mistakes but as you may guess I'm not english native speaker...
Thank you!
 
Old 04-05-2005, 04:08 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
maybe the --sync option can help here.

df --sync -h

just a thought.

egag
 
Old 04-06-2005, 09:15 AM   #3
mrhide
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
No way!!!
I cannot believe I have to reinstall all to fix the problem...
Maybe there is a file around /etc where slack recorded the values of the partition table during the installation process...but I do not find which one!
Moreover is very strange that the size is exactly the same as the original partition in which the /
was installed...

Please!!!

I can not even google to find an answer because I do not know how to call this problem! Disk geometry? Disk size?Drunk partitions ? Any idea ?

Thank You!
 
Old 04-06-2005, 12:21 PM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Could you post the output with :

cat /proc/partitions
cat /proc/mounts
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 10:11 PM
moving /home /root & /var to new partition CrashedAgain Linux - General 8 11-24-2005 11:44 AM
Moving from Slack to FreeBSD some help needed . MikeFoo1 Linux - General 3 07-03-2005 05:38 AM
Moving from extended partition to primary partition joelbudgor Linux - General 5 05-26-2004 07:08 PM
Moving from Libranet to either Debian or Slack Dswissmiss Linux - General 2 05-06-2004 05:47 PM


All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
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