1 |
>>>> New problem: Booted into DSLinux, my HD does not appear so I can't |
2 |
>>>> wipe it. blkid and fdisk -l only show the USB stick assigned to |
3 |
>>>> /dev/sda which is how I accidentally wiped it in the first place. |
4 |
>>>> I'll try another distro on the USB stick. |
5 |
>> |
6 |
>> DSLinux couldn't find my HD because it needs the "sata" boot parameter |
7 |
>> explicitly passed. However, after doing that it crashes while loading |
8 |
>> the sata module. This is discussed online with no solution presented. |
9 |
>> |
10 |
>>> If DSLinux is what I think it is, it may have been (on hindsight) |
11 |
>>> rather obvious that it may not support the block device your system HD |
12 |
>>> is on or the filesystem used. The DS, afterall, has fairly predictable |
13 |
>>> hardware. |
14 |
>>> |
15 |
>>> Something like DBAN or SysResCD will have a better chance of |
16 |
>>> supporting a wider array of hardware. |
17 |
>> |
18 |
>> The problem with those two is I need something that can install to the |
19 |
>> HD after wiping it. I also need something that can install on a 512MB |
20 |
>> USB key since my 8GB key does not seem to be bootable. DSLinux was a |
21 |
>> flop as described above, so I'm downloading Puppy Linux now. It's |
22 |
>> about 100MB, and it has the "Puppy Universal Installer" which should |
23 |
>> install to my HD. Hopefully it fares better with my SATA hardware |
24 |
>> than DSLinux did. |
25 |
>> |
26 |
>> Also, in case it helps anyone in the future, unetbootin has a very |
27 |
>> annoying habit of failing to download the selected ISO, returning no |
28 |
>> error, and in fact reporting installation success. The symptom of |
29 |
>> this is a boot menu with only "Default" available, which goes nowhere. |
30 |
>> The solution is to download the ISO manually and point unetbootin to |
31 |
>> it. |
32 |
>> |
33 |
>> I'll report back with Puppy Linux results. |
34 |
> |
35 |
> Puppy Linux has wiped the HD and installed to /dev/sda3, but I can't |
36 |
> get it to install GRUB to /dev/sda1. I get: |
37 |
> |
38 |
> I couldn't mount '/dev/sda1' read-write! |
39 |
> |
40 |
> Working on it.... |
41 |
|
42 |
OK, finally got this working. To fix the above problem I just needed |
43 |
to create the filesystem. I had another problem where the kernel file |
44 |
was not being installed, but I just needed to mount the USB key and |
45 |
point the installer to the files on /mnt/sdb1 to fix that. |
46 |
|
47 |
I'm going to keep Puppy Linux on this USB key and use it to quickly |
48 |
wipe and install when I sell a laptop. |
49 |
|
50 |
Here is a summary for those looking to boot from, wipe from, and |
51 |
install from a USB key: |
52 |
|
53 |
1. Use unetbootin to install your distro of choice on the USB key. |
54 |
Puppy Linux works well if your USB key is low-capacity since it only |
55 |
requires around 100MB, and it includes a hard disk installation |
56 |
routine. If the USB key fails to boot, consider these 4 |
57 |
possibilities: |
58 |
|
59 |
1a. If the unetbootin installation procedure executes really quickly, |
60 |
it may not be downloading the ISO. In this case, it does not produce |
61 |
an error and in fact reports installation success. Download the ISO |
62 |
manually and point unetbootin to it. |
63 |
|
64 |
1b. Assuming /dev/sdb is your USB key: |
65 |
'cfdisk /dev/sdb' and select type LBA FAT32 |
66 |
'mkfs.vfat -F 32 -n USBKEY /dev/sdb1' |
67 |
'dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb' |
68 |
'sync' |
69 |
|
70 |
1c. Make sure your BIOS is set to boot from a USB key before anything else. |
71 |
|
72 |
1d. Some USB keys are not bootable. |
73 |
|
74 |
2. Once booted to the USB key, use 'fdisk -l' to be sure the hard disk |
75 |
has been detected and assigned to /dev/sda. Use the following to wipe |
76 |
the hard disk: |
77 |
|
78 |
dd if=/dev/zero of=/dev/sda bs=4096 |
79 |
|
80 |
3. Use 'fdisk /dev/sda' to partition your hard disk, and mke2fs to |
81 |
create the filesystems. Puppy Linux also provides gparted for this. |
82 |
|
83 |
4. Use the booted distro's installation routine to install to the hard disk. |
84 |
|
85 |
4a. If installing Puppy Linux, be sure to mount your USB key and point |
86 |
the installation routine to the files there when prompted. |
87 |
|
88 |
Done, and thanks for everyone's help. |
89 |
|
90 |
- Grant |