Difference between revisions of "User:Scott/02"
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
shutdown -rF now (reboot, forcing fsck on root filesystem) | shutdown -rF now (reboot, forcing fsck on root filesystem) | ||
+ | |||
+ | ===Mount & un-Mount=== | ||
+ | |||
+ | df -h (show partition booted from) | ||
+ | ls /media (mounted from GUI) | ||
+ | cat /etc/fstab (partitions and devices = mount on start-up) | ||
+ | |||
+ | mount /dev/sdb1 /mnt/xxx | ||
+ | |||
+ | umount /dev/sdb1 (sudo) | ||
===Badblocks=== | ===Badblocks=== | ||
badblocks -nvs /dev/sda1 | badblocks -nvs /dev/sda1 |
Revision as of 23:33, 16 October 2011
Useful Tech Support Commands
PRINTME - /var/lib/freegeek-extras/printme
Backup Password
- cp /etc/shadow /etc/shadow.bak - (hash of root + user)
Change Password
passwd [username] passwd –e [username] – (change on startup)
Add / Delete User
adduser [username] adduser [username] admin userdel [username]
Updates & Broken Packages
apt-get update apt-get dist-upgrade
apt-get install --fix-broken apt-get install ubuntu-desktop
apt-get purge xxx
File System Check
fsidk -l
fsck -fyv /dev/sda1 (f=force y=fix)
shutdown -rF now (reboot, forcing fsck on root filesystem)
Mount & un-Mount
df -h (show partition booted from) ls /media (mounted from GUI) cat /etc/fstab (partitions and devices = mount on start-up)
mount /dev/sdb1 /mnt/xxx
umount /dev/sdb1 (sudo)
Badblocks
badblocks -nvs /dev/sda1