Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Safest/easiest way to get Debian installed with W7
Safest/easiest way to get Debian installed with W7
I have used Wubi for Ubuntu, nice, easy and convenient. I have since deleted Wubi/Ubuntu. Exploring Debian, looking for a partition software that will safely create and allow me to install Debian next to W7. I am between machines, and this is my girlfriend's machine, so a full install is out.
Re: Safest/easiest way to get Debian installed with W7
Well, there are only two options that I know of:
-Install Debian in parallel with W7, and dual boot.
-Use a live CD. There is a Debian Live CD project, you can google it.
But if you like Debian why not install it as a dual boot? How do you define "a full install is out"?
Doing a Wubi install of Ubuntu is not usually recommended since it can mess things up, in my opinion.
-Install Debian in parallel with W7, and dual boot.
-Use a live CD. There is a Debian Live CD project, you can google it.
But if you like Debian why not install it as a dual boot? How do you define "a full install is out"?
Doing a Wubi install of Ubuntu is not usually recommended since it can mess things up, in my opinion.
Re: Safest/easiest way to get Debian installed with W7
I cannot wipe 7 off, it's not my computer. Does the live disk give me the option to install alongside 7, after I have prepared/made a partition in W7? Dual boot, safe and easy, is what I am after. So the best method
So I would assume here:http://www.debian.org/CD/live/
If I decide I like Debian, I can go through with the install, it will allow me to select or create partitions to install Debian on? Select Gnome etc?
So I would assume here:http://www.debian.org/CD/live/
If I decide I like Debian, I can go through with the install, it will allow me to select or create partitions to install Debian on? Select Gnome etc?
Re: Safest/easiest way to get Debian installed with W7
Safest way:
Use W7 to create a set of recovery media. Store these safely.
Defrag your girlfriends laptop.
Use clonezilla to image your girlfriends laptop hard disk to a removable drive.
Use the gParted live CD to shrink the W7 partition. It should still start at the beginning of the disk but leave free space afterwards.
Install Debian.
Windows updates may occasionally wipe out your MBR so make sure you keep an up to date copy of it somewhere.
To do this use to create it.
You will want to keep this on a USB stick with a copy of a live distro handy (gParted will do for this).
Use to restore it.
Use W7 to create a set of recovery media. Store these safely.
Defrag your girlfriends laptop.
Use clonezilla to image your girlfriends laptop hard disk to a removable drive.
Use the gParted live CD to shrink the W7 partition. It should still start at the beginning of the disk but leave free space afterwards.
Install Debian.
Windows updates may occasionally wipe out your MBR so make sure you keep an up to date copy of it somewhere.
To do this use
Code: Select all
dd if=/dev/sda of=/home/dave/MBR.512 bs=512 count=1
You will want to keep this on a USB stick with a copy of a live distro handy (gParted will do for this).
Use
Code: Select all
dd if=/home/dave/MBR.512 of=/dev/sda
Re: Safest/easiest way to get Debian installed with W7
Thanks for the response. Very detailed, unfortunately I am without a back up drive, my Hitachi died. I think in the best interest of time, my relationship (ha) is to purchase an inexpensive laptop, and do the full install. My next purchase after that will be a PC to build a Linux digital audio workstation, still researching the best distro for that. Again, thank you for taking the time to respond.
Re: Safest/easiest way to get Debian installed with W7
You can use the official install CD (non-Live) and boot from that (if you like), and the install/setup process will begin. It lets you partition the disk, to allow dual boot with windows, and detects W7 and gives you, after completion, a dual boot screen when you start the computer.theprep wrote:I cannot wipe 7 off, it's not my computer. Does the live disk give me the option to install alongside 7, after I have prepared/made a partition in W7? Dual boot, safe and easy, is what I am after. So the best method
So I would assume here:http://www.debian.org/CD/live/
If I decide I like Debian, I can go through with the install, it will allow me to select or create partitions to install Debian on? Select Gnome etc?
Theoretically one should backup anything before a hard drive partition or OS install, but you should always have a backup anyway.
Also, during the installation/setup procedure, you choose if you want to install a Desktop Environment and which. Default is to do, and use Gnome, but you may choose KDE, LXDE, XFCE, or none.
I have no experience with the Debian Live-CD's, but I'm sure those will work as well.
Re: Safest/easiest way to get Debian installed with W7
word of advice if you gonna dual boot for the first time do it on your own computer.
lotta things can go wrong when trying to do a dualboot install and the chances of wiping your win partition are high
lotta things can go wrong when trying to do a dualboot install and the chances of wiping your win partition are high
Re: Safest/easiest way to get Debian installed with W7
(1) Notebooks often have an option "create recovery media". If you have a manual to your laptop then check whether the laptop has also such option.
(2) At any rate, backup the contents of HD somewhere. This should be possible from the winblows on the NB. The "create recovery media" does this in the most consistent way (with respect to a particular NB).
(3) Install winblows boot manager if it isn't installed already. Add winblows to it and reboot for a check. You should occur in the boot manager offering you winblows. Accept and finish startup.
(4) Do all partition manipulations from only one operating system. In your case, do all partition management from winblows. Defragment partitions, shrink a partition so that you get space for your Debian installation, and create partitions for your (future) root, /home and swap.
(5) Install Debian. Run "install" or "expert install". Avoid all "default", "quick" and similar offers. Do not manipulate partitions from Debian, only assign partitions to root, /home, etc., and format them. At FDISK screen (you will assign the partitions here) note which partition on which disk is your root (which partition you have assigned to root). You will need this info at the end of the installation, about a hour later
Debian is winblows aware, you should pass.
(6) When you install GRUB (after installing everything else), decline installing GRUB in the MBR and install GRUB on the root partition. You will need to enter information "(hdX,Y)" where X is the ordinal of the HD (hd0 = the first disk, hd1 = the second disk, etc.) and Y is the ordinal of the root partition on the disk (see your notes from FDISK). (hd0,3) is the third partition on the first HD. You have in your FDISK notes "first disk, partition #3".
(7) Reboot. Winblows boot manager should boot, not Debian. Add the root partition to boot manager menu.
(8) Reboot. You should see both winblows and Debian in the boot manager menu and both should start.
P.S.: You'd better do something for cooling the NB when you install. You will install more than 1100 packages at once, many of them are big. If the cooling isn't enough good or the NB isn't enough new, then the installation can "crash" suddenly and the NB gets switched off. This wasn't a crash, this was overheating. I have experienced that.
(2) At any rate, backup the contents of HD somewhere. This should be possible from the winblows on the NB. The "create recovery media" does this in the most consistent way (with respect to a particular NB).
(3) Install winblows boot manager if it isn't installed already. Add winblows to it and reboot for a check. You should occur in the boot manager offering you winblows. Accept and finish startup.
(4) Do all partition manipulations from only one operating system. In your case, do all partition management from winblows. Defragment partitions, shrink a partition so that you get space for your Debian installation, and create partitions for your (future) root, /home and swap.
(5) Install Debian. Run "install" or "expert install". Avoid all "default", "quick" and similar offers. Do not manipulate partitions from Debian, only assign partitions to root, /home, etc., and format them. At FDISK screen (you will assign the partitions here) note which partition on which disk is your root (which partition you have assigned to root). You will need this info at the end of the installation, about a hour later
Debian is winblows aware, you should pass.
(6) When you install GRUB (after installing everything else), decline installing GRUB in the MBR and install GRUB on the root partition. You will need to enter information "(hdX,Y)" where X is the ordinal of the HD (hd0 = the first disk, hd1 = the second disk, etc.) and Y is the ordinal of the root partition on the disk (see your notes from FDISK). (hd0,3) is the third partition on the first HD. You have in your FDISK notes "first disk, partition #3".
(7) Reboot. Winblows boot manager should boot, not Debian. Add the root partition to boot manager menu.
(8) Reboot. You should see both winblows and Debian in the boot manager menu and both should start.
P.S.: You'd better do something for cooling the NB when you install. You will install more than 1100 packages at once, many of them are big. If the cooling isn't enough good or the NB isn't enough new, then the installation can "crash" suddenly and the NB gets switched off. This wasn't a crash, this was overheating. I have experienced that.
-
- Posts: 562
- Joined: 2011-06-02 15:55
- Location: Limassol, Cyprus
Re: Safest/easiest way to get Debian installed with W7
You can also try installing on a usb stick if the computer can start with it. A 16GB will be more than adequate (you can also install in 8GB and possibly 4GB). This way you are not likely to damage the hard disk but you can always use the hard disk to store large data in.
Being anonymous is the same as being an idiot.
- kiyop
- Posts: 3983
- Joined: 2011-05-05 15:16
- Location: Where persons without desire to improve themselves fear to tread, in Japan
- Been thanked: 3 times
Re: Safest/easiest way to get Debian installed with W7
I succeeded to boot debian Sid in an ext4-filesystem file in a NTFS partition like Wubi.theprep wrote:I have used Wubi for Ubuntu, nice, easy and convenient.
I had Sid installed in an ext4 partition with ntfs-3g and e2fsprogs.
I incorporated fuse and loop (EDIT: and ext4) modules into initramfs and set loaded by kernel.
I prepared a new NTFS partition with a label "ntfs1" by Gparted.
I made a 8.6GB file named "debianext4" by dd and made ext4-filesystem by mkfs.ext4 on the debianext4 file.
I booted with another linux distribution which can write to NTFS partition and can loop-mount ext4-filesystem file.
I mounted the NTFS partition and loop-mounted the debianext4 file.
I copied all the directories and all the files in / partition of the Sid into the loop-mounted debianext4.
I expanded the initramfs in debianext4 and changed init and script/local so that loop mount is enabled, referring the init and script/local in initramfs of Ubuntu Natty.
I made /host directory in debianext4.
I changed /etc/fstab in debianext4; changed device file name of root partition to /host/debianext4 and added mount option loop,rw.
I commented out the line in /etc/initramfs-tools/conf.d/resume.
I made kiyoshi's help by the Sid.
I booted with kiyoshi's help, mounted the NTFS partition and loop-mounted the debianext4 file and kexec'ed with the option:
--append="root=LABEL=ntfs1 loop=debianext4 ro"
and I finally succeeded in booting the debian sid from the file; debianext4 in the NTFS partition.
Tired.
I guess kernel update will rewrite the init and script/local in initramfs, thus will make the Sid unable to boot.
Then I must again rewrite init and script/local and make the cutomized initramfs.
And the above method is only for copying. Not for installation.
Edit again and again:
I succeeded in installing debian squeeze in and booting debian squeeze installed in an ext4-filesystem file in a NTFS partition.
Hereafter, I will show the detail method, so that newbie can do similarly.
The net installer I usually uses involves linux, and its kernel version is 2.6.32-5-486, thus I booted with Debian (maybe possible on Live CD/DVD) and downloaded linux-image-2.6.32-5-486_2.6.32-35_i386.deb
Code: Select all
$ su
TYPE ROOT PASSWORD IF ASKED.
# cd /
/# wget -c http://ftp.yz.yamagata-u.ac.jp/debian/pool/main/l/linux-2.6/linux-image-2.6.32-5-486_2.6.32-35_i386.deb
And then,
Code: Select all
/# mkdir linux-image-486-dir
/# dpkg -X linux-image-2.6.32-5-486_2.6.32-35_i386.deb linux-image-486-dir
Code: Select all
/# apt-get install ntfs-3g
/# mount -t ntfs-3g /dev/sda4 /mnt -o rw,umask=077
/# mkdir -p /mnt/ubuntu/disks
/# dd if=/dev/zero bs=2M count=4096 of=/mnt/ubuntu/disks/root.disk
/# mkfs.ext4 /mnt/ubuntu/disks/root.disk
Code: Select all
/# wget -c http://ftp.jaist.ac.jp/pub/Linux/Debian/dists/squeeze/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz
/# mkdir initrd
/# cd initrd
/initrd# gzip -dc ../initrd.gz|cpio -i
Code: Select all
/# find ../liux-image-486-dir -iname fuse.ko
Code: Select all
/initrd# mkdir -p lib/modules/2.6.32-5-486/kenel/fs/fuse
/initrd# cp -a ../linux-image-486-dir/lib/modules/2.6.32-5-486/kernel/fs/fuse/fuse.ko lib/modules/2.6.32-5-486/kernel/fs/fuse/
Code: Select all
/initrd# find .|cpio -H newc -o|gzip -9 > ../initrd.img-new
Code: Select all
/# blkid # to know the device file name of the NTFS partition. In my case /dev/sda4
/# if [ ! -d /mnt ];then mkdir /mnt;fi
/# mount -t ntfs /dev/sda4 /mnt -o rw,umask=077
Code: Select all
/# mkdir /target
/# mount -o loop,rw -t ext4 /mnt/ubuntu/disks/root.disk /target
Code: Select all
$ su
TYPE ROOT PASSWORD IF ASKED.
# cd /
# mount -t ntfs-3g /dev/sda4 /mnt -o rw
/# mkdir /testmount
/# mount -o loop,rw -t ext4 /mnt/ubuntu/disks/root.disk /testmount
Code: Select all
/testmount# mkdir host
/testmount# echo >>etc/initramfs-tools/modules "fuse
loop
ntfs
ext4"
/testmount# echo >>etc/modules "fuse
loop
ntfs
ext4"
/testmount# cd ..
/# mount -o bind /dev /testmount/dev
/# mount -o bind /dev/pts /testmount/dev/pts
/# mount -o bind /sys /testmount/sys
/# mount -o bind /proc /testmount/proc
/# chroot ./testmount /bin/bash
/# update-initramfs -u
/# exit
/# cd testmount
/testmount# echo > etc/fstab "/host/ubuntu/disks/root.disk / ext4 loop,rw,relatime,errors-remount=ro,data=ordered 0 1
/dev/sda4 /host ntfs rw,umask=077 0 0"
/testmount# mkdir initrd
/testmount# cd initrd
/testmount/initrd# gzip -dc ../boot/initrd.img-2.6.32-5-686|cpio -i
/testmount/initrd# nano init
Code: Select all
loop=*)
LOOP="${x#loop=}"
;;
loopflags=*)
LOOPFLAGS="-o ${x#loopflags=}"
;;
loopfstype=*)
LOOPFSTYPE="${x#loopfstype=}"
;;
and saved by CTRL+o and finished nano by CTRL+x.for x in $(cat /proc/cmdline); do
case $x in
I executed
Code: Select all
/testmount/initrd# nano scripts/local
Code: Select all
roflag=-w
Code: Select all
mkdir -p /host
mount -o move ${rootmnt} /host
if [ -z "${LOOPFSTYPE}" ]; then
eval $(fstype < "/host/${LOOP#/}")
else
FSTYPE="${LOOPFSTYPE}"
fi
if [ "$FSTYPE" = "unknown" ] && [ -x /sbin/blkid ]; then
FSTYPE=$(/sbin/blkid -s TYPE -o value "/host/${LOOP#/}")
[ -z "$FSTYPE" ] && FSTYPE="unknown"
fi
roflag=-w
modprobe loop
modprobe ${FSTYPE}
mount -w -o loop -t ${FSTYPE} ${LOOPFLAGS} "/host/${LOOP#/}" ${rootmnt}
if [ -d ${rootmnt}/host ]; then
mount -o move /host ${rootmnt}/host
fi
and saved by CTRL+o and finished nano by CTRL+x.# Mount root
if [ "${FSTYPE}" != "unknown" ]; then
mount ${roflag} -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
else
mount ${roflag} ${ROOTFLAGS} ${ROOT} ${rootmnt}
fi
Code: Select all
/testmount/initrd# cd ..
/testmount# wget -c http://ftp.yz.yamagata-u.ac.jp/debian/pool/main/n/ntfs-3g/libntfs-3g75_2010.3.6-1_i386.deb
/testmount# mkdir libntfs_dir
/testmount# dpkg -X libntfs-3g75_2010.3.6-1_i386.deb libntfs_dir
/testmount# cp -a libntfs_dir/* initrd/ # only usr/lib/libntfs-3g.so.75* seems to be needed in this version.
/testmount# wget -c http://ftp.yz.yamagata-u.ac.jp/debian/pool/main/n/ntfs-3g/ntfs-3g_2010.3.6-1_i386.deb
/testmount# mkdir ntfs3g_dir
/testmount# dpkg -X ntfs-3g_2010.3.6-1_i386.deb ntfs3g_dir
/testmount# cp -a ntfs3g_dir/* initrd/
/testmount# wget -c http://ftp.yz.yamagata-u.ac.jp/debian/pool/main/e/eglibc/libc6-i686_2.11.2-10_i386.deb
/testmount# mkdir libc6_dir
/testmount# dpkg -X libc6-i686_2.11.2-10_i386.deb libc6_dir
/testmount# cp -a libc6_dir/* initrd/ # only lib/i686/cmov/libpthread.so.0 may be OK, although I am not sure.
/testmount# cd initrd
/testmount/initrd# find . |cpio -H newc -o|gzip -9 > ../initrd.img-new
/testmount/initrd# mv ../boot/initrd.img-2.6.32-5-686 ../boot/initrd.img-2.6.32-5-686-backup
/testmount/initrd# mv ../initrd.img-new ../boot/initrd.img-2.6.32-5-686
/testmount/initrd# cd ../..
/# umount -l testmount
/# umount -l /mnt
Code: Select all
/# shutdown -r now
I will make a script which can automatically do what I have done.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
http://kiyoandkei.bbs.fc2.com/