새로운 hard disk에 /usr/share내용을 넣고 싶습니다.

synapse의 이미지

이번에 새로운 hard disk를 하나 장만했습니다.
fdisk해주고 나서, mkfs.ext3 해 주어서, linux file system를 만들었습니다. 이걸 어떻게 쓸까 생각하다가, 제가 주로 쓰는 프로그램인 latex package를 넣기로 했습니다.

물론 source를 받아다가 다시 compile하면서 system을 만들어도 되겠지만, 현재 latex나 한글 latex(2005KTUGCollection)등은 너무나 덩치가 켜져버렸습니다.

이것을 하나 하나 씩 전부다 하기에는 너무나 역부족인것 같고, 또한 rpm package의 편함에 젖어서 그렇게는 못하겠고 해서, 매우 무식한 작업을 해보았습니다.

새로운 hard를 /usr/share로 mount하게 하고(/etc/fstab에서 )
/usr/share의 모든 내용을 copy하고 나서 rm해주었습니다.

역시나 되지 않더군요!

예전에 새로운 hard를 구해서 거기에다가 /usr로 mount하게 anaconda에서 설정하고 사용한 경험이 있어서 되지 않을까 생각하고 했다가? 안되었습니다.

어떻게 안될까요?

codebank의 이미지

mount 방식이 이상한 것 아니가요?

즉, 새로운 hard를 /mnt/new에 일단 mount시켜놓고 cp -p 를 이용해서 모든 파일을
복사한 후에 /usr/share를 /usr/share_old로 바꾸고(만약을 위해서) /mnt/new를
unmount시키고 새로운 hard를 /usr/share에 mount시키고 응용프로그램들이
정상적인 동작이되는지 확인한 후에 /etc/fstab에

Quote:
/dev/hda2 /usr/share ext3 defaults 0 0

위내용을 추가하고 /usr/share_old를 삭제한다.

저라면 위와같은 흐름대로 할것 같네요.
복사할 때 유저권한이나 접근권한값을 그대로 복사하는것이 -p로 알고 있는데
좀더자세한건 man cp를 확인해보세요.

------------------------------
좋은 하루 되세요.

익명 사용자의 이미지

cp -a가 더 좋습니다. 자세한 것은 man cp

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.