Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Saturday, June 6, 2009

Linux Mount

Command needed
1. create a folder to mount
2. ls -al /dev/disk/by-uuid (to check UUID)
3. sudo ee /etc/fstab (to change mount point)
4. sudo mount -a (mount command)

Informations
-Each "tab" or "space" means end of the command line call.
-use "defaults" in options part for windows partition.
-vfat for FAT and FAT32
-ntfs-3g for NTFS

# /dev/sdb1 (partition comment)
UUID=41baef7a-70fa-4bd0-8ea0-25be9c5ef643 (partition's UUID)
/ (root)
ext3 (file extention)
relatime,errors=remount-ro (options)
0 (0 for windows parition)
1 (0 for windows parition)

Issues
1. Files name with non-unicode
Fixed: UUID=3E40C99340C95277 /home/winD ntfs-3g defaults,utf8 0 0

2. Mounted but unable to write
Fixed: UUID=3E40C99340C95277 /home/winD ntfs-3g defaults,umask=0 0 0

3. Still unable to write after above code used
Fixed: UUID=3E40C99340C95277 /home/winD ntfs-3g defaults,uid=(yourID),gid=(yourID) 0 0

Further Information
- check usable options
- check what is dump and pass

Saturday, May 30, 2009

Linux installation failed (MAC GPT signature)

sudo dd if=/dev/zero of=/dev/sda bs=1 count=8 seek=512
这会抹去 Primary GPT header 里的 GPT signature。请不要输错任何一个字,包括空格。
马上重启看看 windows 的各个盘符是否正常。不出意外的话,应该就没有问题了,备份的资料可以丢弃了。
ubuntu 安装程序应该可以进行了。

说明: GPT 分区表有两份同样的拷贝,分别在磁盘的开头 mbr LBA0 之后和磁盘的末端。
上面的操作抹去的是磁盘开头的 GPT signature,在磁盘末端尚有一个备份的 Secondary GPT header,本来也应该抹去的,但是已经不影响了。安装程序不会再把它看作 GPT 磁盘。
由于这第二份 GPT 分区表的存在,在 sudo fdisk -l 的时候依然会跳出警告


cd ~/Desktop && wget 'http://home.comcast.net/~ubuntu_grub/boot_info_script.txt' && sudo bash boot_info_script.txt
会搜集 grub,grub2,grub4dos,wubi,lilo,syslinux,ntldr,bootmgr 的启动相关信息,MBR 和 GPT 分区表的相关信息,UUID 的信息,比较全