Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 14-02-2008, 01:47 PM   #1 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile swapping a distro-from one hdd to another


My hdd seagate 80GB sata failed 2 week back.
I copied the whole Debian partition into my new 160GB hdd's ext3 partition made for this(not did a "dd").

later I chrooted into the Debian Sid install via Ubuntu.
I mounted debian partition on Ubuntu and:
Code:
mount /dev/sda10 /mnt
Code:
mount -t proc proc /mnt/proc
Code:
mount --bind /dev/ /mnt/dev
Code:
chroot /mnt /bin/bash
Then I removed the grub from Debian and apt-get install --reinstall grub
I reinstalled grub natively as:
Code:
grub>root (hd0,9)
Code:
setup (hd0)
then,
Code:
grub-install /dev/sda
that's it.
when rebooted,grub menu is shown.I can boot into Debian and login with my local username.
wait!but from here the menace starts
I CANNOT login via terminal or any virtual terminal as root!
wtf?
So,In panic,I tried resetting password via grub option to kernel(I use upstart in Debian in place of sysVinit) "rw init=/bin/bash"
changed password.
in that root terminal.I modprobed all needed modules manually(pppoe etc)
connected to my adsl pppoe connxn,
Code:
apt-get install --reinstall linux-image-`uname -r` grub dpkg bash
also,I did a :
Code:
source /etc/profile
as mkinitrd is complaining LANG etc env variables were missing

I, (my debconf settings is "medium") as root
Code:
dpkg-reconfigure --all
I did a:
Code:
apt-get install --reinstall login libpam-runtime
to solve the /bin/su not having suid bit set .
So,Happy times!
Hope this benefits others too
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-02-2008, 01:52 PM   #2 (permalink)
Banned
 
slugger's Avatar
 
Join Date: May 2004
Location: Baudland
Posts: 2,433
Default Re: swapping a distro-from one hdd to another

OFFTOPIC
shudn't u put it in tutorials or sumthin
slugger is offline  
Old 14-02-2008, 03:01 PM   #3 (permalink)
Human Spambot
 
Join Date: Jan 2007
Location: Lat 28.38°N , Longt 77.13°E
Posts: 2,431
Default Re: swapping a distro-from one hdd to another

Useful info
ThinkFree is offline  
Old 14-02-2008, 03:40 PM   #4 (permalink)
The Smaller Bang
 
MetalheadGautham's Avatar
 
Join Date: Sep 2007
Location: Gautham City
Posts: 7,489
Default Re: swapping a distro-from one hdd to another

nice one. hope your failed HDD is still under warrenty. And quick thinking.
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
MetalheadGautham is offline  
Old 14-02-2008, 03:54 PM   #5 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: swapping a distro-from one hdd to another

^yes! my hdd's under warranty
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 14-02-2008, 04:17 PM   #6 (permalink)
The Smaller Bang
 
MetalheadGautham's Avatar
 
Join Date: Sep 2007
Location: Gautham City
Posts: 7,489
Default Re: swapping a distro-from one hdd to another

Quote:
Originally Posted by praka123 View Post
^yes! my hdd's under warranty
lucky
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
MetalheadGautham is offline  
Old 22-02-2008, 12:31 PM   #7 (permalink)
The Thread Killer >:)
 
phreak0ut's Avatar
 
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
Default Re: swapping a distro-from one hdd to another

Hey, good stuff man! Thanks for this.
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
phreak0ut is offline  
Old 22-02-2008, 02:19 PM   #8 (permalink)
TheSaint
 
NucleusKore's Avatar
 
Join Date: Jun 2004
Location: Antigua
Posts: 3,447
Default Re: swapping a distro-from one hdd to another

Thanks
__________________
http://www.neville.in
http://www.linuxrocks.in
"The Future Is Open"
NucleusKore is offline  
Old 22-02-2008, 02:56 PM   #9 (permalink)
die blizzard die! D3?
 
The_Devil_Himself's Avatar
 
Join Date: Aug 2007
Location: Event horizon
Posts: 2,361
Default Re: swapping a distro-from one hdd to another

wow man thats awesome.It will be useful.
__________________
Stealing your women and horses since 1843.
The_Devil_Himself is offline  
Old 22-02-2008, 05:32 PM   #10 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: swapping a distro-from one hdd to another

thats geeky...u got brains
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
i cant install any distro startrex88 Open Source 6 11-08-2007 09:51 PM
Artistx Distro src2206 Open Source 7 10-08-2007 07:31 PM
Linux Distro aneek Open Source 2 27-07-2007 03:48 PM
Best Distro? sunny_guha Open Source 1 03-02-2007 06:54 PM
[distro hub] Get Your Favourite Distro !!! aku Open Source 2 25-11-2005 06:28 PM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 02:55 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2